service

package
v0.32.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 22, 2018 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckService

func CheckService(namespace string, service string) error

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

func DeleteSecret(namespace, name string) error

DeleteSecret deletes a secret from a namespace

func GetServiceListByLabel

func GetServiceListByLabel(namespace string, key string, value string) (*v1.ServiceList, error)

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

func OptionallyHTTPSFormattedURLString(bareURLString string, https bool) (string, bool)

func WaitAndMaybeOpenService

func WaitAndMaybeOpenService(api libmachine.API, namespace string, service string, urlTemplate *template.Template, urlMode bool, https bool,
	wait int, interval int) error

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)

type URL added in v0.31.0

type URL struct {
	Namespace string
	Name      string
	URLs      []string
}

type URLs added in v0.31.0

type URLs []URL

func GetServiceURLs

func GetServiceURLs(api libmachine.API, namespace string, t *template.Template) (URLs, error)

Returns all the node port URLs for every service in a particular namespace Accepts a template for formatting

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL