k8s

package
v0.0.0-...-2b29b9b Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: Apache-2.0, Apache-2.0 Imports: 17 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Apps        *AppManager
	AppFromFile *AppFromFileManager
)
View Source
var (
	Logs   *ResourceManager
	Events *EventManager
)
View Source
var (
	RbacRoles               *RbacRoleManager
	RbacClusterRoles        *RbacClusterRoleManager
	RbacRoleBindings        *RbacRoleBindingManager
	RbacClusterRoleBindings *RbacClusterRoleBindingManager
	ServiceAccounts         *ServiceAccountManager
)
View Source
var (
	FederatedClusterRoleBindingClusters modulebase.JointResourceManager
)
View Source
var (
	FederatedClusterRoleClusters modulebase.JointResourceManager
)
View Source
var (
	FederatedNamespaceClusters modulebase.JointResourceManager
)
View Source
var (
	FederatedRoleBindingClusters modulebase.JointResourceManager
)
View Source
var (
	FederatedRoleClusters modulebase.JointResourceManager
)
View Source
var (
	KubeTasks *tasks.TasksManager
)

Functions

func NewJointManager

func NewJointManager(keyword, keywordPlural string, columns, adminColumns *Columns, master, slave modulebase.Manager) modulebase.JointResourceManager

Types

type AppFromFileManager

type AppFromFileManager struct {
	*NamespaceResourceManager
}

func (AppFromFileManager) GetRaw

func (man AppFromFileManager) GetRaw(s *mcclient.ClientSession, id string, params *jsonutils.JSONDict) (jsonutils.JSONObject, error)

func (AppFromFileManager) Get_Age

func (g AppFromFileManager) Get_Age(obj jsonutils.JSONObject) interface{}

func (AppFromFileManager) Get_Cluster

func (man AppFromFileManager) Get_Cluster(obj jsonutils.JSONObject) interface{}

func (AppFromFileManager) Get_Id

func (g AppFromFileManager) Get_Id(obj jsonutils.JSONObject) interface{}

func (AppFromFileManager) Get_Labels

func (g AppFromFileManager) Get_Labels(obj jsonutils.JSONObject) interface{}

func (AppFromFileManager) Get_Name

func (g AppFromFileManager) Get_Name(obj jsonutils.JSONObject) interface{}

func (AppFromFileManager) Get_Namespace

func (g AppFromFileManager) Get_Namespace(obj jsonutils.JSONObject) interface{}

func (AppFromFileManager) UpdateRaw

func (man AppFromFileManager) UpdateRaw(s *mcclient.ClientSession, id string, query, rawdata *jsonutils.JSONDict) (jsonutils.JSONObject, error)

type AppManager

type AppManager struct {
	*NamespaceResourceManager
}

func (AppManager) GetRaw

func (man AppManager) GetRaw(s *mcclient.ClientSession, id string, params *jsonutils.JSONDict) (jsonutils.JSONObject, error)

func (AppManager) Get_Age

func (g AppManager) Get_Age(obj jsonutils.JSONObject) interface{}

func (AppManager) Get_Cluster

func (man AppManager) Get_Cluster(obj jsonutils.JSONObject) interface{}

func (AppManager) Get_Id

func (g AppManager) Get_Id(obj jsonutils.JSONObject) interface{}

func (AppManager) Get_Labels

func (g AppManager) Get_Labels(obj jsonutils.JSONObject) interface{}

func (AppManager) Get_Name

func (g AppManager) Get_Name(obj jsonutils.JSONObject) interface{}

func (AppManager) Get_Namespace

func (g AppManager) Get_Namespace(obj jsonutils.JSONObject) interface{}

func (AppManager) UpdateRaw

func (man AppManager) UpdateRaw(s *mcclient.ClientSession, id string, query, rawdata *jsonutils.JSONDict) (jsonutils.JSONObject, error)

type ChartManager

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

func (ChartManager) Get_Description

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

func (ChartManager) Get_RepoWithName

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

func (ChartManager) Get_Version

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

type ClusterResourceManager

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

func NewClusterResourceManager

func NewClusterResourceManager(kw, kwp string, columns, adminColumns *Columns) *ClusterResourceManager

func (ClusterResourceManager) GetRaw

func (man ClusterResourceManager) GetRaw(s *mcclient.ClientSession, id string, params *jsonutils.JSONDict) (jsonutils.JSONObject, error)

func (ClusterResourceManager) Get_Age

func (g ClusterResourceManager) Get_Age(obj jsonutils.JSONObject) interface{}

func (ClusterResourceManager) Get_Cluster

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

