Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLinodeClient ¶
NewLinodeClient takes token, userAgent prefix, and API URL and after initial validation returns new linodego Client. The client uses linodego built-in http client which supports setting root CA cert.
Types ¶
type Client ¶
type Client interface { CreateObjectStorageBucket(context.Context, linodego.ObjectStorageBucketCreateOptions) (*linodego.ObjectStorageBucket, error) GetObjectStorageBucket(context.Context, string, string) (*linodego.ObjectStorageBucket, error) DeleteObjectStorageBucket(context.Context, string, string) error GetObjectStorageBucketAccess(context.Context, string, string) (*linodego.ObjectStorageBucketAccess, error) UpdateObjectStorageBucketAccess(context.Context, string, string, linodego.ObjectStorageBucketUpdateAccessOptions) error CreateObjectStorageKey(context.Context, linodego.ObjectStorageKeyCreateOptions) (*linodego.ObjectStorageKey, error) ListObjectStorageKeys(context.Context, *linodego.ListOptions) ([]linodego.ObjectStorageKey, error) GetObjectStorageKey(context.Context, int) (*linodego.ObjectStorageKey, error) DeleteObjectStorageKey(context.Context, int) error ListObjectStorageEndpoints(context.Context, *linodego.ListOptions) ([]linodego.ObjectStorageEndpoint, error) }
Client defines a subset of all Linode Client methods required by COSI.
Directories
¶
Path | Synopsis |
---|---|
Package stubclient provides a stub implementation of the linodeclient.LinodeClient interface.
|
Package stubclient provides a stub implementation of the linodeclient.LinodeClient interface. |
Click to show internal directories.
Click to hide internal directories.