Documentation ¶
Index ¶
- Variables
- func CreateDaemonSet(as string, ds appsv1.DaemonSet) error
- func CreateDeployment(as string, deploy appsv1.Deployment) error
- func CreateIngress(as string, ingress extensionsv1beta1.Ingress) error
- func CreateService(as string, svc corev1.Service) error
- func DeleteDaemonSet(as string, ds appsv1.DaemonSet) error
- func DeleteDeployment(as string, deploy appsv1.Deployment) error
- func DeleteIngress(as string, ingress extensionsv1beta1.Ingress) error
- func DeleteService(as string, svc corev1.Service) error
- func ReadDaemonSet(as, namespace, name string) (ds appsv1.DaemonSet, err error)
- func ReadDeployment(as, namespace, name string) (deploy appsv1.Deployment, err error)
- func ReadIngress(as, namespace, name string) (ingress extensionsv1beta1.Ingress, err error)
- func ReadService(as, namespace, name string) (svc corev1.Service, err error)
- func ReplaceDaemonSet(as string, ds appsv1.DaemonSet) error
- func ReplaceDeployment(as string, deploy appsv1.Deployment) error
- func ReplaceIngress(as string, ingress extensionsv1beta1.Ingress) error
- func ReplaceOrCreateDaemonSet(as string, ds appsv1.DaemonSet) error
- func ReplaceOrCreateDeployment(as string, deploy appsv1.Deployment) error
- func ReplaceOrCreateIngress(as string, ingress extensionsv1beta1.Ingress) error
- func ReplaceOrCreateService(as string, svc corev1.Service) error
- func ReplaceService(as string, svc corev1.Service) error
Constants ¶
This section is empty.
Variables ¶
var ErrNotFound = errors.New("not found")
Functions ¶
func CreateDaemonSet ¶
CreateDaemonSet 通过 API Server 地址创建 DaemonSet
func CreateDeployment ¶
func CreateDeployment(as string, deploy appsv1.Deployment) error
CreateDeployment 通过 API Server 地址创建 Deployment
func CreateIngress ¶
func CreateIngress(as string, ingress extensionsv1beta1.Ingress) error
CreateIngress 通过 API Server 地址创建 Ingress
func CreateService ¶
CreateService 通过 API Server 地址创建 Service
func DeleteDaemonSet ¶
DeleteDaemonSet 通过 API Server 地址删除 DaemonSet
func DeleteDeployment ¶
func DeleteDeployment(as string, deploy appsv1.Deployment) error
DeleteDeployment 通过 API Server 地址删除 Deployment
func DeleteIngress ¶
func DeleteIngress(as string, ingress extensionsv1beta1.Ingress) error
DeleteIngress 通过 API Server 地址删除 Ingress
func DeleteService ¶
DeleteService 通过 API Server 地址删除 Service
func ReadDaemonSet ¶
ReadDaemonSet 通过 API Server 地址获取 DaemonSet
func ReadDeployment ¶
func ReadDeployment(as, namespace, name string) (deploy appsv1.Deployment, err error)
ReadDeployment 通过 API Server 地址获取 Deployment
func ReadIngress ¶
func ReadIngress(as, namespace, name string) (ingress extensionsv1beta1.Ingress, err error)
ReadIngress 通过 API Server 地址获取 Ingress
func ReadService ¶
ReadService 通过 API Server 地址获取 Service
func ReplaceDaemonSet ¶
ReplaceDaemonSet 通过 API Server 地址创建 DaemonSet
func ReplaceDeployment ¶
func ReplaceDeployment(as string, deploy appsv1.Deployment) error
ReplaceDeployment 通过 API Server 地址创建 Deployment
func ReplaceIngress ¶
func ReplaceIngress(as string, ingress extensionsv1beta1.Ingress) error
ReplaceIngress 通过 API Server 地址创建 Ingress
func ReplaceOrCreateDaemonSet ¶
ReplaceOrCreateDaemonSet 通过 API Server 地址创建 DaemonSet
func ReplaceOrCreateDeployment ¶
func ReplaceOrCreateDeployment(as string, deploy appsv1.Deployment) error
ReplaceOrCreateDeployment 通过 API Server 地址创建 Deployment
func ReplaceOrCreateIngress ¶
func ReplaceOrCreateIngress(as string, ingress extensionsv1beta1.Ingress) error
ReplaceOrCreateIngress 通过 API Server 地址创建 Ingress
func ReplaceOrCreateService ¶
ReplaceOrCreateService 通过 API Server 地址创建 Service
Types ¶
This section is empty.