func (ClusterResourceManager) Get_Id

func (g ClusterResourceManager) Get_Id(obj jsonutils.JSONObject) interface{}

func (ClusterResourceManager) Get_Labels

func (g ClusterResourceManager) Get_Labels(obj jsonutils.JSONObject) interface{}

func (ClusterResourceManager) Get_Name

func (g ClusterResourceManager) Get_Name(obj jsonutils.JSONObject) interface{}

func (ClusterResourceManager) UpdateRaw

func (man ClusterResourceManager) UpdateRaw(s *mcclient.ClientSession, id string, query, rawdata *jsonutils.JSONDict) (jsonutils.JSONObject, error)

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 NewFedJointClusterCols

func NewFedJointClusterCols(col ...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) GetRaw

func (man ConfigMapManager) GetRaw(s *mcclient.ClientSession, id string, params *jsonutils.JSONDict) (jsonutils.JSONObject, error)

func (ConfigMapManager) Get_Age

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

func (ConfigMapManager) Get_Cluster

func (man ConfigMapManager) Get_Cluster(obj jsonutils.JSONObject) interface{}

func (ConfigMapManager) Get_Id

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

func (ConfigMapManager) Get_Labels

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

func (ConfigMapManager) Get_Name

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

func (ConfigMapManager) Get_Namespace

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

func (ConfigMapManager) UpdateRaw

func (man ConfigMapManager) UpdateRaw(s *mcclient.ClientSession, id string, query, rawdata *jsonutils.JSONDict) (jsonutils.JSONObject, error)

type ContainerRegistryManager

type ContainerRegistryManager struct {
	*ResourceManager
}
var (
	ContainerRegistries *ContainerRegistryManager
)

func NewContainerRegistryManager

func NewContainerRegistryManager() *ContainerRegistryManager

func (*ContainerRegistryManager) DownloadImage

func (m *ContainerRegistryManager) DownloadImage(s *mcclient.ClientSession, id string, imageName string, imageTag string) (string, io.Reader, int64, error)

func (*ContainerRegistryManager) DownloadImageByManager

func (*ContainerRegistryManager) UploadImage

type CronJobManager

type CronJobManager struct {
	*NamespaceResourceManager
}
var CronJobs *CronJobManager

func (CronJobManager) GetRaw

func (man CronJobManager) GetRaw(s *mcclient.ClientSession, id string, params *jsonutils.JSONDict) (jsonutils.JSONObject, error)

func (CronJobManager) Get_Age

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

func (CronJobManager) Get_Cluster

func (man CronJobManager) Get_Cluster(obj jsonutils.JSONObject) interface{}

func (CronJobManager) Get_Id

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

func (CronJobManager) Get_Labels

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

func (CronJobManager) Get_Name

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

func (CronJobManager) Get_Namespace

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

func (CronJobManager) UpdateRaw

func (man CronJobManager) UpdateRaw(s *mcclient.ClientSession, id string, query, rawdata *jsonutils.JSONDict) (jsonutils.JSONObject, error)

type DaemonSetManager

type DaemonSetManager struct {
	*NamespaceResourceManager
}
var (
	DaemonSets *DaemonSetManager
)

func (DaemonSetManager) GetRaw

func (man DaemonSetManager) GetRaw(s *mcclient.ClientSession, id string, params *jsonutils.JSONDict) (jsonutils.JSONObject, error)

func (DaemonSetManager) Get_Age

func (g DaemonSetManager) Get_Age(obj jsonutils.JSONObject) interface{}

func (DaemonSetManager) Get_Cluster

func (man DaemonSetManager) Get_Cluster(obj jsonutils.JSONObject) interface{}

func (DaemonSetManager) Get_Id

func (g DaemonSetManager) Get_Id(obj jsonutils.JSONObject) interface{}

func (DaemonSetManager) Get_Labels

func (g DaemonSetManager) Get_Labels(obj jsonutils.JSONObject) interface{}

func (DaemonSetManager) Get_Name

func (g DaemonSetManager) Get_Name(obj jsonutils.JSONObject) interface{}

func (DaemonSetManager) Get_Namespace

func (g DaemonSetManager) Get_Namespace(obj jsonutils.JSONObject) interface{}

func (DaemonSetManager) UpdateRaw

func (man DaemonSetManager) UpdateRaw(s *mcclient.ClientSession, id string, query, rawdata *jsonutils.JSONDict) (jsonutils.JSONObject, error)

type DeploymentManager

type DeploymentManager struct {
	*NamespaceResourceManager
}
var (
	Deployments *DeploymentManager
)

