k8s

package
v1.12.1-RC1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 15, 2020 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CStorPoolYml

type CStorPoolYml struct {
	// YmlInBytes represents a CStorPool in
	// yaml format
	YmlInBytes []byte
}

CStorPoolYml provides utility methods to generate K8s CStorPool objects

func NewCStorPoolYml

func NewCStorPoolYml(context, yml string, values map[string]interface{}) (*CStorPoolYml, error)

NewCStorPoolYml returns a CStorPoolYml instance.

func (*CStorPoolYml) AsCStorPoolYml

func (m *CStorPoolYml) AsCStorPoolYml() (*v1alpha1.CStorPool, error)

AsCStorPoolYml returns a v1 CStorPool instance

type CStorVolumeReplicaYml

type CStorVolumeReplicaYml struct {
	// YmlInBytes represents a CStorVolumeReplica in
	// yaml format
	YmlInBytes []byte
}

CStorVolumeReplicaYml provides utility methods to generate K8s CStorVolumeReplica objects

func NewCStorVolumeReplicaYml

func NewCStorVolumeReplicaYml(context, yml string, values map[string]interface{}) (*CStorVolumeReplicaYml, error)

NewCStorVolumeReplicaYml returns a CStorVolumeReplicaYml instance.

func (*CStorVolumeReplicaYml) AsCStorVolumeReplicaYml

func (m *CStorVolumeReplicaYml) AsCStorVolumeReplicaYml() (*v1alpha1.CStorVolumeReplica, error)

AsCStorVolumeReplicaYml returns a v1 Service instance

type CStorVolumeYml

type CStorVolumeYml struct {
	// YmlInBytes represents a CStorVolume in
	// yaml format
	YmlInBytes []byte
}

CStorVolumeYml provides utility methods to generate K8s CStorVolume objects

func NewCStorVolumeYml

func NewCStorVolumeYml(context, yml string, values map[string]interface{}) (*CStorVolumeYml, error)

NewCStorVolumeYml returns a new CStorVolumeYml instance based on yml string and values.

func (*CStorVolumeYml) AsCStorVolumeYml

func (m *CStorVolumeYml) AsCStorVolumeYml() (*v1alpha1.CStorVolume, error)

AsCStorVolumeYml returns a v1 CStorVolume instance

type DeploymentYml

type DeploymentYml struct {
	// YmlInBytes represents a K8s Deployment in
	// yaml format
	YmlInBytes []byte
}

DeploymentYml provides utility methods to generate K8s Deployment objects

func NewDeploymentYml

func NewDeploymentYml(context, yml string, values map[string]interface{}) (*DeploymentYml, error)

NewDeploymentYml returns a DeploymentYml instance.

func (*DeploymentYml) AsAppsV1B1Deployment

func (m *DeploymentYml) AsAppsV1B1Deployment() (*api_apps_v1beta1.Deployment, error)

AsAppsV1B1Deployment returns a apps/v1 Deployment instance

func (*DeploymentYml) AsAppsV1Deployment

func (m *DeploymentYml) AsAppsV1Deployment() (*api_apps_v1.Deployment, error)

AsAppsV1Deployment returns a apps/v1 Deployment instance

func (*DeploymentYml) AsExtnV1B1Deployment

func (m *DeploymentYml) AsExtnV1B1Deployment() (*api_extn_v1beta1.Deployment, error)

AsExtnV1B1Deployment returns a extensions/v1beta1 Deployment instance

type JobYml

type JobYml struct {
	YmlInBytes []byte // YmlInBytes represents a K8s Job in yaml format
}

JobYml helps generating kubernetes Job object

func NewJobYml

func NewJobYml(context, yml string, values map[string]interface{}) (*JobYml, error)

NewJobYml returns a new instance of JobYml

func (*JobYml) AsBatchV1Job

func (m *JobYml) AsBatchV1Job() (*api_batch_v1.Job, error)

AsBatchV1Job returns a batch/v1 Job instance

type STSYml

type STSYml struct {
	// YmlInBytes represents a kubernetes StatefulSet
	// in yaml format
	YmlInBytes []byte
}

STSYml helps generating kubernetes StatefulSet object

func NewSTSYml

func NewSTSYml(context, yml string, values map[string]interface{}) (*STSYml, error)

NewSTSYml returns a new instance of STSYml

func (*STSYml) AsAppsV1STS

func (m *STSYml) AsAppsV1STS() (*api_apps_v1.StatefulSet, error)

AsAppsV1STS returns a apps/v1 StatefulSet instance

type ServiceYml

type ServiceYml struct {
	// YmlInBytes represents a K8s Service in
	// yaml format
	YmlInBytes []byte
}

ServiceYml struct provides utility methods to generate K8s Service objects

func NewServiceYml

func NewServiceYml(context, yml string, values map[string]interface{}) (*ServiceYml, error)

NewServiceYml returns a ServiceYml instance.

func (*ServiceYml) AsCoreV1Service

func (m *ServiceYml) AsCoreV1Service() (*api_core_v1.Service, error)

AsCoreV1Service returns a v1 Service instance

type StoragePoolYml

type StoragePoolYml struct {
	// YmlInBytes represents a StoragePool in
	// yaml format
	YmlInBytes []byte
}

StoragePoolYml provides utility methods to generate K8s StoragePool objects

func NewStoragePoolYml

func NewStoragePoolYml(context, yml string, values map[string]interface{}) (*StoragePoolYml, error)

NewStoragePoolYml returns a StoragePoolYml instance.

func (*StoragePoolYml) AsStoragePoolYml

func (m *StoragePoolYml) AsStoragePoolYml() (*v1alpha1.StoragePool, error)

AsStoragePoolYml returns a v1 StoragePool instance

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL