istioctl

package
v1.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ServiceCreate ServiceOp = "create"
	ServiceUpdate           = "update"
	ServiceDelete           = "delete"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultEngine

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

func NewDefaultEngine

func NewDefaultEngine(executors ...IstioExecutor) DefaultEngine

func (DefaultEngine) OnServiceOperator

func (engine DefaultEngine) OnServiceOperator(op ServiceOp, svc *apistructs.Service) error

OnServiceOperator

type ExecResult

type ExecResult int
const (
	ExecSuccess ExecResult = iota
	ExecSkip
	ExecComplete
	ExecError
)

type IstioEngine

type IstioEngine interface {
	OnServiceOperator(ServiceOp, *apistructs.Service) error
}
var EmptyEngine IstioEngine

type IstioExecutor

type IstioExecutor interface {
	GetName() string
	SetIstioClient(versioned.Interface)
	OnServiceCreate(context.Context, *apistructs.Service) (ExecResult, error)
	OnServiceUpdate(context.Context, *apistructs.Service) (ExecResult, error)
	OnServiceDelete(context.Context, *apistructs.Service) (ExecResult, error)
}

type ServiceOp

type ServiceOp string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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