ingresses

package
v0.0.0-...-38026db Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func GetClient

func GetClient(c kubernetes.Interface) (*Client, error)

func NewIngressClient

func NewIngressClient(c kubernetes.Interface, isV1 bool) *Client

func (*Client) Create

func (iClient *Client) Create(ctx context.Context, i *Ingress) error

func (*Client) Deploy

func (iClient *Client) Deploy(ctx context.Context, ingress *Ingress) error

Deploy creates or updates an ingress

func (*Client) Destroy

func (iClient *Client) Destroy(ctx context.Context, name, namespace string) error

Destroy destroys a k8s deployment

func (*Client) Get

func (iClient *Client) Get(ctx context.Context, name, namespace string) (metav1.Object, error)

Get results the ingress

func (*Client) GetEndpointsBySelector

func (iClient *Client) GetEndpointsBySelector(ctx context.Context, namespace, labels string) ([]string, error)

func (*Client) List

func (iClient *Client) List(ctx context.Context, namespace, labels string) ([]metav1.Object, error)

List returns the list of deployments

func (*Client) Update

func (iClient *Client) Update(ctx context.Context, i *Ingress) error

Update updates a statefulset

type Ingress

type Ingress struct {
	V1      *networkingv1.Ingress
	V1Beta1 *networkingv1beta1.Ingress
}

func Translate

func Translate(endpointName string, endpoint model.Endpoint, opts *TranslateOptions) *Ingress

Translate translates the endpoints spec at compose or okteto manifest and returns an ingress

func (Ingress) GetAnnotations

func (i Ingress) GetAnnotations() map[string]string

GetAnnotations gets the annotations of the ingress

func (Ingress) GetLabels

func (i Ingress) GetLabels() map[string]string

GetLabels gets the labels of the ingress

func (Ingress) GetName

func (i Ingress) GetName() string

GetName gets the name of the ingress

func (Ingress) GetNamespace

func (i Ingress) GetNamespace() string

GetNamespace gets the namespace of the ingress

type TranslateOptions

type TranslateOptions struct {
	Name      string
	Namespace string
}

Jump to

Keyboard shortcuts

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