istio

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: May 5, 2021 License: Apache-2.0 Imports: 42 Imported by: 0

Documentation

Overview

Package istio - Common operations for the adapter

Package istio - Error codes for the adapter

Index

Constants

This section is empty.

Variables

View Source
var (

	// ErrInstallIstioCode represents the errors which are generated
	// during istio service mesh install process
	ErrInstallIstioCode = "istio_test_code"

	// ErrUnzipFileCode represents the errors which are generated
	// during unzip process
	ErrUnzipFileCode = "istio_test_code"

	// ErrTarXZFCode represents the errors which are generated
	// during decompressing and extracting tar.gz file
	ErrTarXZFCode = "istio_test_code"

	// ErrMeshConfigCode represents the errors which are generated
	// when an invalid mesh config is found
	ErrMeshConfigCode = "istio_test_code"

	// ErrRunIstioCtlCmdCode represents the errors which are generated
	// during fetch manifest process
	ErrRunIstioCtlCmdCode = "istio_test_code"

	// ErrDownloadBinaryCode represents the errors which are generated
	// during binary download process
	ErrDownloadBinaryCode = "istio_test_code"

	// ErrInstallBinaryCode represents the errors which are generated
	// during binary installation process
	ErrInstallBinaryCode = "istio_test_code"

	// ErrSampleAppCode represents the errors which are generated
	// duing sample app installation
	ErrSampleAppCode = "istio_test_code"

	// ErrEnvoyFilterCode represents the errors which are generated
	// duing envoy filter patching
	ErrEnvoyFilterCode = "istio_test_code"

	// ErrApplyPolicyCode represents the errors which are generated
	// duing policy apply operation
	ErrApplyPolicyCode = "istio_test_code"

	// ErrCustomOperationCode represents the errors which are generated
	// when an invalid addon operation is requested
	ErrCustomOperationCode = "istio_test_code"

	// ErrAddonFromTemplateCode represents the errors which are generated
	// during addon deployment process
	ErrAddonFromTemplateCode = "istio_test_code"

	// ErrAddonInvalidConfigCode represents the errors which are generated
	// when an invalid addon operation is requested
	ErrAddonInvalidConfigCode = "istio_test_code"

	// ErrCreatingIstioClientCode represents the errors which are generated
	// during creating istio client process
	ErrCreatingIstioClientCode = "istio_test_code"

	// ErrIstioVetSyncCode represents the errors which are generated
	// during istio-vet sync process
	ErrIstioVetSyncCode = "istio_test_code"

	// ErrIstioVetCode represents the errors which are generated
	// during istio-vet process
	ErrIstioVetCode = "istio_test_code"

	// ErrParseOAMComponentCode represents the error code which is
	// generated during the OAM component parsing
	ErrParseOAMComponentCode = "istio_test_code"

	// ErrParseOAMConfigCode represents the error code which is
	// generated during the OAM configuration parsing
	ErrParseOAMConfigCode = "istio_test_code"

	// ErrNilClientCode represents the error code which is
	// generated when kubernetes client is nil
	ErrNilClientCode = "istio_test_code"

	// ErrOpInvalid represents the errors which are generated
	// when an invalid operation is requested
	ErrOpInvalid = errors.NewDefault(errors.ErrOpInvalid, "Invalid operation")

	// ErrParseOAMComponent represents the error which is
	// generated during the OAM component parsing
	ErrParseOAMComponent = errors.NewDefault(ErrParseOAMComponentCode, "error parsing the component")

	// ErrParseOAMConfig represents the error which is
	// generated during the OAM configuration parsing
	ErrParseOAMConfig = errors.NewDefault(ErrParseOAMConfigCode, "error parsing the configuration")

	// ErrNilClient represents the error which is
	// generated when kubernetes client is nil
	ErrNilClient = errors.NewDefault(ErrNilClientCode, "kubernetes client not initialized")
)

Functions

func ErrAddonFromTemplate added in v0.4.11

func ErrAddonFromTemplate(err error) error

ErrAddonFromTemplate is the error for streaming event

func ErrAddonInvalidConfig added in v0.4.11

func ErrAddonInvalidConfig(err error) error

ErrAddonInvalidConfig is the error for streaming event

func ErrApplyPolicy added in v0.4.14

func ErrApplyPolicy(err error) error

