Code Monkey home page Code Monkey logo

cohesity-appspec's People

Contributors

ankur4899 avatar anoopbhat avatar apalmer-cohesity avatar avelalam-cohesity avatar patricklundquist avatar pyashish avatar sagnihotri-cohesity avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

cohesity-appspec's Issues

feedback

I went to build the current code (May 2020). Ran into a few build snags. Thought I'd document them here for future reference, along with "fixes / workarounds"

Snags were with the supporting tools, not the main viewbrowser app

--Had to not only go get cohesity-appspec, but also had to go get gopkg.in/yaml.v2
--Ran into some pointer parameter passing mismatches in two code files

cohesityumount.go

--start snippet--
// Issuing unmount command using cohesityAppSdk.
dirParams := models.DeleteUnmountParams { FLAGS_unmountDir }
if err := appClient.Mount().DeleteUnmount(&dirParams); err != nil {
errMsg := "Error: " + err.Error()
glog.Errorln(errMsg)
return err
}
return nil
--end snippet--

cohesitymount.go

--start snippet--
// Making mount call using sdk.
var myMountParams models.CreateMountParams
myMountParams = models.CreateMountParams { MountOptions: &mountOptions }

err = appClient.Mount().CreateMount(&myMountParams)

if err != nil {
glog.Errorf(fmt.Sprint(err))
return err
}
return nil
--end snippet--

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.