func (DeploymentManager) GetRaw

func (man DeploymentManager) GetRaw(s *mcclient.ClientSession, id string, params *jsonutils.JSONDict) (jsonutils.JSONObject, error)

func (DeploymentManager) Get_Age

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

func (DeploymentManager) Get_Cluster

func (man DeploymentManager) Get_Cluster(obj jsonutils.JSONObject) interface{}

func (DeploymentManager) Get_Id

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

func (DeploymentManager) Get_Labels

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

func (DeploymentManager) Get_Name

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

func (DeploymentManager) Get_Namespace

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

func (DeploymentManager) UpdateRaw

func (man DeploymentManager) UpdateRaw(s *mcclient.ClientSession, id string, query, rawdata *jsonutils.JSONDict) (jsonutils.JSONObject, error)

type DownloadImageByManagerInput

type DownloadImageByManagerInput struct {
	Insecure bool   `json:"insecure"`
	Image    string `json:"image"`
	Username string `json:"username"`
	Password string `json:"password"`
}

type EventManager

type EventManager struct {
	*NamespaceResourceManager
}

func (EventManager) GetRaw

func (man EventManager) GetRaw(s *mcclient.ClientSession, id string, params *jsonutils.JSONDict) (jsonutils.JSONObject, error)

func (EventManager) Get_Action

func (m EventManager) Get_Action(obj jsonutils.JSONObject) interface{}

func (EventManager) Get_Age

func (g EventManager) Get_Age(obj jsonutils.JSONObject) interface{}

func (EventManager) Get_Cluster

func (man EventManager) Get_Cluster(obj jsonutils.JSONObject) interface{}

func (EventManager) Get_Id

func (g EventManager) Get_Id(obj jsonutils.JSONObject) interface{}

func (EventManager) Get_Labels

func (g EventManager) Get_Labels(obj jsonutils.JSONObject) interface{}

func (EventManager) Get_Message

func (m EventManager) Get_Message(obj jsonutils.JSONObject) interface{}

func (EventManager) Get_Name

func (g EventManager) Get_Name(obj jsonutils.JSONObject) interface{}

func (EventManager) Get_Namespace

func (g EventManager) Get_Namespace(obj jsonutils.JSONObject) interface{}

func (EventManager) Get_Object

func (m EventManager) Get_Object(obj jsonutils.JSONObject) interface{}

func (EventManager) Get_Source

func (m EventManager) Get_Source(obj jsonutils.JSONObject) interface{}

func (EventManager) Get_Type

func (m EventManager) Get_Type(obj jsonutils.JSONObject) interface{}

func (EventManager) UpdateRaw

func (man EventManager) UpdateRaw(s *mcclient.ClientSession, id string, query, rawdata *jsonutils.JSONDict) (jsonutils.JSONObject, error)

type FederatedClusterRoleBindingManager

type FederatedClusterRoleBindingManager struct {
	*FederatedResourceManager
}
var FederatedClusterRoleBindings *FederatedClusterRoleBindingManager

func NewFederatedClusterRoleBindingManager

func NewFederatedClusterRoleBindingManager() *FederatedClusterRoleBindingManager

type FederatedClusterRoleManager

type FederatedClusterRoleManager struct {
	*FederatedResourceManager
}
var FederatedClusterRoles *FederatedClusterRoleManager

func NewFederatedClusterRoleManager

func NewFederatedClusterRoleManager() *FederatedClusterRoleManager

type FederatedNamespaceManager

type FederatedNamespaceManager struct {
	*FederatedResourceManager
}
var FederatedNamespaces *FederatedNamespaceManager

func NewFederatedNamespaceManager

func NewFederatedNamespaceManager() *FederatedNamespaceManager

type FederatedNamespaceResourceManager

type FederatedNamespaceResourceManager struct {
	*FederatedResourceManager
}

func NewFederatedNamespaceResourceManager

func NewFederatedNamespaceResourceManager(keyword, keywordPlural string) *FederatedNamespaceResourceManager

type FederatedResourceManager

type FederatedResourceManager struct {
	*ResourceManager
}

func NewFederatedResourceManager

func NewFederatedResourceManager(keyword, keywordPlural string) *FederatedResourceManager

type FederatedRoleBindingManager

type FederatedRoleBindingManager struct {
	*FederatedNamespaceResourceManager
}
var FederatedRoleBindings *FederatedRoleBindingManager

func NewFederatedRoleBindingManager

func NewFederatedRoleBindingManager() *FederatedRoleBindingManager

type FederatedRoleManager

