trench

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(
	name string,
	namespace string,
	configMapName string,
	nspServiceName string,
	nspServicePort int) (types.Trench, error)

Types

type Trench

type Trench struct {
	Name      string
	NSPClient nspAPI.TargetRegistryClient
	Namespace string
	// contains filtered or unexported fields
}

func (*Trench) AddConduit

func (t *Trench) AddConduit(ctx context.Context, conduit types.Conduit) error

func (*Trench) Delete

func (t *Trench) Delete(ctx context.Context) error

func (*Trench) Equals

func (t *Trench) Equals(trench *nspAPI.Trench) bool

func (*Trench) GetConduits

func (t *Trench) GetConduits(conduit *nspAPI.Conduit) []types.Conduit

func (*Trench) GetName

func (t *Trench) GetName() string

func (*Trench) GetNamespace

func (t *Trench) GetNamespace() string

func (*Trench) GetTargetRegistryClient

func (t *Trench) GetTargetRegistryClient() nspAPI.TargetRegistryClient

func (*Trench) RemoveConduit

func (t *Trench) RemoveConduit(ctx context.Context, conduit types.Conduit) error

Jump to

Keyboard shortcuts

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