Documentation ¶
Index ¶
- func Get(ctx *Context, url string, success interface{}, failure interface{}) (*http.Response, error)
- func GetBasicAuth(ctx *Context, auth string, url string, success interface{}, ...) (*http.Response, error)
- func GetDownload(ctx *Context, url string, file *os.File) (*http.Response, error)
- func GetValidURL(maybeInvalidURL string) (string, error)
- func Post(ctx *Context, url string, rawBody interface{}, success interface{}, ...) (*http.Response, error)
- func Put(ctx *Context, url string, rawBody interface{}, success interface{}, ...) (*http.Response, error)
- type Context
- type FailureSummary
- type GirderError
- type GirderFile
- type GirderID
- type GirderObject
- type GirderRelease
- type GirderTokenResponse
- type GirderUser
- type ItemMap
- type PathAndResource
- type Resource
- type ResourceMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get ¶
func Get(ctx *Context, url string, success interface{}, failure interface{}) (*http.Response, error)
Get does stuff
func GetBasicAuth ¶
func GetBasicAuth(ctx *Context, auth string, url string, success interface{}, failure interface{}) (*http.Response, error)
GetBasicAuth does stuff
func GetDownload ¶
func GetValidURL ¶
Types ¶
type Context ¶
type Context struct { Auth string URL string Logger *logrus.Logger Destination string ResourceMap ResourceMap }
Context stores the entire context needed to run a sync command
func (*Context) CheckMinimumVersion ¶
func (*Context) ValidateAuth ¶
type FailureSummary ¶
type GirderError ¶
type GirderError struct {
Message string `json:"message"`
}
func (*GirderError) Error ¶
func (error *GirderError) Error() string
type GirderFile ¶
func ItemFiles ¶
func ItemFiles(ctx *Context, itemID GirderID) []GirderFile
type GirderObject ¶
func Folders ¶
func Folders(ctx *Context, folderID GirderID) []GirderObject
func Items ¶
func Items(ctx *Context, folderID GirderID) []GirderObject
type GirderRelease ¶
type GirderTokenResponse ¶
type GirderUser ¶
type GirderUser struct {
Email string `json:"email"`
}
type PathAndResource ¶
type Resource ¶
type Resource struct { Path string Size int64 Type string GirderID GirderID GirderType string SkipSync bool SkipReason string }
Resource represents a local path and the relationship to a Girder resource
type ResourceMap ¶
ResourceMap maps on-disk paths to "resources"
func (ResourceMap) Parent ¶
func (m ResourceMap) Parent(resource *Resource) *Resource
Click to show internal directories.
Click to hide internal directories.