type FederatedRoleManager struct {
	*FederatedNamespaceResourceManager
}
var FederatedRoles *FederatedRoleManager

func NewFederatedRoleManager

func NewFederatedRoleManager() *FederatedRoleManager

type IClusterResourceManager

type IClusterResourceManager interface {
	modulebase.Manager
	GetRaw(s *mcclient.ClientSession, id string, params *jsonutils.JSONDict) (jsonutils.JSONObject, error)
	UpdateRaw(s *mcclient.ClientSession, id string, query, body *jsonutils.JSONDict) (jsonutils.JSONObject, error)
}

type IngressManager

type IngressManager struct {
	*NamespaceResourceManager
}
var Ingresses *IngressManager

func (IngressManager) GetRaw

func (man IngressManager) GetRaw(s *mcclient.ClientSession, id string, params *jsonutils.JSONDict) (jsonutils.JSONObject, error)

func (IngressManager) Get_Age

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

func (IngressManager) Get_Cluster

func (man IngressManager) Get_Cluster(obj jsonutils.JSONObject) interface{}

func (IngressManager) Get_Id

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

func (IngressManager) Get_Labels

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

func (IngressManager) Get_Name

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

func (IngressManager) Get_Namespace

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

func (IngressManager) UpdateRaw

func (man IngressManager) UpdateRaw(s *mcclient.ClientSession, id string, query, rawdata *jsonutils.JSONDict) (jsonutils.JSONObject, error)

type JobManager

type JobManager struct {
	*NamespaceResourceManager
}
var Jobs *JobManager

func (JobManager) GetRaw

func (man JobManager) GetRaw(s *mcclient.ClientSession, id string, params *jsonutils.JSONDict) (jsonutils.JSONObject, error)

func (JobManager) Get_Age

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

func (JobManager) Get_Cluster

func (man JobManager) Get_Cluster(obj jsonutils.JSONObject) interface{}

func (JobManager) Get_Id

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

func (JobManager) Get_Labels

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

func (JobManager) Get_Name

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

func (JobManager) Get_Namespace

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

func (JobManager) UpdateRaw

func (man JobManager) UpdateRaw(s *mcclient.ClientSession, id string, query, rawdata *jsonutils.JSONDict) (jsonutils.JSONObject, error)

type K8sNodeManager

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

func (K8sNodeManager) GetRaw

func (man K8sNodeManager) GetRaw(s *mcclient.ClientSession, id string, params *jsonutils.JSONDict) (jsonutils.JSONObject, error)

func (K8sNodeManager) Get_Age

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

func (K8sNodeManager) Get_Cluster

func (man K8sNodeManager) Get_Cluster(obj jsonutils.JSONObject) interface{}

func (K8sNodeManager) Get_Id

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

func (K8sNodeManager) Get_Labels

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

func (K8sNodeManager) Get_Name

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

func (K8sNodeManager) UpdateRaw

func (man K8sNodeManager) UpdateRaw(s *mcclient.ClientSession, id string, query, rawdata *jsonutils.JSONDict) (jsonutils.JSONObject, error)

type KubeTasksManager

type KubeTasksManager struct {
	ResourceManager
}

type ListPrinter

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

type NamespaceManager

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

func (NamespaceManager) GetRaw

func (man NamespaceManager) GetRaw(s *mcclient.ClientSession, id string, params *jsonutils.JSONDict) (jsonutils.JSONObject, error)

func (NamespaceManager) Get_Age

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

func (NamespaceManager) Get_Cluster

func (man NamespaceManager) Get_Cluster(obj jsonutils.JSONObject) interface{}

func (NamespaceManager) Get_Id

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

func (NamespaceManager) Get_Labels

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

func (NamespaceManager) Get_Name

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

func (NamespaceManager) Get_Status

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

func (NamespaceManager) UpdateRaw

func (man NamespaceManager) UpdateRaw(s *mcclient.ClientSession, id string, query, rawdata *jsonutils.JSONDict) (jsonutils.JSONObject, error)

type NamespaceResourceManager

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

func NewNamespaceResourceManager

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

func (NamespaceResourceManager) GetRaw

func (man NamespaceResourceManager) GetRaw(s *mcclient.ClientSession, id string, params *jsonutils.JSONDict) (jsonutils.JSONObject, error)

func (NamespaceResourceManager) Get_Age

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

func (NamespaceResourceManager) Get_Cluster

func (man NamespaceResourceManager) Get_Cluster(obj jsonutils.JSONObject) interface{}

func (NamespaceResourceManager) Get_Id

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

func (NamespaceResourceManager) Get_Labels

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

