k8s

package
v2.2.7+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2018 License: Apache-2.0, Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Deployments    *DeploymentManager
	DeployFromFile *DeployFromFileManager
)

Functions

This section is empty.

Types

type ChartManager

type ChartManager struct {
	*ResourceManager
}
var (
	Charts *ChartManager
)

func (ChartManager) GetDescription

func (m ChartManager) GetDescription(obj jsonutils.JSONObject) interface{}

func (ChartManager) GetRepoWithName

func (m ChartManager) GetRepoWithName(obj jsonutils.JSONObject) interface{}

func (ChartManager) GetVersion

func (m ChartManager) GetVersion(obj jsonutils.JSONObject) interface{}

type ClusterResourceManager

type ClusterResourceManager struct {
	*ResourceManager
}

func NewClusterResourceManager

func NewClusterResourceManager(keyword, keywordPlural string, columns, adminColumns *Columns) *ClusterResourceManager

func (ClusterResourceManager) GetCluster

func (man ClusterResourceManager) GetCluster(obj jsonutils.JSONObject) interface{}

type Columns

type Columns struct {
	// contains filtered or unexported fields
}

func NewClusterCols

func NewClusterCols(col ...string) *Columns

func NewColumns

func NewColumns(cols ...string) *Columns

func NewMetaCols

func NewMetaCols(col ...string) *Columns

func NewNameCols

func NewNameCols(col ...string) *Columns

func NewNamespaceCols

func NewNamespaceCols(col ...string) *Columns

func NewResourceCols

func NewResourceCols(col ...string) *Columns

func (*Columns) Add

func (c *Columns) Add(cols ...string) *Columns

func (Columns) Array

func (c Columns) Array() []string

type ConfigMapManager

type ConfigMapManager struct {
	*NamespaceResourceManager
}
var ConfigMaps *ConfigMapManager

func (ConfigMapManager) GetAge

func (g ConfigMapManager) GetAge(obj jsonutils.JSONObject) interface{}

func (ConfigMapManager) GetLabels

func (g ConfigMapManager) GetLabels(obj jsonutils.JSONObject) interface{}

func (ConfigMapManager) GetName

func (g ConfigMapManager) GetName(obj jsonutils.JSONObject) interface{}

func (ConfigMapManager) GetNamespace

func (g ConfigMapManager) GetNamespace(obj jsonutils.JSONObject) interface{}

type CronJobManager

type CronJobManager struct {
	*NamespaceResourceManager
}
var CronJobs *CronJobManager

func (CronJobManager) GetAge

func (g CronJobManager) GetAge(obj jsonutils.JSONObject) interface{}

func (CronJobManager) GetLabels

func (g CronJobManager) GetLabels(obj jsonutils.JSONObject) interface{}

func (CronJobManager) GetName

func (g CronJobManager) GetName(obj jsonutils.JSONObject) interface{}

func (CronJobManager) GetNamespace

func (g CronJobManager) GetNamespace(obj jsonutils.JSONObject) interface{}

type DeployFromFileManager

type DeployFromFileManager struct {
	*NamespaceResourceManager
}

func (DeployFromFileManager) GetAge

func (g DeployFromFileManager) GetAge(obj jsonutils.JSONObject) interface{}

func (DeployFromFileManager) GetLabels

func (g DeployFromFileManager) GetLabels(obj jsonutils.JSONObject) interface{}

func (DeployFromFileManager) GetName

func (g DeployFromFileManager) GetName(obj jsonutils.JSONObject) interface{}

func (DeployFromFileManager) GetNamespace

func (g DeployFromFileManager) GetNamespace(obj jsonutils.JSONObject) interface{}

type DeploymentManager

type DeploymentManager struct {
	*NamespaceResourceManager
}

func (DeploymentManager) GetAge

func (g DeploymentManager) GetAge(obj jsonutils.JSONObject) interface{}

func (DeploymentManager) GetLabels

func (g DeploymentManager) GetLabels(obj jsonutils.JSONObject) interface{}

func (DeploymentManager) GetName

func (g DeploymentManager) GetName(obj jsonutils.JSONObject) interface{}

func (DeploymentManager) GetNamespace

