Documentation ¶
Index ¶
- Variables
- type Application
- type ApplicationListOptions
- type Cluster
- type ClusterListOptions
- type ClusterState
- type CreateClusterNodePoolsOptions
- type CreateClusterOptions
- type DeleteClusterOptions
- type Identity
- type Provider
- type Resource
- type ResourceStatus
- type ResourceViolation
- type ResourceVulnerability
Constants ¶
This section is empty.
Variables ¶
View Source
var ( StatusPending = resource.StatusPending StatusRunning = resource.StatusRunning StatusSucceeded = resource.StatusSucceeded StatusFailed = resource.StatusFailed StatusUnknown = resource.StatusUnknown )
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application = resource.Application
type ApplicationListOptions ¶
type ApplicationListOptions struct {
FilterNamespace string
}
type Cluster ¶
type Cluster struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` State ClusterState `json:"state,omitempty"` Reference string `json:"reference,omitempty"` Version string `json:"version,omitempty"` Location string `json:"location,omitempty"` Identity *Identity `json:"identity,omitempty"` }
type ClusterListOptions ¶
type ClusterListOptions struct {
FilterReference string
}
type ClusterState ¶
type ClusterState string
const ( ClusterStateUnknown ClusterState = "Unknown" ClusterStateRunning ClusterState = "Running" ClusterStateCreating ClusterState = "Creating" ClusterStateUpdating ClusterState = "Updating" ClusterStateDeleting ClusterState = "Deleting" ClusterStateFailed ClusterState = "Failed" )
type CreateClusterOptions ¶
type CreateClusterOptions struct { Reference string Version string Location string NodePools []CreateClusterNodePoolsOptions }
type DeleteClusterOptions ¶
type DeleteClusterOptions struct { }
type Provider ¶
type Provider interface { Clusters(ctx context.Context, options *ClusterListOptions) ([]Cluster, error) Cluster(ctx context.Context, clusterID string) (*Cluster, error) CreateCluster(ctx context.Context, name string, options *CreateClusterOptions) (*Cluster, error) DeleteCluster(ctx context.Context, clusterID string, options *DeleteClusterOptions) error ClusterConfig(ctx context.Context, clusterID string) ([]byte, error) ClusterApplications(ctx context.Context, clusterID string, options *ApplicationListOptions) ([]Application, error) }
type ResourceStatus ¶
type ResourceStatus = resource.ResourceStatus
type ResourceViolation ¶
type ResourceViolation = resource.ResourceViolation
type ResourceVulnerability ¶
type ResourceVulnerability = resource.ResourceVulnerability
Click to show internal directories.
Click to hide internal directories.