Documentation ¶
Index ¶
- Variables
- type FakeK8sOperations
- func (f *FakeK8sOperations) CloudProviderName() (string, error)
- func (f *FakeK8sOperations) HasIngress(namespace, name string) (bool, error)
- func (f *FakeK8sOperations) IngressAnnotations(namespace, ingress string) (map[string]string, error)
- func (f *FakeK8sOperations) IsNotFound(err error) bool
- func (f *FakeK8sOperations) ServiceAnnotations(namespace, service string) (map[string]string, error)
- func (f *FakeK8sOperations) SetIngressAnnotations(namespace, service string, annotations map[string]string) error
- func (f *FakeK8sOperations) SetServiceAnnotations(namespace, service string, annotations map[string]string) error
- type K8sOperations
- type Operations
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotImplemented = status.Errorf(codes.Unimplemented, "Operation not implemented for this cloud provider") ErrServiceNotFound = status.Errorf(codes.NotFound, "Service not found") ErrIngressNotFound = status.Errorf(codes.NotFound, "Ingress not found") ErrNotImplementedOnIngress = status.Errorf(codes.Unimplemented, "Operation not implemented for apps using ingress") ErrNotImplementedOnLoadBalancer = status.Errorf(codes.Unimplemented, "Operation not implemented for apps using k8s load balancer") )
Functions ¶
This section is empty.
Types ¶
type FakeK8sOperations ¶
type FakeK8sOperations struct { CloudProviderNameErr error CloudProviderNameValue string SetServiceAnnotationsErr error SetIngressAnnotationsErr error ServiceAnnotationsErr error ServiceAnnotationsValue map[string]string IngressAnnotationsErr error IngressAnnotationsValue map[string]string IsNotFoundErr bool HasIngressValue bool HasIngressErr error }
func NewFakeOperations ¶
func NewFakeOperations() *FakeK8sOperations
func (*FakeK8sOperations) CloudProviderName ¶
func (f *FakeK8sOperations) CloudProviderName() (string, error)
func (*FakeK8sOperations) HasIngress ¶
func (f *FakeK8sOperations) HasIngress(namespace, name string) (bool, error)
func (*FakeK8sOperations) IngressAnnotations ¶
func (f *FakeK8sOperations) IngressAnnotations(namespace, ingress string) (map[string]string, error)
func (*FakeK8sOperations) IsNotFound ¶
func (f *FakeK8sOperations) IsNotFound(err error) bool
func (*FakeK8sOperations) ServiceAnnotations ¶
func (f *FakeK8sOperations) ServiceAnnotations(namespace, service string) (map[string]string, error)
func (*FakeK8sOperations) SetIngressAnnotations ¶
func (f *FakeK8sOperations) SetIngressAnnotations(namespace, service string, annotations map[string]string) error
func (*FakeK8sOperations) SetServiceAnnotations ¶
func (f *FakeK8sOperations) SetServiceAnnotations(namespace, service string, annotations map[string]string) error
type K8sOperations ¶
type K8sOperations interface { CloudProviderName() (string, error) SetServiceAnnotations(namespace, service string, annotations map[string]string) error ServiceAnnotations(namespace, service string) (map[string]string, error) SetIngressAnnotations(namespace, ingress string, annotations map[string]string) error IngressAnnotations(namespace, ingress string) (map[string]string, error) IsNotFound(err error) bool HasIngress(namespace, name string) (bool, error) }
type Operations ¶
type Operations interface { CreateOrUpdateSSL(appName, cert string, port int) error CreateOrUpdateStaticIp(appName, addressName string) error SSLInfo(appName string) (*service.SSLInfo, error) Name() string }
func NewOperations ¶
func NewOperations(k8s K8sOperations) Operations
Click to show internal directories.
Click to hide internal directories.