Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
Organizations apiv1.OrganizationServiceClient
Projects apiv1.ProjectServiceClient
Regions apiv1.RegionServiceClient
Users apiv1.UserServiceClient
Registration apiv1.RegistrationServiceClient
Kubernetes KubernetesClient
Storage ObjectStorageClient
DNS apiv1.DnsServiceClient
ServiceAccounts apiv1.ServiceAccountServiceClient
// contains filtered or unexported fields
}
func New ¶
func New(opts ...ClientOption) (*Client, error)
c, err := client.New(client.WithToken("..."))
type ClientOption ¶
type ClientOption func(*options)
func WithAddr ¶
func WithAddr(addr string) ClientOption
WithAddr overrides the default API endpoint (api.enum.co:443).
func WithInsecure ¶
func WithInsecure() ClientOption
WithInsecure disables TLS. For local development only.
func WithTLS ¶
func WithTLS(creds credentials.TransportCredentials) ClientOption
WithTLS overrides the default TLS configuration (system roots).
func WithToken ¶
func WithToken(token string) ClientOption
type KubernetesClient ¶
type KubernetesClient struct {
Clusters apiv1.KubernetesClusterServiceClient
}
type ObjectStorageClient ¶
type ObjectStorageClient struct {
Users apiv1.ObjectStorageUserServiceClient
AccessKeys apiv1.ObjectStorageAccessKeyServiceClient
Buckets apiv1.ObjectStorageBucketServiceClient
Policies apiv1.ObjectStorageUserPolicyServiceClient
}
Click to show internal directories.
Click to hide internal directories.