func (g DeploymentManager) GetNamespace(obj jsonutils.JSONObject) interface{}

type IngressManager

type IngressManager struct {
	*NamespaceResourceManager
}
var Ingresses *IngressManager

func (IngressManager) GetAge

func (g IngressManager) GetAge(obj jsonutils.JSONObject) interface{}

func (IngressManager) GetLabels

func (g IngressManager) GetLabels(obj jsonutils.JSONObject) interface{}

func (IngressManager) GetName

func (g IngressManager) GetName(obj jsonutils.JSONObject) interface{}

func (IngressManager) GetNamespace

func (g IngressManager) GetNamespace(obj jsonutils.JSONObject) interface{}

type JobManager

type JobManager struct {
	*NamespaceResourceManager
}
var Jobs *JobManager

func (JobManager) GetAge

func (g JobManager) GetAge(obj jsonutils.JSONObject) interface{}

func (JobManager) GetLabels

func (g JobManager) GetLabels(obj jsonutils.JSONObject) interface{}

func (JobManager) GetName

func (g JobManager) GetName(obj jsonutils.JSONObject) interface{}

func (JobManager) GetNamespace

func (g JobManager) GetNamespace(obj jsonutils.JSONObject) interface{}

type K8sNodeManager

type K8sNodeManager struct {
	*MetaResourceManager
}
var (
	K8sNodes *K8sNodeManager
)

func (K8sNodeManager) GetAge

func (g K8sNodeManager) GetAge(obj jsonutils.JSONObject) interface{}

func (K8sNodeManager) GetLabels

func (g K8sNodeManager) GetLabels(obj jsonutils.JSONObject) interface{}

func (K8sNodeManager) GetName

func (g K8sNodeManager) GetName(obj jsonutils.JSONObject) interface{}

type ListPrinter

type ListPrinter interface {
	GetColumns(*mcclient.ClientSession) []string
}

type MetaResourceManager

type MetaResourceManager struct {
	*ClusterResourceManager
	// contains filtered or unexported fields
}

func NewMetaResourceManager

func NewMetaResourceManager(kw, kwp string, columns, adminColumns *Columns) *MetaResourceManager

func (MetaResourceManager) GetAge

func (g MetaResourceManager) GetAge(obj jsonutils.JSONObject) interface{}

func (MetaResourceManager) GetLabels

func (g MetaResourceManager) GetLabels(obj jsonutils.JSONObject) interface{}

func (MetaResourceManager) GetName

func (g MetaResourceManager) GetName(obj jsonutils.JSONObject) interface{}

type NamespaceManager

type NamespaceManager struct {
	*MetaResourceManager
	// contains filtered or unexported fields
}
var Namespaces *NamespaceManager

func (NamespaceManager) GetAge

func (g NamespaceManager) GetAge(obj jsonutils.JSONObject) interface{}

func (NamespaceManager) GetLabels

func (g NamespaceManager) GetLabels(obj jsonutils.JSONObject) interface{}

func (NamespaceManager) GetName

func (g NamespaceManager) GetName(obj jsonutils.JSONObject) interface{}

func (NamespaceManager) GetStatus

func (g NamespaceManager) GetStatus(obj jsonutils.JSONObject) interface{}

type NamespaceResourceManager

type NamespaceResourceManager struct {
	*MetaResourceManager
	// contains filtered or unexported fields
}

func NewNamespaceResourceManager

func NewNamespaceResourceManager(kw, kwp string, columns, adminColumns *Columns) *NamespaceResourceManager

func (NamespaceResourceManager) GetAge

func (g NamespaceResourceManager) GetAge(obj jsonutils.JSONObject) interface{}

func (NamespaceResourceManager) GetLabels

func (g NamespaceResourceManager) GetLabels(obj jsonutils.JSONObject) interface{}

func (NamespaceResourceManager) GetName

func (g NamespaceResourceManager) GetName(obj jsonutils.JSONObject) interface{}

func (NamespaceResourceManager) GetNamespace

func (g NamespaceResourceManager) GetNamespace(obj jsonutils.JSONObject) interface{}

type PersistentVolumeClaimManager