ErrApplyPolicy is the error for streaming event

func ErrCreatingIstioClient added in v0.4.11

func ErrCreatingIstioClient(err error) error

ErrCreatingIstioClient is the error for streaming event

func ErrCustomOperation added in v0.4.10

func ErrCustomOperation(err error) error

ErrCustomOperation is the error for streaming event

func ErrDownloadBinary added in v0.4.10

func ErrDownloadBinary(err error) error

ErrDownloadBinary is the error while downloading istio binary

func ErrEnvoyFilter added in v0.4.14

func ErrEnvoyFilter(err error) error

ErrEnvoyFilter is the error for streaming event

func ErrInstallBinary added in v0.4.10

func ErrInstallBinary(err error) error

ErrInstallBinary is the error while downloading istio binary

func ErrInstallIstio added in v0.4.10

func ErrInstallIstio(err error) error

ErrInstallIstio is the error for install mesh

func ErrIstioVet added in v0.4.12

func ErrIstioVet(err error) error

ErrIstioVet is the error for streaming event

func ErrIstioVetSync added in v0.4.11

func ErrIstioVetSync(err error) error

ErrIstioVetSync is the error for streaming event

func ErrMeshConfig added in v0.4.10

func ErrMeshConfig(err error) error

ErrMeshConfig is the error for mesh config

func ErrRunIstioCtlCmd added in v0.4.17

func ErrRunIstioCtlCmd(err error, des string) error

ErrRunIstioCtlCmd is the error for mesh port forward

func ErrSampleApp added in v0.4.10

func ErrSampleApp(err error) error

ErrSampleApp is the error for streaming event

func ErrTarXZF added in v0.4.10

func ErrTarXZF(err error) error

ErrTarXZF is the error for unzipping the file

func ErrUnzipFile added in v0.4.10

func ErrUnzipFile(err error) error

ErrUnzipFile is the error for unzipping the file

func New added in v0.4.10

New initializes istio handler.

Types

type Istio added in v0.4.10

type Istio struct {
	adapter.Adapter // Type Embedded
}

Istio represents the istio adapter and embeds adapter.Adapter

func (*Istio) ApplyOperation added in v0.4.10

func (istio *Istio) ApplyOperation(ctx context.Context, opReq adapter.OperationRequest) error

ApplyOperation applies the operation on istio

func (*Istio) HandleApplicationConfiguration added in v0.4.19

func (istio *Istio) HandleApplicationConfiguration(config v1alpha1.Configuration, isDel bool) (string, error)

HandleApplicationConfiguration handles the processing of OAM application configuration

func (*Istio) HandleComponents added in v0.4.19

func (istio *Istio) HandleComponents(comps []v1alpha1.Component, isDel bool) (string, error)

HandleComponents handles the processing of OAM components

func (*Istio) LoadNamespaceToMesh added in v0.4.10

func (istio *Istio) LoadNamespaceToMesh(namespace string, remove bool) error

LoadNamespaceToMesh is used to mark namespaces for automatic sidecar injection (or not)

func (*Istio) LoadToMesh added in v0.4.10

func (istio *Istio) LoadToMesh(namespace string, service string, remove bool) error

LoadToMesh is used to mark deployment for automatic sidecar injection (or not)

func (*Istio) ProcessOAM added in v0.4.19

func (istio *Istio) ProcessOAM(ctx context.Context, oamReq adapter.OAMRequest) (string, error)

ProcessOAM will handles the grpc invocation for handling OAM objects

func (*Istio) RunVet added in v0.4.11

func (istio *Istio) RunVet(ch chan<- *adapter.Event)

RunVet runs istio-vet

func (*Istio) StreamWarn added in v0.4.11

func (istio *Istio) StreamWarn(e *adapter.Event, err error)

StreamWarn streams a warning message to the channel

Directories

Path Synopsis
oam
Package oam contains the definitions for OAM objects as well as the parsers and register functions associated with it
Package oam contains the definitions for OAM objects as well as the parsers and register functions associated with it
core/v1alpha1
Package v1alpha1 contains the definitions for OAM core/v1alpha1 objects The definitions inlcude: 1.
Package v1alpha1 contains the definitions for OAM core/v1alpha1 objects The definitions inlcude: 1.

Jump to

Keyboard shortcuts

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