Documentation ¶
Index ¶
- func CheckService(namespace string, service string) error
- func CreateSecret(namespace, name string, dataValues map[string]string, labels map[string]string) error
- func DeleteSecret(namespace, name string) error
- func GetServiceListByLabel(namespace string, key string, value string) (*v1.ServiceList, error)
- func GetServiceURLsForService(api libmachine.API, namespace, service string, t *template.Template) ([]string, error)
- func OptionallyHTTPSFormattedURLString(bareURLString string, https bool) (string, bool)
- func WaitAndMaybeOpenService(api libmachine.API, namespace string, service string, ...) error
- type K8sClient
- type K8sClientGetter
- type URL
- type URLs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckService ¶
CheckService checks if a service is listening on a port.
func CreateSecret ¶
func CreateSecret(namespace, name string, dataValues map[string]string, labels map[string]string) error
CreateSecret creates or modifies secrets
func DeleteSecret ¶
DeleteSecret deletes a secret from a namespace
func GetServiceListByLabel ¶
func GetServiceURLsForService ¶
func GetServiceURLsForService(api libmachine.API, namespace, service string, t *template.Template) ([]string, error)
Returns all the node ports for a service in a namespace with optional formatting
func OptionallyHTTPSFormattedURLString ¶ added in v0.31.0
Types ¶
type K8sClient ¶
type K8sClient interface { GetCoreClient() (corev1.CoreV1Interface, error) GetClientset(timeout time.Duration) (*kubernetes.Clientset, error) }
var K8s K8sClient
type K8sClientGetter ¶
type K8sClientGetter struct{}
func (*K8sClientGetter) GetClientset ¶ added in v0.22.2
func (*K8sClientGetter) GetClientset(timeout time.Duration) (*kubernetes.Clientset, error)
func (*K8sClientGetter) GetCoreClient ¶
func (k *K8sClientGetter) GetCoreClient() (corev1.CoreV1Interface, error)
Click to show internal directories.
Click to hide internal directories.