func (NamespaceResourceManager) Get_Name

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

func (NamespaceResourceManager) Get_Namespace

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

func (NamespaceResourceManager) UpdateRaw

func (man NamespaceResourceManager) UpdateRaw(s *mcclient.ClientSession, id string, query, rawdata *jsonutils.JSONDict) (jsonutils.JSONObject, error)

type PersistentVolumeClaimManager

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

func (PersistentVolumeClaimManager) GetRaw

func (man PersistentVolumeClaimManager) GetRaw(s *mcclient.ClientSession, id string, params *jsonutils.JSONDict) (jsonutils.JSONObject, error)

func (PersistentVolumeClaimManager) Get_Age

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

func (PersistentVolumeClaimManager) Get_Cluster

func (man PersistentVolumeClaimManager) Get_Cluster(obj jsonutils.JSONObject) interface{}

func (PersistentVolumeClaimManager) Get_Id

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

func (PersistentVolumeClaimManager) Get_Labels

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

func (PersistentVolumeClaimManager) Get_MountedBy

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

func (PersistentVolumeClaimManager) Get_Name

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

func (PersistentVolumeClaimManager) Get_Namespace

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

func (PersistentVolumeClaimManager) Get_Status

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

func (PersistentVolumeClaimManager) Get_StorageClass

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

func (PersistentVolumeClaimManager) Get_Volume

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

func (PersistentVolumeClaimManager) UpdateRaw

func (man PersistentVolumeClaimManager) UpdateRaw(s *mcclient.ClientSession, id string, query, rawdata *jsonutils.JSONDict) (jsonutils.JSONObject, error)

type PersistentVolumeManager

type PersistentVolumeManager struct {
	*ClusterResourceManager
}
var PersistentVolumes *PersistentVolumeManager

func (PersistentVolumeManager) GetRaw

func (man PersistentVolumeManager) GetRaw(s *mcclient.ClientSession, id string, params *jsonutils.JSONDict) (jsonutils.JSONObject, error)

func (PersistentVolumeManager) Get_AccessModes

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

func (PersistentVolumeManager) Get_Age

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

func (PersistentVolumeManager) Get_Claim

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

func (PersistentVolumeManager) Get_Cluster

func (man PersistentVolumeManager) Get_Cluster(obj jsonutils.JSONObject) interface{}

func (PersistentVolumeManager) Get_Id

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

func (PersistentVolumeManager) Get_Labels

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

func (PersistentVolumeManager) Get_Name

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

func (PersistentVolumeManager) Get_StorageClass

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

func (PersistentVolumeManager) UpdateRaw

func (man PersistentVolumeManager) UpdateRaw(s *mcclient.ClientSession, id string, query, rawdata *jsonutils.JSONDict) (jsonutils.JSONObject, error)

type PodManager

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

func (PodManager) GetRaw

func (man PodManager) GetRaw(s *mcclient.ClientSession, id string, params *jsonutils.JSONDict) (jsonutils.JSONObject, error)

func (PodManager) Get_Age

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

func (PodManager) Get_Cluster

func (man PodManager) Get_Cluster(obj jsonutils.JSONObject) interface{}

func (PodManager) Get_IP

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

func (PodManager) Get_Id

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

func (PodManager) Get_Labels

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

func (PodManager) Get_Name

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

func (PodManager) Get_Namespace

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

func (PodManager) Get_Node

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

func (PodManager) Get_Restarts

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

func (PodManager) Get_Status

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

func (PodManager) UpdateRaw

func (man PodManager) UpdateRaw(s *mcclient.ClientSession, id string, query, rawdata *jsonutils.JSONDict) (jsonutils.JSONObject, error)

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) GetYAML

func (m *RawResourceManager) GetYAML(s *mcclient.ClientSession, kind string, namespace string, name string, cluster string) ([]byte, error)

func (*RawResourceManager) Put

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

type RbacClusterRoleBindingManager

type RbacClusterRoleBindingManager struct {
	*ClusterResourceManager
}

func (RbacClusterRoleBindingManager) GetRaw

func (man RbacClusterRoleBindingManager) GetRaw(s *mcclient.ClientSession, id string, params *jsonutils.JSONDict) (jsonutils.JSONObject, error)

func (RbacClusterRoleBindingManager) Get_Age

func (g RbacClusterRoleBindingManager) Get_Age(obj jsonutils.JSONObject) interface{}

func (RbacClusterRoleBindingManager) Get_Cluster

func (man RbacClusterRoleBindingManager) Get_Cluster(obj jsonutils.JSONObject) interface{}

