Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Kube ¶
type Kube interface { CreateDeployment(ctx context.Context, nsID string, deploy kubtypes.Deployment) error DeleteDeployment(ctx context.Context, nsID, deplName string) error UpdateDeployment(ctx context.Context, nsID string, deploy kubtypes.Deployment) error SetDeploymentReplicas(ctx context.Context, nsID, deplName string, replicas int) error SetContainerImage(ctx context.Context, nsID, deplName string, container kubtypes.UpdateImage) error CreateIngress(ctx context.Context, nsID string, ingress kubtypes.Ingress) error UpdateIngress(ctx context.Context, nsID string, ingress kubtypes.Ingress) error DeleteIngress(ctx context.Context, nsID, ingressName string) error CreateSecret(ctx context.Context, nsID string, secret kubtypes.Secret) error DeleteSecret(ctx context.Context, nsID, secretName string) error CreateService(ctx context.Context, nsID string, service kubtypes.Service) error UpdateService(ctx context.Context, nsID string, service kubtypes.Service) error DeleteService(ctx context.Context, nsID, serviceName string) error }
Kube is an interface to kube-api service
func NewDummyKube ¶
func NewDummyKube() Kube
NewDummyKube creates a dummy client to kube-api service. It does nothing but logs actions.
func NewKubeHTTP ¶
NewKubeHTTP creates http client to kube-api service.
type Permissions ¶
type Permissions interface {
GetNamespaceLimits(ctx context.Context, namespaceID string) (kubtypes.Namespace, error)
}
func NewPermissionsHTTP ¶
func NewPermissionsHTTP(permissionsHost string) Permissions
Click to show internal directories.
Click to hide internal directories.