Documentation
¶
Index ¶
- Variables
- func ByteCountSI(b int64) string
- func ByteCountSIFloat64(b float64) string
- func CSVMarshal(result interface{}, fields string) error
- func CSVMarshalIter(it Iter, fields string) error
- func CaptureOutput(f func()) string
- func ClientError(ctx context.Context, err error)
- func CreateSession(paramsSessionCreate files_sdk.SessionCreateParams, config Config) error
- func Format(result interface{}, format string, fields string) error
- func FormatIter(it Iter, format string, fields string) error
- func JsonMarshal(i interface{}, fields string) error
- func JsonMarshalIter(it Iter, fields string) error
- func OnlyFields(commaFields string, structure interface{}) (map[string]interface{}, []string, error)
- func SessionUnauthorizedError(paramsSessionCreate files_sdk.SessionCreateParams, err error) (files_sdk.SessionCreateParams, error)
- func TableMarshal(style string, result interface{}, fields string) error
- func TableMarshalIter(style string, it Iter, fields string, out io.Writer, in io.Reader) error
- func TimeVar(f *pflag.FlagSet, p *time.Time, name string)
- type Config
- type Iter
- type ResetConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var SessionExpiry = time.Hour * 6
Functions ¶
func ByteCountSI ¶ added in v1.1.1586
func ByteCountSIFloat64 ¶ added in v1.1.1586
func CSVMarshal ¶ added in v1.1.1586
func CSVMarshalIter ¶ added in v1.1.1586
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)
func TableMarshal ¶ added in v1.1.1586
func TableMarshalIter ¶ added in v1.1.1586
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.