patch

package
v0.0.0-...-ef1d371 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnknownKind          = errors.New("unknown kind")
	ErrUnknownContext       = errors.New("unknown context")
	ErrUnsupportedOperation = errors.New("unsupported operation")
	ErrUnknownSpec          = errors.New("unknown spec")
)
View Source
var (
	ErrInvalidChanges = errors.New("invalid change")
	ErrCannotApply    = errors.New("cannot apply")
)

Functions

func ApplyToDestinationRule

func ApplyToDestinationRule(cfg *config.Config, filter *v1alpha1.IstioFilter) (err error)

func ApplyToVirtualService

func ApplyToVirtualService(cfg *config.Config, filter *v1alpha1.IstioFilter) (err error)

Types

type Patcher

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

func New

func New(store store.Store) *Patcher

func (*Patcher) Filter

func (p *Patcher) Filter(ctx context.Context, c *config.Config, oldCfg *config.Config) error

func (*Patcher) PatchTo

func (p *Patcher) PatchTo(ctx context.Context, c *config.Config, apply *statusApply) error

Jump to

Keyboard shortcuts

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