func (RbacClusterRoleBindingManager) Get_Id

func (g RbacClusterRoleBindingManager) Get_Id(obj jsonutils.JSONObject) interface{}

func (RbacClusterRoleBindingManager) Get_Labels

func (g RbacClusterRoleBindingManager) Get_Labels(obj jsonutils.JSONObject) interface{}

func (RbacClusterRoleBindingManager) Get_Name

func (g RbacClusterRoleBindingManager) Get_Name(obj jsonutils.JSONObject) interface{}

func (RbacClusterRoleBindingManager) UpdateRaw

func (man RbacClusterRoleBindingManager) UpdateRaw(s *mcclient.ClientSession, id string, query, rawdata *jsonutils.JSONDict) (jsonutils.JSONObject, error)

type RbacClusterRoleManager

type RbacClusterRoleManager struct {
	*ClusterResourceManager
}

func (RbacClusterRoleManager) GetRaw

func (man RbacClusterRoleManager) GetRaw(s *mcclient.ClientSession, id string, params *jsonutils.JSONDict) (jsonutils.JSONObject, error)

func (RbacClusterRoleManager) Get_Age

func (g RbacClusterRoleManager) Get_Age(obj jsonutils.JSONObject) interface{}

func (RbacClusterRoleManager) Get_Cluster

func (man RbacClusterRoleManager) Get_Cluster(obj jsonutils.JSONObject) interface{}

func (RbacClusterRoleManager) Get_Id

func (g RbacClusterRoleManager) Get_Id(obj jsonutils.JSONObject) interface{}

func (RbacClusterRoleManager) Get_Labels

func (g RbacClusterRoleManager) Get_Labels(obj jsonutils.JSONObject) interface{}

func (RbacClusterRoleManager) Get_Name

func (g RbacClusterRoleManager) Get_Name(obj jsonutils.JSONObject) interface{}

func (RbacClusterRoleManager) UpdateRaw

func (man RbacClusterRoleManager) UpdateRaw(s *mcclient.ClientSession, id string, query, rawdata *jsonutils.JSONDict) (jsonutils.JSONObject, error)

type RbacRoleBindingManager

type RbacRoleBindingManager struct {
	*NamespaceResourceManager
}

func (RbacRoleBindingManager) GetRaw

func (man RbacRoleBindingManager) GetRaw(s *mcclient.ClientSession, id string, params *jsonutils.JSONDict) (jsonutils.JSONObject, error)

func (RbacRoleBindingManager) Get_Age

func (g RbacRoleBindingManager) Get_Age(obj jsonutils.JSONObject) interface{}

func (RbacRoleBindingManager) Get_Cluster

func (man RbacRoleBindingManager) Get_Cluster(obj jsonutils.JSONObject) interface{}

func (RbacRoleBindingManager) Get_Id

func (g RbacRoleBindingManager) Get_Id(obj jsonutils.JSONObject) interface{}

func (RbacRoleBindingManager) Get_Labels

func (g RbacRoleBindingManager) Get_Labels(obj jsonutils.JSONObject) interface{}

func (RbacRoleBindingManager) Get_Name

func (g RbacRoleBindingManager) Get_Name(obj jsonutils.JSONObject) interface{}

func (RbacRoleBindingManager) Get_Namespace

func (g RbacRoleBindingManager) Get_Namespace(obj jsonutils.JSONObject) interface{}

func (RbacRoleBindingManager) UpdateRaw

func (man RbacRoleBindingManager) UpdateRaw(s *mcclient.ClientSession, id string, query, rawdata *jsonutils.JSONDict) (jsonutils.JSONObject, error)

type RbacRoleManager

type RbacRoleManager struct {
	*NamespaceResourceManager
}

func (RbacRoleManager) GetRaw

func (man RbacRoleManager) GetRaw(s *mcclient.ClientSession, id string, params *jsonutils.JSONDict) (jsonutils.JSONObject, error)

func (RbacRoleManager) Get_Age

func (g RbacRoleManager) Get_Age(obj jsonutils.JSONObject) interface{}

func (RbacRoleManager) Get_Cluster

func (man RbacRoleManager) Get_Cluster(obj jsonutils.JSONObject) interface{}

func (RbacRoleManager) Get_Id

func (g RbacRoleManager) Get_Id(obj jsonutils.JSONObject) interface{}

func (RbacRoleManager) Get_Labels

func (g RbacRoleManager) Get_Labels(obj jsonutils.JSONObject) interface{}

func (RbacRoleManager) Get_Name

func (g RbacRoleManager) Get_Name(obj jsonutils.JSONObject) interface{}

