Versions in this module Expand all Collapse all v0 v0.5.0 May 26, 2020 Changes in this version + var APIUrl = "https://api.online.net/api/v1" + func CleanUp() (c *cache) + func NewCache() (c *cache) + type ConfigCreateArchive struct + Crypto string + Days int + Desc string + LargeBucket bool + Name string + Parity string + Platforms []string + Protocols []string + SSHKeys []string + UUIDSafe string + type ConfigCreateSSHBucketFromScratch struct + ArchiveName string + Crypto string + Days int + Desc string + LargeBucket bool + Parity string + Platforms []string + Quiet bool + SafeName string + UUIDSSHKeys []string + type OnlineAPI struct + func NewC14API(client *http.Client, userAgent string, verbose bool) (api *OnlineAPI) + func (o *OnlineAPI) CleanUpCache() + func (o *OnlineAPI) CreateArchive(config ConfigCreateArchive) (uuid string, err error) + func (o *OnlineAPI) CreateSSHBucketFromScratch(c ConfigCreateSSHBucketFromScratch) (uuidSafe, uuidArchive string, bucket OnlineGetBucket, err error) + func (o *OnlineAPI) CreateSafe(name, desc string) (uuid string, err error) + func (o *OnlineAPI) DeleteArchive(uuidSafe, uuidArchive string) (err error) + func (o *OnlineAPI) DeleteSafe(uuid string) (err error) + func (o *OnlineAPI) FetchRessources() (err error) + func (o *OnlineAPI) FindSafeUUIDFromArchive(archive string, useCache bool) (safe OnlineGetSafe, uuidArchive string, err error) + func (o *OnlineAPI) GetAllArchives() (archives []OnlineGetArchive, err error) + func (o *OnlineAPI) GetArchive(uuidSafe, uuidArchive string, useCache bool) (archive OnlineGetArchive, err error) + func (o *OnlineAPI) GetArchives(uuidSafe string, useCache bool) (archives []OnlineGetArchive, err error) + func (o *OnlineAPI) GetBucket(uuidSafe, uuidArchive string) (bucket OnlineGetBucket, err error) + func (o *OnlineAPI) GetJob(uuidSafe, uuidArchive, uuidJob string) (job OnlineGetJob, err error) + func (o *OnlineAPI) GetJobs(uuidSafe, uuidArchive string) (jobs []OnlineGetJob, err error) + func (o *OnlineAPI) GetLocations(uuidSafe, uuidArchive string) (loc []OnlineGetLocation, err error) + func (o *OnlineAPI) GetPlatform(uuid string) (platform OnlineGetPlatform, err error) + func (o *OnlineAPI) GetPlatforms() (platform []OnlineGetPlatform, err error) + func (o *OnlineAPI) GetSSHKey(uuid string) (key OnlineGetSSHKey, err error) + func (o *OnlineAPI) GetSSHKeys() (keys []OnlineGetSSHKey, err error) + func (o *OnlineAPI) GetSafe(uuid string) (safe OnlineGetSafe, err error) + func (o *OnlineAPI) GetSafes(useCache bool) (safes []OnlineGetSafe, err error) + func (o *OnlineAPI) PatchArchive(uuidSafe, uuidArchive string, data OnlinePatchArchive) (err error) + func (o *OnlineAPI) PostArchive(uuidSafe, uuidArchive string) (uuid string, err error) + func (o *OnlineAPI) PostUnArchive(uuidSafe, uuidArchive string, data OnlinePostUnArchive) (err error) + func (o *OnlineAPI) PostVerify(uuidSafe, uuidArchive, uuidLocation string) (err error) + type OnlineBucketCredentials struct + Login string + Password string + Protocol string + SSHKeys []OnlineGetSSHKey + URI string + type OnlineError struct + Code int + StatusCode int + Why string + func (o OnlineError) Error() string + type OnlineGetArchive struct + CreationDate string + Description string + Jobs []OnlineGetJob + Name string + Parity string + Safe OnlineGetSafe + Size string + Status string + UUIDRef string + type OnlineGetArchives []OnlineGetArchive + func (o OnlineGetArchives) Len() int + func (o OnlineGetArchives) Less(i, j int) bool + func (o OnlineGetArchives) Swap(i, j int) + type OnlineGetBucket struct + ArchivalDate string + Credentials []OnlineBucketCredentials + Status string + UUIDRef string + type OnlineGetJob struct + Progress int + Status string + Type string + UUIDRef string + type OnlineGetLocation struct + Name string + UUIDRef string + type OnlineGetPlatform struct + Datacenter string + ID int + Name string + type OnlineGetSSHKey struct + Desc string + Fingerprint string + UUIDRef string + type OnlineGetSafe struct + Description string + Name string + Status string + UUIDRef string + type OnlinePatchArchive struct + Description string + Name string + type OnlinePostArchive struct + Crypto string + Days int + Description string + LargeBucket bool + Name string + Parity string + Platforms []string + Protocols []string + SSHKeys []string + type OnlinePostResult struct + Archive ... + UUIDRef string + type OnlinePostSafe struct + Description string + Name string + type OnlinePostUnArchive struct + LocationID string + Protocols []string + SSHKeys []string