Documentation
¶
Index ¶
- Variables
- func CaptureOutput(f func()) string
- func ClientError(err error, ctx *Context)
- func CreateSession(paramsSessionCreate files_sdk.SessionCreateParams, config Config) error
- func JsonMarshal(i interface{}, fields string) error
- func JsonMarshalIter(it Iter, fields string) error
- func OnlyFields(commaFields string, structure interface{}) (map[string]interface{}, error)
- func SessionUnauthorizedError(paramsSessionCreate files_sdk.SessionCreateParams, err error) (files_sdk.SessionCreateParams, error)
- func TimeVarP(f *pflag.FlagSet, p *time.Time, name, shorthand string)
- type Config
- type Context
- type Iter
- type ResetConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var SessionExpiry = time.Hour * 6
Functions ¶
func CaptureOutput ¶ added in v1.0.669
func CaptureOutput(f func()) string
func ClientError ¶ added in v1.0.215
func CreateSession ¶ added in v1.0.170
func CreateSession(paramsSessionCreate files_sdk.SessionCreateParams, config Config) error
func JsonMarshal ¶
func JsonMarshalIter ¶
func OnlyFields ¶
func SessionUnauthorizedError ¶ added in v1.0.170
func SessionUnauthorizedError(paramsSessionCreate files_sdk.SessionCreateParams, err error) (files_sdk.SessionCreateParams, error)
Types ¶
type Config ¶ added in v1.0.170
type Config struct { SessionId string `json:"session_id"` SessionExpiry time.Time `json:"session_expiry"` Subdomain string `json:"subdomain"` Username string `json:"username"` APIKey string `json:"api_key"` Endpoint string `json:"endpoint,omitempty"` // contains filtered or unexported fields }
func (Config) ResetWith ¶ added in v1.0.215
func (c Config) ResetWith(reset ResetConfig) error
func (*Config) SessionExpired ¶ added in v1.0.170
func (*Config) ValidSession ¶ added in v1.0.170
Source Files
¶
Click to show internal directories.
Click to hide internal directories.