ingress

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package ingress manipulates the k8s api of ingress object

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ingress

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

Ingress is the object to manipulate k8s api of ingress

func New

func New(options ...Option) *Ingress

New news an Ingress

func (*Ingress) Create

func (n *Ingress) Create(ing *extensionsv1beta1.Ingress) error

Create creates a k8s ingress object

func (*Ingress) CreateOrUpdate

func (n *Ingress) CreateOrUpdate(ing *extensionsv1beta1.Ingress) error

CreateOrUpdate create or update a k8s ingress object

func (*Ingress) Delete

func (n *Ingress) Delete(namespace, name string) error

Delete deletes a k8s ingress object

func (*Ingress) DeleteIfExists

func (n *Ingress) DeleteIfExists(namespace, name string) error

DeleteIfExists delete if k8s ingress exists

func (*Ingress) Get

func (n *Ingress) Get(namespace, name string) (*extensionsv1beta1.Ingress, error)

Get get a k8s ingress object

func (*Ingress) Update

func (n *Ingress) Update(ing *extensionsv1beta1.Ingress) error

Update update a k8s ingress object

type Option

type Option func(*Ingress)

Option configures an Ingress

func WithCompleteParams

func WithCompleteParams(addr string, client *httpclient.HTTPClient) Option

WithCompleteParams provides an Option

Jump to

Keyboard shortcuts

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