Documentation ¶
Index ¶
- func NewAutoscaleClient(opts ...Option) scale.AutoscaleService
- func NewCertificatesClient(opts ...Option) certificates.CertificatesService
- func NewDefaultOptions(opts ...Option) *options.Options
- func NewImagesClient(opts ...Option) images.ImagesService
- func NewInstancesClient(opts ...Option) instances.InstancesService
- func NewMetrosClient(opts ...Option) metros.MetrosService
- 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) Certificates() certificates.CertificatesService
- func (client *Client) Images() images.ImagesService
- func (client *Client) Instances() instances.InstancesService
- func (client *Client) Metros() metros.MetrosService
- 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 NewCertificatesClient ¶ added in v0.5.1
func NewCertificatesClient(opts ...Option) certificates.CertificatesService
NewCertificatesClient instantiates a client which interfaces with KraftCloud's certificates 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 NewMetrosClient ¶ added in v0.5.1
func NewMetrosClient(opts ...Option) metros.MetrosService
NewMetrosClient instantiates a client which interfaces with KraftCloud's metros 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) Certificates ¶ added in v0.5.1
func (client *Client) Certificates() certificates.CertificatesService
Certificates returns CertificatesService.
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) Metros ¶ added in v0.5.1
func (client *Client) Metros() metros.MetrosService
Metros returns MetrosService.
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 Certificates() certificates.CertificatesService Instances() instances.InstancesService Images() images.ImagesService Metros() metros.MetrosService 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 certificates manages TLS certificates on KraftCloud.
|
Package certificates manages TLS certificates on KraftCloud. |
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. |
Package uuid allows inspecting RFC 4122 UUIDs.
|
Package uuid allows inspecting RFC 4122 UUIDs. |