Documentation ¶
Index ¶
- func NewAutoscaleClient(opts ...Option) scale.AutoscaleService
- func NewDefaultOptions(opts ...Option) *options.Options
- func NewImagesClient(opts ...Option) images.ImagesService
- func NewInstancesClient(opts ...Option) instances.InstancesService
- func NewServicesClient(opts ...Option) services.ServicesService
- func NewUsersClient(opts ...Option) users.UsersService
- func NewVolumesClient(opts ...Option) volumes.VolumesService
- type Client
- func (client *Client) Autoscale() scale.AutoscaleService
- func (client *Client) Images() images.ImagesService
- func (client *Client) Instances() instances.InstancesService
- func (client *Client) Services() services.ServicesService
- func (client *Client) Users() users.UsersService
- func (client *Client) Volumes() volumes.VolumesService
- type KraftCloud
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAutoscaleClient ¶ added in v0.4.3
func NewAutoscaleClient(opts ...Option) scale.AutoscaleService
NewAutoscaleCLient instantiates a client which interfaces with KraftCloud's autoscale API.
func NewDefaultOptions ¶
NewDefaultOptions is a constructor method for instantiation a new set of default options for underlying requests to the KraftCloud API.
func NewImagesClient ¶ added in v0.3.0
func NewImagesClient(opts ...Option) images.ImagesService
NewImagesClient instantiates a new image services client based on the provided options.
func NewInstancesClient ¶ added in v0.3.0
func NewInstancesClient(opts ...Option) instances.InstancesService
NewInstancesClient instantiates a client which interfaces with KraftCloud's instances API.
func NewServicesClient ¶ added in v0.3.0
func NewServicesClient(opts ...Option) services.ServicesService
NewServicesClient instantiates a client which interfaces with KraftCloud's volumes API.
func NewUsersClient ¶ added in v0.3.0
func NewUsersClient(opts ...Option) users.UsersService
NewUsersClient instantiates a client which interfaces with KraftCloud's users API.
func NewVolumesClient ¶ added in v0.3.0
func NewVolumesClient(opts ...Option) volumes.VolumesService
NewVolumesClient instantiates a client which interfaces with KraftCloud's volumes API.
Types ¶
type Client ¶ added in v0.3.0
type Client struct {
// contains filtered or unexported fields
}
Client provides access to the KraftCloud API.
func (*Client) Autoscale ¶ added in v0.4.3
func (client *Client) Autoscale() scale.AutoscaleService
Autoscale returns AutoscaleService.
func (*Client) Images ¶ added in v0.3.0
func (client *Client) Images() images.ImagesService
Images returns ImagesService.
func (*Client) Instances ¶ added in v0.3.0
func (client *Client) Instances() instances.InstancesService
Instances returns InstancesService.
func (*Client) Services ¶ added in v0.3.0
func (client *Client) Services() services.ServicesService
Services returns ServicesService.
func (*Client) Users ¶ added in v0.3.0
func (client *Client) Users() users.UsersService
Users returns UsersService.
func (*Client) Volumes ¶ added in v0.3.0
func (client *Client) Volumes() volumes.VolumesService
Volumes returns VolumesService.
type KraftCloud ¶ added in v0.3.0
type KraftCloud interface { Autoscale() scale.AutoscaleService Instances() instances.InstancesService Images() images.ImagesService Services() services.ServicesService Users() users.UsersService Volumes() volumes.VolumesService }
KraftCloud are the public endpoint categories for the KraftCloud API.
func NewClient ¶ added in v0.3.0
func NewClient(copts ...Option) KraftCloud
NewClient is the top-level KraftCloud Services client used to speak with the API.
func NewClientFromOptions ¶ added in v0.3.0
func NewClientFromOptions(opts *options.Options) KraftCloud
NewClientFromOptions is the top-level KraftCloud Services client used to speak with the API with pre-defined options.
type Option ¶
Option is an option function used during initialization of a client.
func WithDefaultMetro ¶
WithDefaultMetro sets a KraftCloud metro, e.g. `fra0` which is based in Frankfurt.
func WithHTTPClient ¶
func WithHTTPClient(httpClient httpclient.HTTPClient) Option
WithHTTPClient sets the HTTP client that's used to customize the connection to KraftCloud's API.
Directories ¶
Path | Synopsis |
---|---|
Package client provides the underlying structures, interfaces and methods for peforming requests against KraftCloud's API.
|
Package client provides the underlying structures, interfaces and methods for peforming requests against KraftCloud's API. |
httpclient
Package httpclient provides an interface for enabling manipulating the underelying HTTP request performed by a client.
|
Package httpclient provides an interface for enabling manipulating the underelying HTTP request performed by a client. |
options
Package options provides the structure representing the instantiated client options.
|
Package options provides the structure representing the instantiated client options. |
package images manages application images on KraftCloud.
|
package images manages application images on KraftCloud. |
package instances manages instances on KraftCloud.
|
package instances manages instances on KraftCloud. |