access

package
v1.27.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Accessor

type Accessor interface {
	// Start starts the resource accessor.
	Start(context.Context, io.Writer, []string) error

	// Stop stops the resource accessor.
	Stop()
}

Accessor defines the behavior for any implementation of a component that accesses and exposes deployed resources from Skaffold.

type AccessorMux

type AccessorMux []Accessor

func (AccessorMux) Start

func (a AccessorMux) Start(ctx context.Context, out io.Writer, namespaces []string) error

func (AccessorMux) Stop

func (a AccessorMux) Stop()

type NoopAccessor

type NoopAccessor struct{}

func (*NoopAccessor) Start

func (*NoopAccessor) Stop

func (n *NoopAccessor) Stop()

type NoopProvider

type NoopProvider struct{}

NoopProvider is used in tests

func (*NoopProvider) GetKubernetesAccessor

func (p *NoopProvider) GetKubernetesAccessor(_ portforward.Config, _ *kubernetes.ImageList) Accessor

func (*NoopProvider) GetNoopAccessor

func (p *NoopProvider) GetNoopAccessor() Accessor

type Provider

type Provider interface {
	GetKubernetesAccessor(portforward.Config, *kubernetes.ImageList) Accessor
	GetNoopAccessor() Accessor
}

func NewAccessorProvider

func NewAccessorProvider(labelConfig label.Config) Provider

Jump to

Keyboard shortcuts

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