Documentation ¶
Index ¶
- type ClientSet
- type Config
- type ConfigMaps
- func (c *ConfigMaps) Create(name, namespace string, data map[string]string) (*coreV1.ConfigMap, error)
- func (c *ConfigMaps) Delete(name, namespace string) error
- func (c *ConfigMaps) Get(name, namespace string) (config *coreV1.ConfigMap, err error)
- func (c *ConfigMaps) Update(name, namespace string, configMap *coreV1.ConfigMap) (*coreV1.ConfigMap, error)
- type DeployData
- type DeployRequest
- type Deployment
- func (d *Deployment) Delete(name, namespace string, option *metav1.DeleteOptions) error
- func (d *Deployment) Deploy(request *DeployRequest) (*extensionsV1beta1.Deployment, error)
- func (d *Deployment) DeployNode(deployData *DeployData) (string, error)
- func (d *Deployment) ExtensionsV1beta1Deploy(app, project, imageTag, dockerRegistry string, env interface{}, ...) (string, error)
- func (d *Deployment) Get(name, namespace string, option metav1.GetOptions) (*extensionsV1beta1.Deployment, error)
- func (d *Deployment) Update(deployment *extensionsV1beta1.Deployment) error
- type Pod
- func (p *Pod) Create(pod *corev1.Pod) (*corev1.Pod, error)
- func (p *Pod) GetPodList(namespace string, opts metav1.ListOptions) (*corev1.PodList, error)
- func (p *Pod) GetPodLogs(namespace, name string, opts *corev1.PodLogOptions) (*restclient.Request, error)
- func (p *Pod) GetPods(namespace, name string, opts metav1.GetOptions) (*corev1.Pod, error)
- func (p *Pod) Watch(listOptions metav1.ListOptions, namespace string) (watch.Interface, error)
- type ReplicaSet
- type ReplicationController
- func (rc *ReplicationController) Create(name, namespace string, replicas int32) (*corev1.ReplicationController, error)
- func (rc *ReplicationController) Delete(name, namespace string, option *metav1.DeleteOptions) (err error)
- func (rc *ReplicationController) Watch(name, namespace string, completedHandler func() error) error
- type RestConfig
- type Secret
- type Service
- type Token
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientSet ¶
type ClientSet interface { kubernetes.Interface }
type ConfigMaps ¶
type ConfigMaps struct {
// contains filtered or unexported fields
}
func (*ConfigMaps) Delete ¶
func (c *ConfigMaps) Delete(name, namespace string) error
type DeployData ¶
type DeployRequest ¶
type DeployRequest struct { App string Namespace string Version string Tag string DockerRegistry string Env []corev1.EnvVar Labels map[string]string Ports []corev1.ContainerPort Replicas *int32 NodeSelector map[string]string ReadinessProbe *corev1.Probe LivenessProbe *corev1.Probe Volumes []corev1.Volume VolumeMounts []corev1.VolumeMount }
type Deployment ¶
type Deployment struct {
// contains filtered or unexported fields
}
func (*Deployment) Delete ¶
func (d *Deployment) Delete(name, namespace string, option *metav1.DeleteOptions) error
func (*Deployment) Deploy ¶
func (d *Deployment) Deploy(request *DeployRequest) (*extensionsV1beta1.Deployment, error)
@Title Deploy @Description deploy application @Param pipeline @Return error
func (*Deployment) DeployNode ¶
func (d *Deployment) DeployNode(deployData *DeployData) (string, error)
func (*Deployment) ExtensionsV1beta1Deploy ¶
func (*Deployment) Get ¶
func (d *Deployment) Get(name, namespace string, option metav1.GetOptions) (*extensionsV1beta1.Deployment, error)
func (*Deployment) Update ¶
func (d *Deployment) Update(deployment *extensionsV1beta1.Deployment) error
type Pod ¶
type Pod struct {
// contains filtered or unexported fields
}
func NewPod ¶
func NewPod(clientSet kubernetes.Interface) *Pod
func (*Pod) GetPodList ¶
func (*Pod) GetPodLogs ¶
func (p *Pod) GetPodLogs(namespace, name string, opts *corev1.PodLogOptions) (*restclient.Request, error)
type ReplicaSet ¶
type ReplicaSet struct {
// contains filtered or unexported fields
}
func NewReplicaSet ¶
func NewReplicaSet(clientSet kubernetes.Interface) *ReplicaSet
func (*ReplicaSet) Create ¶
func (rs *ReplicaSet) Create(replica *v1.ReplicaSet) (*v1.ReplicaSet, error)
func (*ReplicaSet) Delete ¶
func (rs *ReplicaSet) Delete(name, namespace string, option *metav1.DeleteOptions) error
func (*ReplicaSet) List ¶
func (rs *ReplicaSet) List(name, namespace string, option metav1.ListOptions) (*v1.ReplicaSetList, error)
type ReplicationController ¶
type ReplicationController struct {
// contains filtered or unexported fields
}
func NewReplicationController ¶
func NewReplicationController(clientSet kubernetes.Interface) *ReplicationController
func (*ReplicationController) Create ¶
func (rc *ReplicationController) Create(name, namespace string, replicas int32) (*corev1.ReplicationController, error)
func (*ReplicationController) Delete ¶
func (rc *ReplicationController) Delete(name, namespace string, option *metav1.DeleteOptions) (err error)
type RestConfig ¶
type Secret ¶
type Secret struct { Interface v1.SecretInterface // contains filtered or unexported fields }
func NewSecret ¶
func NewSecret(clientSet kubernetes.Interface) *Secret
Create new instance of type Secret
func (*Secret) Create ¶
Create takes the representation of a secret and creates it. Returns the server's representation of the secret, and an error, if there is any.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(clientSet kubernetes.Interface) *Service
func (*Service) CreateService ¶
func (s *Service) CreateService(name, namespace string, ports []corev1.ServicePort) error
Click to show internal directories.
Click to hide internal directories.