Documentation ¶
Index ¶
- func CreateDev(ctx context.Context, dev *model.Dev, c kubernetes.Interface) error
- func Deploy(ctx context.Context, s *apiv1.Service, c kubernetes.Interface) error
- func Destroy(ctx context.Context, name, namespace string, c kubernetes.Interface) error
- func DestroyDev(ctx context.Context, dev *model.Dev, c kubernetes.Interface) error
- func Get(ctx context.Context, name, namespace string, c kubernetes.Interface) (*apiv1.Service, error)
- func GetPortsByPod(ctx context.Context, p *apiv1.Pod, c kubernetes.Interface) ([]int, error)
- func GetServiceNameByLabel(ctx context.Context, namespace string, c kubernetes.Interface, labels string) (string, error)
- func GetServicesNamesFromList(serviceList *apiv1.ServiceList) string
- func List(ctx context.Context, namespace, labels string, c kubernetes.Interface) ([]apiv1.Service, error)
- func Update(ctx context.Context, namespace string, svc *apiv1.Service, ...) (*apiv1.Service, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DestroyDev ¶
DestroyDev destroys the default service for a development container
func Get ¶
func Get(ctx context.Context, name, namespace string, c kubernetes.Interface) (*apiv1.Service, error)
Get returns a kubernetes service by the name, or an error if it doesn't exist
func GetPortsByPod ¶
GetPortsByPod returns the ports exposed via endpoint of a given pod
func GetServiceNameByLabel ¶
func GetServiceNameByLabel(ctx context.Context, namespace string, c kubernetes.Interface, labels string) (string, error)
GetServiceNameByLabel returns the name of the service with certain labels
func GetServicesNamesFromList ¶
func GetServicesNamesFromList(serviceList *apiv1.ServiceList) string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.