func (RbacRoleManager) Get_Namespace

func (g RbacRoleManager) Get_Namespace(obj jsonutils.JSONObject) interface{}

func (RbacRoleManager) UpdateRaw

func (man RbacRoleManager) UpdateRaw(s *mcclient.ClientSession, id string, query, rawdata *jsonutils.JSONDict) (jsonutils.JSONObject, error)

type RegistrySecretManager

type RegistrySecretManager struct {
	*SecretManager
}

func (RegistrySecretManager) GetRaw

func (man RegistrySecretManager) GetRaw(s *mcclient.ClientSession, id string, params *jsonutils.JSONDict) (jsonutils.JSONObject, error)

func (RegistrySecretManager) Get_Age

func (g RegistrySecretManager) Get_Age(obj jsonutils.JSONObject) interface{}

func (RegistrySecretManager) Get_Cluster

func (man RegistrySecretManager) Get_Cluster(obj jsonutils.JSONObject) interface{}

func (RegistrySecretManager) Get_Id

func (g RegistrySecretManager) Get_Id(obj jsonutils.JSONObject) interface{}

func (RegistrySecretManager) Get_Labels

func (g RegistrySecretManager) Get_Labels(obj jsonutils.JSONObject) interface{}

func (RegistrySecretManager) Get_Name

func (g RegistrySecretManager) Get_Name(obj jsonutils.JSONObject) interface{}

func (RegistrySecretManager) Get_Namespace

func (g RegistrySecretManager) Get_Namespace(obj jsonutils.JSONObject) interface{}

func (RegistrySecretManager) UpdateRaw

func (man RegistrySecretManager) UpdateRaw(s *mcclient.ClientSession, id string, query, rawdata *jsonutils.JSONDict) (jsonutils.JSONObject, error)

type ReleaseManager

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

func (ReleaseManager) GetRaw

func (man ReleaseManager) GetRaw(s *mcclient.ClientSession, id string, params *jsonutils.JSONDict) (jsonutils.JSONObject, error)

func (ReleaseManager) Get_Age

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

func (ReleaseManager) Get_Cluster

func (man ReleaseManager) Get_Cluster(obj jsonutils.JSONObject) interface{}

func (ReleaseManager) Get_Id

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

func (ReleaseManager) Get_Labels

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

func (ReleaseManager) Get_Name

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

func (ReleaseManager) Get_Namespace

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

func (ReleaseManager) UpdateRaw

func (man ReleaseManager) UpdateRaw(s *mcclient.ClientSession, id string, query, rawdata *jsonutils.JSONDict) (jsonutils.JSONObject, error)

type RepoManager

type RepoManager struct {
	*ResourceManager
}
var (
	Repos *RepoManager
)

func NewRepoManager

func NewRepoManager() *RepoManager

func (*RepoManager) DownloadChart

func (m *RepoManager) DownloadChart(s *mcclient.ClientSession, id string, chartName string, chartVersion string) (string, io.Reader, int64, error)

func (*RepoManager) UploadChart

func (m *RepoManager) UploadChart(s *mcclient.ClientSession, id string, params jsonutils.JSONObject, body io.Reader, size int64) (jsonutils.JSONObject, error)

type ResourceManager

type ResourceManager struct {
	*modulebase.ResourceManager
}
var (
	KubeCerts *ResourceManager
)
var (
	KubeClusters *ResourceManager
)
var (
	KubeMachines *ResourceManager
)

func NewResourceManager

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

func (ResourceManager) GetBaseManager

func (m ResourceManager) GetBaseManager() modulebase.ResourceManager

type SUsageManager

type SUsageManager struct {
	*ResourceManager
}
var (
	Usages *SUsageManager
)

func NewUsageManager

func NewUsageManager() *SUsageManager

func (*SUsageManager) GetUsage

type SecretManager

type SecretManager struct {
	*NamespaceResourceManager
}
var (
	Secrets *SecretManager
)

func (SecretManager) GetRaw

func (man SecretManager) GetRaw(s *mcclient.ClientSession, id string, params *jsonutils.JSONDict) (jsonutils.JSONObject, error)

func (SecretManager) Get_Age

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

func (SecretManager) Get_Cluster

func (man SecretManager) Get_Cluster(obj jsonutils.JSONObject) interface{}

func (SecretManager) Get_Id

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

func (SecretManager) Get_Labels

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

func (SecretManager) Get_Name

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

func (SecretManager) Get_Namespace

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

func (SecretManager) Get_Type

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

func (SecretManager) UpdateRaw

