Documentation ¶
Index ¶
- type Operator
- func (o *Operator) Create(p types.ProviderType, cfg map[string]interface{}) (*types.ClusterInfo, error)
- func (o *Operator) Delete(info *types.ClusterInfo, p types.ProviderType, cfg map[string]interface{}) error
- func (o *Operator) Status(info *types.ClusterInfo, p types.ProviderType, cfg map[string]interface{}) (*types.ClusterStatus, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Operator ¶
type Operator struct {
// contains filtered or unexported fields
}
Operator implements the native operator for provisioning clusters. A native operator communicates directly with the Cloud Provider in their native API.
func (*Operator) Create ¶
func (o *Operator) Create(p types.ProviderType, cfg map[string]interface{}) (*types.ClusterInfo, error)
Create creates a new cluster on the given provider based on the configuration and returns the same cluster enriched with its current state.
func (*Operator) Delete ¶
func (o *Operator) Delete(info *types.ClusterInfo, p types.ProviderType, cfg map[string]interface{}) error
Delete removes a cluster. For this operation a valid state is necessary. If the state is empty or nil, Delete will attempt to load the state from the file system.
func (*Operator) Status ¶
func (o *Operator) Status(info *types.ClusterInfo, p types.ProviderType, cfg map[string]interface{}) (*types.ClusterStatus, error)
Status checks the cluster status based on the given state. If the state is empty or nil, Status will attempt to load the state from the file system.
Click to show internal directories.
Click to hide internal directories.