Documentation ¶
Index ¶
- Constants
- func BuildClusterConfig(kubeconfig string) (*rest.Config, error)
- func FormatStruct(data any, indent bool) string
- func KubeExist(kubeconfig string) bool
- func ResourceEqual(a, b any, equals []string) bool
- type ClusterRole
- func (cr *ClusterRole) AggregationRule(matchLabels map[string]string) *ClusterRole
- func (cr *ClusterRole) Annotations(annotations map[string]string) *ClusterRole
- func (cr *ClusterRole) Create() error
- func (cr *ClusterRole) CreateOrUpdate() error
- func (cr *ClusterRole) Delete() error
- func (cr *ClusterRole) Empty() bool
- func (cr *ClusterRole) Equal(keys []string) bool
- func (cr *ClusterRole) Get() (*v1.ClusterRole, error)
- func (cr *ClusterRole) Labels(labels map[string]string) *ClusterRole
- func (cr *ClusterRole) Link(region, config string) *ClusterRole
- func (cr *ClusterRole) List() (*v1.ClusterRoleList, error)
- func (cr *ClusterRole) Metadata(name string) *ClusterRole
- func (cr *ClusterRole) Rule(verbs []string, apiGroups []string, resoueces []string) *ClusterRole
- func (cr *ClusterRole) Update() error
- type ClusterRoleBinding
- func (crb *ClusterRoleBinding) Annotations(annotations map[string]string) *ClusterRoleBinding
- func (crb *ClusterRoleBinding) Create() error
- func (crb *ClusterRoleBinding) CreateOrUpdate() error
- func (crb *ClusterRoleBinding) Delete() error
- func (crb *ClusterRoleBinding) Empty() bool
- func (crb *ClusterRoleBinding) Equal(keys []string) bool
- func (crb *ClusterRoleBinding) Get() (*v1.ClusterRoleBinding, error)
- func (crb *ClusterRoleBinding) Labels(labels map[string]string) *ClusterRoleBinding
- func (crb *ClusterRoleBinding) Link(region, config string) *ClusterRoleBinding
- func (crb *ClusterRoleBinding) List() (*v1.ClusterRoleBindingList, error)
- func (crb *ClusterRoleBinding) Metadata(name, namespace string) *ClusterRoleBinding
- func (crb *ClusterRoleBinding) RoleRef(kind, apigroup, name string) *ClusterRoleBinding
- func (crb *ClusterRoleBinding) Subject(kind, apigroup, name, namespace string) *ClusterRoleBinding
- func (crb *ClusterRoleBinding) Update() error
- type ConfigMap
- func (c *ConfigMap) Annotations(annotations map[string]string) *ConfigMap
- func (c *ConfigMap) Create() error
- func (c *ConfigMap) CreateOrUpdate() error
- func (c *ConfigMap) Data(data map[string]string) *ConfigMap
- func (c *ConfigMap) Delete() error
- func (c *ConfigMap) Empty() bool
- func (c *ConfigMap) Equal(keys []string) bool
- func (c *ConfigMap) Get() (*v1.ConfigMap, error)
- func (c *ConfigMap) Labels(labels map[string]string) *ConfigMap
- func (c *ConfigMap) Link(region, config string) *ConfigMap
- func (c *ConfigMap) Metadata(name, namespace string) *ConfigMap
- func (c *ConfigMap) Update() error
- type Container
- func (c *Container) Args(args []string) *Container
- func (c *Container) Capabilitie(add v1.Capability, drop v1.Capability) *Container
- func (c *Container) Command(cmds []string) *Container
- func (c *Container) EnvFromSecret(secretName string) *Container
- func (c *Container) Envs(envs map[string]string, refs map[string]string) *Container
- func (c *Container) Image(image string) *Container
- func (c *Container) ImagePullPolicy(policy v1.PullPolicy) *Container
- func (container *Container) Limits(cpu, memory, gpu, ephemeralStorage uint, gpuType string) *Container
- func (container *Container) LivenessProbeExec(command []string, initialDelaySeconds, periodSeconds, failureThreshold int32) *Container
- func (container *Container) LivenessProbeHttpGet(path string, port int32, scheme v1.URIScheme, ...) *Container
- func (container *Container) LivenessProbeTcpSocket(port int32, initialDelaySeconds, periodSeconds, failureThreshold int32) *Container
- func (c *Container) Metadata(name string) *Container
- func (c *Container) Port(name string, port int32, protocal v1.Protocol) *Container
- func (c *Container) Privileged(privileged bool) *Container
- func (container *Container) RedinessProbeExec(command []string, initialDelaySeconds, periodSeconds, failureThreshold int32) *Container
- func (container *Container) RedinessProbeHttpGet(path string, port int32, scheme v1.URIScheme, ...) *Container
- func (container *Container) RedinessProbeTcpSocket(port int32, initialDelaySeconds, periodSeconds, failureThreshold int32) *Container
- func (container *Container) Requests(cpu, memory, gpu, ephemeralStorage uint, gpuType string) *Container
- func (c *Container) VolumeMount(name, mountPath string, readOnly bool) *Container
- type DaemonSet
- func (d *DaemonSet) Annotations(annotations map[string]string) *DaemonSet
- func (d *DaemonSet) Create() error
- func (d *DaemonSet) CreateOrUpdate() error
- func (d *DaemonSet) Delete() error
- func (d *DaemonSet) Empty() bool
- func (d *DaemonSet) Equal(keys []string) bool
- func (d *DaemonSet) Get() (*v1.DaemonSet, error)
- func (d *DaemonSet) Labels(labels map[string]string) *DaemonSet
- func (d *DaemonSet) Link(region, config string) *DaemonSet
- func (d *DaemonSet) Metadata(name, namespace string) *DaemonSet
- func (d *DaemonSet) Rollout() error
- func (d *DaemonSet) Selector(labels map[string]string) *DaemonSet
- func (d *DaemonSet) Template(pt *PodTemplate) *DaemonSet
- func (d *DaemonSet) Update() error
- type Deployment
- func (d *Deployment) Create() error
- func (d *Deployment) CreateOrUpdate() error
- func (d *Deployment) Delete() error
- func (d *Deployment) Empty() bool
- func (d *Deployment) Equal(keys []string) bool
- func (d *Deployment) Get() (*appsv1.Deployment, error)
- func (d *Deployment) GetReplicas() (int32, error)
- func (d *Deployment) Labels(labels map[string]string) *Deployment
- func (d *Deployment) Link(region, config string) *Deployment
- func (d *Deployment) Metadata(name, namespace string) *Deployment
- func (d *Deployment) Replicas(replicas int32) *Deployment
- func (d *Deployment) Rollout() error
- func (d *Deployment) Selector(selector map[string]string) *Deployment
- func (d *Deployment) Strategy(strategy appsv1.DeploymentStrategy) *Deployment
- func (d *Deployment) Template(pod *PodTemplate) *Deployment
- func (d *Deployment) Update() error
- type Endpoint
- func (e *Endpoint) Address(ip, nodeName, hostName string) *Endpoint
- func (e *Endpoint) Addresses() ([]v1.EndpointAddress, error)
- func (e *Endpoint) Create() error
- func (e *Endpoint) CreateOrUpdate() error
- func (e *Endpoint) Delete() error
- func (e *Endpoint) Get() (*v1.Endpoints, error)
- func (e *Endpoint) Link(region, config string) *Endpoint
- func (e *Endpoint) Metadata(name, namespace string) *Endpoint
- func (e *Endpoint) Port(name string, port int32, protocol v1.Protocol) *Endpoint
- func (e *Endpoint) Ports() ([]v1.EndpointPort, error)
- func (e *Endpoint) Subset(subsets []string) *Endpoint
- func (e *Endpoint) Update() error
- type FlatteItem
- type Interface
- type KubeClient
- type LinkInfo
- type Node
- func (n *Node) Annotations(annotations map[string]string) *Node
- func (n *Node) Create() error
- func (n *Node) CreateOrUpdate() error
- func (n *Node) Delete() error
- func (n *Node) Empty() bool
- func (n *Node) Equal(keys []string) bool
- func (n *Node) Fetch() (*Node, error)
- func (n *Node) Get() (*v1.Node, error)
- func (n *Node) Labels(labels map[string]string) *Node
- func (n *Node) Link(region, config string) *Node
- func (n *Node) List() (*v1.NodeList, error)
- func (n *Node) ListPods() ([]v1.Pod, error)
- func (n *Node) Metadata(name string) *Node
- func (n *Node) Update() error
- type NodeSelector
- type NodeSelectorTerm
- type Pod
- func (p *Pod) Annotations(annotations map[string]string) *Pod
- func (p *Pod) Container(container v1.Container) *Pod
- func (p *Pod) Create() error
- func (p *Pod) CreateOrUpdate() error
- func (p Pod) Delete() error
- func (p *Pod) Fetch(replace bool) (*Pod, error)
- func (p *Pod) Get() (*v1.Pod, error)
- func (p *Pod) ImagePullSecrets(secrets []string) *Pod
- func (p *Pod) Labels(labels map[string]string) *Pod
- func (p *Pod) Link(region, config string) *Pod
- func (p *Pod) List() (*v1.PodList, error)
- func (p *Pod) Metadata(name, namespace string) *Pod
- func (p *Pod) RestartPolicy(policy v1.RestartPolicy) *Pod
- func (p *Pod) Toleration(toleration []v1.Toleration) *Pod
- func (p *Pod) Update() error
- func (p *Pod) Volume(volumes v1.Volume) *Pod
- type PodInterface
- type PodTemplate
- func (pt *PodTemplate) Annotations(annotations map[string]string) *PodTemplate
- func (pt *PodTemplate) AutomountServiceAccountToken(auto bool) *PodTemplate
- func (pt *PodTemplate) Container(container Container) *PodTemplate
- func (pt *PodTemplate) ImagePullSecrets(secrets []string) *PodTemplate
- func (pt *PodTemplate) Labels(labels map[string]string) *PodTemplate
- func (pt *PodTemplate) Metadata(name string) *PodTemplate
- func (pt *PodTemplate) NodeSelector(selecotrs map[string]string) *PodTemplate
- func (pt *PodTemplate) PodAffinity(affinity v1.PodAffinity) *PodTemplate
- func (pt *PodTemplate) PodAntiAffinity(affinity v1.PodAntiAffinity) *PodTemplate
- func (pt *PodTemplate) PodSecurityContext(securityContext v1.PodSecurityContext) *PodTemplate
- func (pt *PodTemplate) PreferredDuringSchedulingIgnoredDuringExecution(weight int32, selectorTerm NodeSelectorTerm) *PodTemplate
- func (pt *PodTemplate) RequiredDuringSchedulingIgnoredDuringExecution(selector *NodeSelector) *PodTemplate
- func (pt *PodTemplate) RestartPolicy(policy v1.RestartPolicy) *PodTemplate
- func (pt *PodTemplate) SecurityContext(user, group, fsGroup int64) *PodTemplate
- func (pt *PodTemplate) ServiceAccount(serviceAccount string) *PodTemplate
- func (pt *PodTemplate) TerminationGracePeriodSeconds(seconds int64) *PodTemplate
- func (pt *PodTemplate) Toleration(key string, operator v1.TolerationOperator, value string, ...) *PodTemplate
- func (pt *PodTemplate) Volume(volume Volume) *PodTemplate
- type PodsGetter
- type Secret
- func (s *Secret) Annotations(annotations map[string]string) *Secret
- func (s *Secret) Create() error
- func (s *Secret) CreateOrUpdate() error
- func (s *Secret) Data(data map[string][]byte) *Secret
- func (s *Secret) Delete() error
- func (s *Secret) Empty() bool
- func (s *Secret) Equal(keys []string) bool
- func (s *Secret) Get() (*v1.Secret, error)
- func (s *Secret) Immutable(immutable bool) *Secret
- func (s *Secret) Labels(labels map[string]string) *Secret
- func (s *Secret) Link(region, config string) *Secret
- func (s *Secret) Metadata(name, namespace string) *Secret
- func (s *Secret) StringData(data map[string]string) *Secret
- func (s *Secret) StringDataEqual() bool
- func (s *Secret) Type(t v1.SecretType) *Secret
- func (s *Secret) Update() error
- type Service
- func (s *Service) Create() error
- func (s *Service) CreateOrUpdate() error
- func (s *Service) Delete() error
- func (s *Service) Empty() bool
- func (s *Service) Equal(keys []string) bool
- func (s *Service) Get() (*v1.Service, error)
- func (s *Service) Labels(labels map[string]string) *Service
- func (s *Service) Link(region, config string) *Service
- func (s *Service) Metadata(name, namespace string) *Service
- func (s *Service) Port(name string, port, NodePort int32, protocal v1.Protocol) *Service
- func (s *Service) Selector(selector map[string]string) *Service
- func (s *Service) Type(serviceType v1.ServiceType) *Service
- func (s *Service) Update() error
- type ServiceAccount
- func (sa *ServiceAccount) Annotations(annotations map[string]string) *ServiceAccount
- func (sa *ServiceAccount) AutomountServiceAccountToken(automount bool) *ServiceAccount
- func (sa *ServiceAccount) Create() error
- func (sa *ServiceAccount) CreateOrUpdate() error
- func (sa *ServiceAccount) Delete() error
- func (sa *ServiceAccount) Empty() bool
- func (sa *ServiceAccount) Equal(keys []string) bool
- func (sa *ServiceAccount) Get() (*v1.ServiceAccount, error)
- func (sa *ServiceAccount) Labels(labels map[string]string) *ServiceAccount
- func (sa *ServiceAccount) Link(region, config string) *ServiceAccount
- func (sa *ServiceAccount) List() (*v1.ServiceAccountList, error)
- func (sa *ServiceAccount) Metadata(name, namespace string) *ServiceAccount
- func (sa *ServiceAccount) Secret(kind, secretName, namespace string) *ServiceAccount
- func (sa *ServiceAccount) Update() error
- type Volume
- func (v *Volume) ConfigMap(configMapName string, items []v1.KeyToPath, mode int32) *Volume
- func (v *Volume) EmptyDir(medium string, size *resource.Quantity) *Volume
- func (v *Volume) HostPath(path string, t v1.HostPathType) *Volume
- func (v *Volume) Metadata(name string) *Volume
- func (v *Volume) Secret(secretName string, items []v1.KeyToPath, mode int32) *Volume
Constants ¶
View Source
const ( ResourceNvidiaGPU = "nvidia.com/gpu" ResourceTianshuGPU = "iluvatar.ai/gpu" )
Variables ¶
This section is empty.
Functions ¶
func FormatStruct ¶ added in v0.3.5
func ResourceEqual ¶ added in v0.2.0
Types ¶
type ClusterRole ¶ added in v0.1.1
type ClusterRole struct { *LinkInfo *v1.ClusterRole // contains filtered or unexported fields }
func NewClusterRole ¶ added in v0.1.1
func NewClusterRole(ctx context.Context) *ClusterRole
func (*ClusterRole) AggregationRule ¶ added in v0.1.1
func (cr *ClusterRole) AggregationRule(matchLabels map[string]string) *ClusterRole
func (*ClusterRole) Annotations ¶ added in v0.1.1
func (cr *ClusterRole) Annotations(annotations map[string]string) *ClusterRole
func (*ClusterRole) Create ¶ added in v0.1.1
func (cr *ClusterRole) Create() error
func (*ClusterRole) CreateOrUpdate ¶ added in v0.1.1
func (cr *ClusterRole) CreateOrUpdate() error
func (*ClusterRole) Delete ¶ added in v0.1.1
func (cr *ClusterRole) Delete() error
func (*ClusterRole) Empty ¶ added in v0.1.1
func (cr *ClusterRole) Empty() bool
func (*ClusterRole) Equal ¶ added in v0.1.1
func (cr *ClusterRole) Equal(keys []string) bool
func (*ClusterRole) Get ¶ added in v0.1.1
func (cr *ClusterRole) Get() (*v1.ClusterRole, error)
func (*ClusterRole) Labels ¶ added in v0.1.1
func (cr *ClusterRole) Labels(labels map[string]string) *ClusterRole
func (*ClusterRole) Link ¶ added in v0.1.1
func (cr *ClusterRole) Link(region, config string) *ClusterRole
func (*ClusterRole) List ¶ added in v0.1.1
func (cr *ClusterRole) List() (*v1.ClusterRoleList, error)
func (*ClusterRole) Metadata ¶ added in v0.1.1
func (cr *ClusterRole) Metadata(name string) *ClusterRole
func (*ClusterRole) Rule ¶ added in v0.1.1
func (cr *ClusterRole) Rule(verbs []string, apiGroups []string, resoueces []string) *ClusterRole
func (*ClusterRole) Update ¶ added in v0.1.1
func (cr *ClusterRole) Update() error
type ClusterRoleBinding ¶ added in v0.1.1
type ClusterRoleBinding struct { *LinkInfo *v1.ClusterRoleBinding // contains filtered or unexported fields }
func NewClusterRoleBinding ¶ added in v0.1.1
func NewClusterRoleBinding(ctx context.Context) *ClusterRoleBinding
func (*ClusterRoleBinding) Annotations ¶ added in v0.1.1
func (crb *ClusterRoleBinding) Annotations(annotations map[string]string) *ClusterRoleBinding
func (*ClusterRoleBinding) Create ¶ added in v0.1.1
func (crb *ClusterRoleBinding) Create() error
func (*ClusterRoleBinding) CreateOrUpdate ¶ added in v0.1.1
func (crb *ClusterRoleBinding) CreateOrUpdate() error
func (*ClusterRoleBinding) Delete ¶ added in v0.1.1
func (crb *ClusterRoleBinding) Delete() error
func (*ClusterRoleBinding) Empty ¶ added in v0.1.1
func (crb *ClusterRoleBinding) Empty() bool
func (*ClusterRoleBinding) Equal ¶ added in v0.1.1
func (crb *ClusterRoleBinding) Equal(keys []string) bool
func (*ClusterRoleBinding) Get ¶ added in v0.1.1
func (crb *ClusterRoleBinding) Get() (*v1.ClusterRoleBinding, error)
func (*ClusterRoleBinding) Labels ¶ added in v0.1.1
func (crb *ClusterRoleBinding) Labels(labels map[string]string) *ClusterRoleBinding
func (*ClusterRoleBinding) Link ¶ added in v0.1.1
func (crb *ClusterRoleBinding) Link(region, config string) *ClusterRoleBinding
func (*ClusterRoleBinding) List ¶ added in v0.1.1
func (crb *ClusterRoleBinding) List() (*v1.ClusterRoleBindingList, error)
func (*ClusterRoleBinding) Metadata ¶ added in v0.1.1
func (crb *ClusterRoleBinding) Metadata(name, namespace string) *ClusterRoleBinding
func (*ClusterRoleBinding) RoleRef ¶ added in v0.1.1
func (crb *ClusterRoleBinding) RoleRef(kind, apigroup, name string) *ClusterRoleBinding
func (*ClusterRoleBinding) Subject ¶ added in v0.1.1
func (crb *ClusterRoleBinding) Subject(kind, apigroup, name, namespace string) *ClusterRoleBinding
func (*ClusterRoleBinding) Update ¶ added in v0.1.1
func (crb *ClusterRoleBinding) Update() error
type ConfigMap ¶
func NewConfigMap ¶
func (*ConfigMap) Annotations ¶
func (*ConfigMap) CreateOrUpdate ¶
type Container ¶
func NewContainer ¶
func (*Container) Capabilitie ¶ added in v0.3.0
func (c *Container) Capabilitie(add v1.Capability, drop v1.Capability) *Container
func (*Container) EnvFromSecret ¶
func (*Container) ImagePullPolicy ¶
func (c *Container) ImagePullPolicy(policy v1.PullPolicy) *Container
func (*Container) LivenessProbeExec ¶ added in v0.4.5
func (*Container) LivenessProbeHttpGet ¶ added in v0.4.5
func (*Container) LivenessProbeTcpSocket ¶ added in v0.4.5
func (*Container) Privileged ¶
func (*Container) RedinessProbeExec ¶ added in v0.4.6
func (*Container) RedinessProbeHttpGet ¶ added in v0.4.6
func (*Container) RedinessProbeTcpSocket ¶ added in v0.4.6
type DaemonSet ¶
func NewDaemonSet ¶
func (*DaemonSet) Annotations ¶
func (*DaemonSet) CreateOrUpdate ¶
func (*DaemonSet) Template ¶
func (d *DaemonSet) Template(pt *PodTemplate) *DaemonSet
type Deployment ¶
type Deployment struct { *LinkInfo *appsv1.Deployment // contains filtered or unexported fields }
func NewDeployment ¶
func NewDeployment(ctx context.Context) *Deployment
func (*Deployment) Create ¶
func (d *Deployment) Create() error
func (*Deployment) CreateOrUpdate ¶
func (d *Deployment) CreateOrUpdate() error
func (*Deployment) Delete ¶
func (d *Deployment) Delete() error
func (*Deployment) Empty ¶
func (d *Deployment) Empty() bool
func (*Deployment) Equal ¶ added in v0.2.0
func (d *Deployment) Equal(keys []string) bool
func (*Deployment) Get ¶
func (d *Deployment) Get() (*appsv1.Deployment, error)
func (*Deployment) GetReplicas ¶ added in v0.2.0
func (d *Deployment) GetReplicas() (int32, error)
func (*Deployment) Labels ¶
func (d *Deployment) Labels(labels map[string]string) *Deployment
func (*Deployment) Link ¶
func (d *Deployment) Link(region, config string) *Deployment
func (*Deployment) Metadata ¶
func (d *Deployment) Metadata(name, namespace string) *Deployment
func (*Deployment) Replicas ¶
func (d *Deployment) Replicas(replicas int32) *Deployment
func (*Deployment) Selector ¶
func (d *Deployment) Selector(selector map[string]string) *Deployment
func (*Deployment) Strategy ¶
func (d *Deployment) Strategy(strategy appsv1.DeploymentStrategy) *Deployment
func (*Deployment) Template ¶
func (d *Deployment) Template(pod *PodTemplate) *Deployment
func (*Deployment) Update ¶
func (d *Deployment) Update() error
type FlatteItem ¶ added in v0.2.0
type Interface ¶
type Interface interface {
Pod() PodInterface
}
type KubeClient ¶
type KubeClient struct {
*kubernetes.Clientset
}
func NewKubeClient ¶
func NewKubeClient(region, kubeconfig string) *KubeClient
func (*KubeClient) Namespaces ¶
func (cs *KubeClient) Namespaces() typev1.NamespaceInterface
func (*KubeClient) ResourceQuotas ¶
func (cs *KubeClient) ResourceQuotas(namespace string) typev1.ResourceQuotaInterface
type Node ¶ added in v0.4.8
func (*Node) Annotations ¶ added in v0.4.8
func (*Node) CreateOrUpdate ¶ added in v0.4.8
type NodeSelector ¶ added in v0.3.9
type NodeSelector struct {
*v1.NodeSelector
}
func NewNodeSelector ¶ added in v0.3.9
func NewNodeSelector() *NodeSelector
func (*NodeSelector) NodeSelectorTerm ¶ added in v0.3.9
func (n *NodeSelector) NodeSelectorTerm(term *NodeSelectorTerm) *NodeSelector
type NodeSelectorTerm ¶ added in v0.3.9
type NodeSelectorTerm struct {
*v1.NodeSelectorTerm
}
func NewNodeSelectorTerm ¶ added in v0.3.9
func NewNodeSelectorTerm() *NodeSelectorTerm
func (*NodeSelectorTerm) MatchExpression ¶ added in v0.3.9
func (n *NodeSelectorTerm) MatchExpression(key string, operator v1.NodeSelectorOperator, values []string) *NodeSelectorTerm
type Pod ¶
func (*Pod) CreateOrUpdate ¶
func (*Pod) ImagePullSecrets ¶
func (*Pod) RestartPolicy ¶
func (p *Pod) RestartPolicy(policy v1.RestartPolicy) *Pod
func (*Pod) Toleration ¶
func (p *Pod) Toleration(toleration []v1.Toleration) *Pod
type PodInterface ¶
type PodTemplate ¶
type PodTemplate struct { *v1.PodTemplate // contains filtered or unexported fields }
func NewPodTemplate ¶
func NewPodTemplate(ctx context.Context) *PodTemplate
func (*PodTemplate) Annotations ¶
func (pt *PodTemplate) Annotations(annotations map[string]string) *PodTemplate
func (*PodTemplate) AutomountServiceAccountToken ¶ added in v0.3.3
func (pt *PodTemplate) AutomountServiceAccountToken(auto bool) *PodTemplate
func (*PodTemplate) Container ¶
func (pt *PodTemplate) Container(container Container) *PodTemplate
func (*PodTemplate) ImagePullSecrets ¶
func (pt *PodTemplate) ImagePullSecrets(secrets []string) *PodTemplate
func (*PodTemplate) Labels ¶
func (pt *PodTemplate) Labels(labels map[string]string) *PodTemplate
func (*PodTemplate) Metadata ¶
func (pt *PodTemplate) Metadata(name string) *PodTemplate
func (*PodTemplate) NodeSelector ¶ added in v0.3.9
func (pt *PodTemplate) NodeSelector(selecotrs map[string]string) *PodTemplate
func (*PodTemplate) PodAffinity ¶ added in v0.3.3
func (pt *PodTemplate) PodAffinity(affinity v1.PodAffinity) *PodTemplate
func (*PodTemplate) PodAntiAffinity ¶ added in v0.3.3
func (pt *PodTemplate) PodAntiAffinity(affinity v1.PodAntiAffinity) *PodTemplate
func (*PodTemplate) PodSecurityContext ¶ added in v0.3.2
func (pt *PodTemplate) PodSecurityContext(securityContext v1.PodSecurityContext) *PodTemplate
func (*PodTemplate) PreferredDuringSchedulingIgnoredDuringExecution ¶ added in v0.3.9
func (pt *PodTemplate) PreferredDuringSchedulingIgnoredDuringExecution(weight int32, selectorTerm NodeSelectorTerm) *PodTemplate
func (*PodTemplate) RequiredDuringSchedulingIgnoredDuringExecution ¶ added in v0.3.9
func (pt *PodTemplate) RequiredDuringSchedulingIgnoredDuringExecution(selector *NodeSelector) *PodTemplate
func (*PodTemplate) RestartPolicy ¶
func (pt *PodTemplate) RestartPolicy(policy v1.RestartPolicy) *PodTemplate
func (*PodTemplate) SecurityContext ¶
func (pt *PodTemplate) SecurityContext(user, group, fsGroup int64) *PodTemplate
func (*PodTemplate) ServiceAccount ¶ added in v0.1.9
func (pt *PodTemplate) ServiceAccount(serviceAccount string) *PodTemplate
func (*PodTemplate) TerminationGracePeriodSeconds ¶ added in v0.3.2
func (pt *PodTemplate) TerminationGracePeriodSeconds(seconds int64) *PodTemplate
func (*PodTemplate) Toleration ¶
func (pt *PodTemplate) Toleration(key string, operator v1.TolerationOperator, value string, effect v1.TaintEffect, tolerationSeconds int64) *PodTemplate
func (*PodTemplate) Volume ¶
func (pt *PodTemplate) Volume(volume Volume) *PodTemplate
type PodsGetter ¶
type PodsGetter interface {
Pods() PodInterface
}
type ServiceAccount ¶ added in v0.1.1
type ServiceAccount struct { *LinkInfo *v1.ServiceAccount // contains filtered or unexported fields }
func NewServiceAccount ¶ added in v0.1.1
func NewServiceAccount(ctx context.Context) *ServiceAccount
func (*ServiceAccount) Annotations ¶ added in v0.1.1
func (sa *ServiceAccount) Annotations(annotations map[string]string) *ServiceAccount
func (*ServiceAccount) AutomountServiceAccountToken ¶ added in v0.1.1
func (sa *ServiceAccount) AutomountServiceAccountToken(automount bool) *ServiceAccount
func (*ServiceAccount) Create ¶ added in v0.1.1
func (sa *ServiceAccount) Create() error
func (*ServiceAccount) CreateOrUpdate ¶ added in v0.1.1
func (sa *ServiceAccount) CreateOrUpdate() error
func (*ServiceAccount) Delete ¶ added in v0.1.1
func (sa *ServiceAccount) Delete() error
func (*ServiceAccount) Empty ¶ added in v0.1.1
func (sa *ServiceAccount) Empty() bool
func (*ServiceAccount) Equal ¶ added in v0.1.1
func (sa *ServiceAccount) Equal(keys []string) bool
func (*ServiceAccount) Get ¶ added in v0.1.1
func (sa *ServiceAccount) Get() (*v1.ServiceAccount, error)
func (*ServiceAccount) Labels ¶ added in v0.1.1
func (sa *ServiceAccount) Labels(labels map[string]string) *ServiceAccount
func (*ServiceAccount) Link ¶ added in v0.1.1
func (sa *ServiceAccount) Link(region, config string) *ServiceAccount
func (*ServiceAccount) List ¶ added in v0.1.1
func (sa *ServiceAccount) List() (*v1.ServiceAccountList, error)
func (*ServiceAccount) Metadata ¶ added in v0.1.1
func (sa *ServiceAccount) Metadata(name, namespace string) *ServiceAccount
func (*ServiceAccount) Secret ¶ added in v0.1.1
func (sa *ServiceAccount) Secret(kind, secretName, namespace string) *ServiceAccount
func (*ServiceAccount) Update ¶ added in v0.1.1
func (sa *ServiceAccount) Update() error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.