type PersistentVolumeClaimManager struct {
	*NamespaceResourceManager
	// contains filtered or unexported fields
}
var PersistentVolumeClaims *PersistentVolumeClaimManager

func (PersistentVolumeClaimManager) GetAge

func (g PersistentVolumeClaimManager) GetAge(obj jsonutils.JSONObject) interface{}

func (PersistentVolumeClaimManager) GetLabels

func (g PersistentVolumeClaimManager) GetLabels(obj jsonutils.JSONObject) interface{}

func (PersistentVolumeClaimManager) GetName

func (g PersistentVolumeClaimManager) GetName(obj jsonutils.JSONObject) interface{}

func (PersistentVolumeClaimManager) GetNamespace

func (g PersistentVolumeClaimManager) GetNamespace(obj jsonutils.JSONObject) interface{}

func (PersistentVolumeClaimManager) GetStatus

func (g PersistentVolumeClaimManager) GetStatus(obj jsonutils.JSONObject) interface{}

func (PersistentVolumeClaimManager) GetStorageClass

func (m PersistentVolumeClaimManager) GetStorageClass(obj jsonutils.JSONObject) interface{}

func (PersistentVolumeClaimManager) GetVolume

func (m PersistentVolumeClaimManager) GetVolume(obj jsonutils.JSONObject) interface{}

type PersistentVolumeManager

type PersistentVolumeManager struct {
	*MetaResourceManager
}
var PersistentVolumes *PersistentVolumeManager

func (PersistentVolumeManager) GetAccessModes

func (m PersistentVolumeManager) GetAccessModes(obj jsonutils.JSONObject) interface{}

func (PersistentVolumeManager) GetAge

func (g PersistentVolumeManager) GetAge(obj jsonutils.JSONObject) interface{}

func (PersistentVolumeManager) GetClaim

func (m PersistentVolumeManager) GetClaim(obj jsonutils.JSONObject) interface{}

func (PersistentVolumeManager) GetLabels

func (g PersistentVolumeManager) GetLabels(obj jsonutils.JSONObject) interface{}

func (PersistentVolumeManager) GetName

func (g PersistentVolumeManager) GetName(obj jsonutils.JSONObject) interface{}

func (PersistentVolumeManager) GetStorageClass

func (m PersistentVolumeManager) GetStorageClass(obj jsonutils.JSONObject) interface{}

type PodManager

type PodManager struct {
	*NamespaceResourceManager
	// contains filtered or unexported fields
}
var Pods *PodManager

func (PodManager) GetAge

func (g PodManager) GetAge(obj jsonutils.JSONObject) interface{}

func (PodManager) GetIP

func (m PodManager) GetIP(obj jsonutils.JSONObject) interface{}

func (PodManager) GetLabels

func (g PodManager) GetLabels(obj jsonutils.JSONObject) interface{}

func (PodManager) GetName

func (g PodManager) GetName(obj jsonutils.JSONObject) interface{}

func (PodManager) GetNamespace

func (g PodManager) GetNamespace(obj jsonutils.JSONObject) interface{}

func (PodManager) GetNode

func (m PodManager) GetNode(obj jsonutils.JSONObject) interface{}

func (PodManager) GetRestarts

func (m PodManager) GetRestarts(obj jsonutils.JSONObject) interface{}

func (PodManager) GetStatus

func (g PodManager) GetStatus(obj jsonutils.JSONObject) interface{}

type RawResourceManager

type RawResourceManager struct {
	// contains filtered or unexported fields
}
var RawResource *RawResourceManager

func (*RawResourceManager) Delete

func (m *RawResourceManager) Delete(s *mcclient.ClientSession, kind string, namespace string, name string, cluster string) error

func (*RawResourceManager) Get

func (m *RawResourceManager) Get(s *mcclient.ClientSession, kind string, namespace string, name string, cluster string) (jsonutils.JSONObject, error)

func (*RawResourceManager) Put

func (m *RawResourceManager) Put(s *mcclient.ClientSession, kind string, namespace string, name string, body jsonutils.JSONObject, cluster string) error

type ReleaseManager

type ReleaseManager struct {
	*NamespaceResourceManager
}
var (
	Releases *ReleaseManager
)