func (man SecretManager) UpdateRaw(s *mcclient.ClientSession, id string, query, rawdata *jsonutils.JSONDict) (jsonutils.JSONObject, error)

type ServiceAccountManager

type ServiceAccountManager struct {
	*NamespaceResourceManager
}

func (ServiceAccountManager) GetRaw

func (man ServiceAccountManager) GetRaw(s *mcclient.ClientSession, id string, params *jsonutils.JSONDict) (jsonutils.JSONObject, error)

func (ServiceAccountManager) Get_Age

func (g ServiceAccountManager) Get_Age(obj jsonutils.JSONObject) interface{}

func (ServiceAccountManager) Get_Cluster

func (man ServiceAccountManager) Get_Cluster(obj jsonutils.JSONObject) interface{}

func (ServiceAccountManager) Get_Id

func (g ServiceAccountManager) Get_Id(obj jsonutils.JSONObject) interface{}

func (ServiceAccountManager) Get_Labels

func (g ServiceAccountManager) Get_Labels(obj jsonutils.JSONObject) interface{}

func (ServiceAccountManager) Get_Name

func (g ServiceAccountManager) Get_Name(obj jsonutils.JSONObject) interface{}

func (ServiceAccountManager) Get_Namespace

func (g ServiceAccountManager) Get_Namespace(obj jsonutils.JSONObject) interface{}

func (ServiceAccountManager) UpdateRaw

func (man ServiceAccountManager) UpdateRaw(s *mcclient.ClientSession, id string, query, rawdata *jsonutils.JSONDict) (jsonutils.JSONObject, error)

type ServiceManager

type ServiceManager struct {
	*NamespaceResourceManager
}
var Services *ServiceManager

func (ServiceManager) GetRaw

func (man ServiceManager) GetRaw(s *mcclient.ClientSession, id string, params *jsonutils.JSONDict) (jsonutils.JSONObject, error)

func (ServiceManager) Get_Age

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

func (ServiceManager) Get_Cluster

func (man ServiceManager) Get_Cluster(obj jsonutils.JSONObject) interface{}

func (ServiceManager) Get_ClusterIP

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

func (ServiceManager) Get_Id

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

func (ServiceManager) Get_Labels

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

func (ServiceManager) Get_Name

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

func (ServiceManager) Get_Namespace

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

func (ServiceManager) Get_Ports

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

func (ServiceManager) Get_Selector

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

func (ServiceManager) Get_Type

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

func (ServiceManager) UpdateRaw

func (man ServiceManager) UpdateRaw(s *mcclient.ClientSession, id string, query, rawdata *jsonutils.JSONDict) (jsonutils.JSONObject, error)

type StatefulSetManager

type StatefulSetManager struct {
	*NamespaceResourceManager
}
var StatefulSets *StatefulSetManager

func (StatefulSetManager) GetRaw

func (man StatefulSetManager) GetRaw(s *mcclient.ClientSession, id string, params *jsonutils.JSONDict) (jsonutils.JSONObject, error)

func (StatefulSetManager) Get_Age

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

func (StatefulSetManager) Get_Cluster

func (man StatefulSetManager) Get_Cluster(obj jsonutils.JSONObject) interface{}

func (StatefulSetManager) Get_Id

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

func (StatefulSetManager) Get_Labels

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

func (StatefulSetManager) Get_Name

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

func (StatefulSetManager) Get_Namespace

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

func (StatefulSetManager) UpdateRaw

func (man StatefulSetManager) UpdateRaw(s *mcclient.ClientSession, id string, query, rawdata *jsonutils.JSONDict) (jsonutils.JSONObject, error)

type StorageclassManager

type StorageclassManager struct {
	*ClusterResourceManager
}
var Storageclass *StorageclassManager

func (StorageclassManager) GetRaw

func (man StorageclassManager) GetRaw(s *mcclient.ClientSession, id string, params *jsonutils.JSONDict) (jsonutils.JSONObject, error)

func (StorageclassManager) Get_Age

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

func (StorageclassManager) Get_Cluster

func (man StorageclassManager) Get_Cluster(obj jsonutils.JSONObject) interface{}

func (StorageclassManager) Get_Id

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

func (StorageclassManager) Get_IsDefault

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

func (StorageclassManager) Get_Labels

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

func (StorageclassManager) Get_Name

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

func (StorageclassManager) Get_Provisioner

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

func (StorageclassManager) UpdateRaw

func (man StorageclassManager) UpdateRaw(s *mcclient.ClientSession, id string, query, rawdata *jsonutils.JSONDict) (jsonutils.JSONObject, error)

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