Documentation
¶
Index ¶
- func NewDriver() types.Driver
- type Cluster
- type ClusterInfo
- type Context
- type ContextInfo
- type Driver
- func (d *Driver) Create(ctx context.Context, options *types.DriverOptions, _ *types.ClusterInfo) (*types.ClusterInfo, error)
- func (d *Driver) ETCDRemoveSnapshot(ctx context.Context, clusterInfo *types.ClusterInfo, opts *types.DriverOptions, ...) error
- func (d *Driver) ETCDRestore(ctx context.Context, clusterInfo *types.ClusterInfo, opts *types.DriverOptions, ...) (*types.ClusterInfo, error)
- func (d *Driver) ETCDSave(ctx context.Context, clusterInfo *types.ClusterInfo, opts *types.DriverOptions, ...) error
- func (d *Driver) GetCapabilities(ctx context.Context) (*types.Capabilities, error)
- func (d *Driver) GetClusterSize(ctx context.Context, info *types.ClusterInfo) (*types.NodeCount, error)
- func (d *Driver) GetDriverCreateOptions(ctx context.Context) (*types.DriverFlags, error)
- func (d *Driver) GetDriverUpdateOptions(ctx context.Context) (*types.DriverFlags, error)
- func (d *Driver) GetK8SCapabilities(ctx context.Context, _ *types.DriverOptions) (*types.K8SCapabilities, error)
- func (d *Driver) GetVersion(ctx context.Context, info *types.ClusterInfo) (*types.KubernetesVersion, error)
- func (d *Driver) PostCheck(ctx context.Context, info *types.ClusterInfo) (*types.ClusterInfo, error)
- func (d *Driver) Remove(ctx context.Context, info *types.ClusterInfo) error
- func (d *Driver) RemoveLegacyServiceAccount(ctx context.Context, info *types.ClusterInfo) error
- func (d *Driver) SetClusterSize(ctx context.Context, info *types.ClusterInfo, size *types.NodeCount) error
- func (d *Driver) SetVersion(ctx context.Context, info *types.ClusterInfo, version *types.KubernetesVersion) error
- func (d *Driver) Update(ctx context.Context, info *types.ClusterInfo, options *types.DriverOptions) (*types.ClusterInfo, error)
- type KubeConfig
- type User
- type UserInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cluster ¶
type Cluster struct { Name string `yaml:"name"` ClusterInfo ClusterInfo `yaml:"cluster"` }
type ClusterInfo ¶
type Context ¶
type Context struct { ContextInfo ContextInfo `yaml:"context"` Name string `yaml:"name"` }
type ContextInfo ¶
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
func (*Driver) Create ¶
func (d *Driver) Create(ctx context.Context, options *types.DriverOptions, _ *types.ClusterInfo) (*types.ClusterInfo, error)
func (*Driver) ETCDRemoveSnapshot ¶
func (d *Driver) ETCDRemoveSnapshot(ctx context.Context, clusterInfo *types.ClusterInfo, opts *types.DriverOptions, snapshotName string) error
func (*Driver) ETCDRestore ¶
func (d *Driver) ETCDRestore(ctx context.Context, clusterInfo *types.ClusterInfo, opts *types.DriverOptions, snapshotName string) (*types.ClusterInfo, error)
func (*Driver) ETCDSave ¶
func (d *Driver) ETCDSave(ctx context.Context, clusterInfo *types.ClusterInfo, opts *types.DriverOptions, snapshotName string) error
func (*Driver) GetCapabilities ¶
func (*Driver) GetClusterSize ¶
func (*Driver) GetDriverCreateOptions ¶
GetDriverCreateOptions implements driver interface
func (*Driver) GetDriverUpdateOptions ¶
GetDriverUpdateOptions implements driver interface
func (*Driver) GetK8SCapabilities ¶
func (d *Driver) GetK8SCapabilities(ctx context.Context, _ *types.DriverOptions) (*types.K8SCapabilities, error)
func (*Driver) GetVersion ¶
func (d *Driver) GetVersion(ctx context.Context, info *types.ClusterInfo) (*types.KubernetesVersion, error)
func (*Driver) PostCheck ¶
func (d *Driver) PostCheck(ctx context.Context, info *types.ClusterInfo) (*types.ClusterInfo, error)
func (*Driver) RemoveLegacyServiceAccount ¶
func (*Driver) SetClusterSize ¶
func (*Driver) SetVersion ¶
func (d *Driver) SetVersion(ctx context.Context, info *types.ClusterInfo, version *types.KubernetesVersion) error
func (*Driver) Update ¶
func (d *Driver) Update(ctx context.Context, info *types.ClusterInfo, options *types.DriverOptions) (*types.ClusterInfo, error)
type KubeConfig ¶
type KubeConfig struct { APIVersion string `yaml:"apiVersion"` Kind string `yaml:"kind"` Clusters []Cluster `yaml:"clusters"` Contexts []Context `yaml:"contexts"` Users []User `yaml:"users"` }
KubeConfig struct for marshalling config files shouldn't have to reimplement this but kubernetes' model won't serialize correctly for some reason
Click to show internal directories.
Click to hide internal directories.