func (ReleaseManager) GetAge

func (g ReleaseManager) GetAge(obj jsonutils.JSONObject) interface{}

func (ReleaseManager) GetLabels

func (g ReleaseManager) GetLabels(obj jsonutils.JSONObject) interface{}

func (ReleaseManager) GetName

func (g ReleaseManager) GetName(obj jsonutils.JSONObject) interface{}

func (ReleaseManager) GetNamespace

func (g ReleaseManager) GetNamespace(obj jsonutils.JSONObject) interface{}

type ResourceManager

type ResourceManager struct {
	*modules.ResourceManager
}
var (
	Clusters *ResourceManager
)
var (
	Logs *ResourceManager
)
var (
	Nodes *ResourceManager
)
var (
	Repos *ResourceManager
)

func NewResourceManager

func NewResourceManager(keyword, keywordPlural string, columns, adminColumns *Columns) *ResourceManager

type SecretManager

type SecretManager struct {
	*NamespaceResourceManager
}
var Secrets *SecretManager

func (SecretManager) GetAge

func (g SecretManager) GetAge(obj jsonutils.JSONObject) interface{}

func (SecretManager) GetLabels

func (g SecretManager) GetLabels(obj jsonutils.JSONObject) interface{}

func (SecretManager) GetName

func (g SecretManager) GetName(obj jsonutils.JSONObject) interface{}

func (SecretManager) GetNamespace

func (g SecretManager) GetNamespace(obj jsonutils.JSONObject) interface{}

func (SecretManager) GetType

func (m SecretManager) GetType(obj jsonutils.JSONObject) interface{}

type ServiceManager

type ServiceManager struct {
	*NamespaceResourceManager
}
var Services *ServiceManager

func (ServiceManager) GetAge

func (g ServiceManager) GetAge(obj jsonutils.JSONObject) interface{}

func (ServiceManager) GetClusterIP

func (s ServiceManager) GetClusterIP(obj jsonutils.JSONObject) interface{}

func (ServiceManager) GetLabels

func (g ServiceManager) GetLabels(obj jsonutils.JSONObject) interface{}

func (ServiceManager) GetName

func (g ServiceManager) GetName(obj jsonutils.JSONObject) interface{}

func (ServiceManager) GetNamespace

func (g ServiceManager) GetNamespace(obj jsonutils.JSONObject) interface{}

func (ServiceManager) GetPorts

func (s ServiceManager) GetPorts(obj jsonutils.JSONObject) interface{}

func (ServiceManager) GetSelector

func (s ServiceManager) GetSelector(obj jsonutils.JSONObject) interface{}

func (ServiceManager) GetType

func (s ServiceManager) GetType(obj jsonutils.JSONObject) interface{}

type StatefulSetManager

type StatefulSetManager struct {
	*NamespaceResourceManager
}
var StatefulSets *StatefulSetManager

func (StatefulSetManager) GetAge

func (g StatefulSetManager) GetAge(obj jsonutils.JSONObject) interface{}

func (StatefulSetManager) GetLabels

func (g StatefulSetManager) GetLabels(obj jsonutils.JSONObject) interface{}

func (StatefulSetManager) GetName

func (g StatefulSetManager) GetName(obj jsonutils.JSONObject) interface{}

func (StatefulSetManager) GetNamespace

func (g StatefulSetManager) GetNamespace(obj jsonutils.JSONObject) interface{}

type StorageclassManager

type StorageclassManager struct {
	*MetaResourceManager
}
var Storageclass *StorageclassManager

func (StorageclassManager) GetAge

func (g StorageclassManager) GetAge(obj jsonutils.JSONObject) interface{}

func (StorageclassManager) GetLabels

func (g StorageclassManager) GetLabels(obj jsonutils.JSONObject) interface{}

func (StorageclassManager) GetName

func (g StorageclassManager) GetName(obj jsonutils.JSONObject) interface{}

func (StorageclassManager) GetProvisioner

func (m StorageclassManager) GetProvisioner(obj jsonutils.JSONObject) interface{}

type TillerManager

type TillerManager struct {
	*ResourceManager
}
var (
	Tiller *TillerManager
)

Jump to

Keyboard shortcuts

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