kuma

package
v0.5.4 Latest Latest
Warning

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

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

Documentation

Overview

Package kuma - Common operations for the adapter

Index

Constants

View Source
const (
	// SMIManifest is the manifest.yaml file for smi conformance tool
	SMIManifest = "https://raw.githubusercontent.com/layer5io/learn-layer5/master/smi-conformance/manifest.yml"
)

Variables

View Source
var (

	// ErrInstallKumaCode represents the errors which are generated
	// during kuma service mesh install process
	ErrInstallKumaCode = "kuma_test_code"

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

	// ErrFetchManifestCode represents the errors which are generated
	// during the process of fetching manifest
	ErrFetchManifestCode = "kuma_test_code"

	// ErrClientConfigCode represents the errors which are generated
	// during the process of setting client config
	ErrClientConfigCode = "kuma_test_code"

	// ErrClientSetCode represents the errors which are generated
	// during the process of setting clientset
	ErrClientSetCode = "kuma_test_code"

	// ErrStreamEventCode represents the errors which are generated
	// during the process of streaming events
	ErrStreamEventCode = "kuma_test_code"

	// ErrSampleAppCode represents the errors which are generated
	// during the process of installing sample app
	ErrSampleAppCode = "kuma_test_code"

	// ErrGetKumactlCode represents the errors which are generated
	// during the process of using kumactl for installation
	ErrGetKumactlCode = "kuma_test_code"

	// ErrDownloadBinaryCode represents the errors which are generated
	// during the process of downloading binary
	ErrDownloadBinaryCode = "kuma_test_code"

	// ErrInstallBinaryCode represents the errors which are generated
	// during the process of installing binary
	ErrInstallBinaryCode = "kuma_test_code"

	// ErrUntarCode represents the errors which are generated
	// during the process of untaring a compressed file
	ErrUntarCode = "kuma_test_code"

	// ErrUntarDefaultCode represents the errors which are generated
	// during the process of untaring a compressed file
	ErrUntarDefaultCode = "kuma_test_code"

	// ErrMoveBinaryCode represents the errors which are generated
	// during the process of moving binaries
	ErrMoveBinaryCode = "kuma_test_code"

	// ErrCustomOperationCode represents the errors which are generated
	// during the process of handeling a custom process
	ErrCustomOperationCode = "kuma_test_code"

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

	// ErrUntarDefault represents the errors which are generated
	// during the process of untaring a compressed file
	ErrUntarDefault = errors.NewDefault(ErrUntarDefaultCode, "Error untaring operation default")
)

Functions

func ErrClientConfig added in v0.2.0

func ErrClientConfig(err error) error

ErrClientConfig is the error for setting client config

func ErrClientSet added in v0.2.0

func ErrClientSet(err error) error

ErrClientSet is the error for setting clientset

func ErrCustomOperation added in v0.4.0

func ErrCustomOperation(err error) error

ErrCustomOperation is the error occured during the process of applying custom operation

func ErrDownloadBinary added in v0.3.8

func ErrDownloadBinary(err error) error

ErrDownloadBinary is the error for downloading binary

func ErrFetchManifest added in v0.3.8

func ErrFetchManifest(err error, des string) error

ErrFetchManifest is the error occured during the process fetching manifest

func ErrGetKumactl added in v0.3.8

func ErrGetKumactl(err error) error

ErrGetKumactl is the error for streaming event

func ErrInstallBinary added in v0.3.8

func ErrInstallBinary(err error) error

ErrInstallBinary is the error for streaming event

func ErrInstallKuma added in v0.3.8

func ErrInstallKuma(err error) error

ErrInstallKuma is the error for install mesh

func ErrMeshConfig

func ErrMeshConfig(err error) error

ErrMeshConfig is the error for mesh config

func ErrMoveBinary added in v0.3.8

func ErrMoveBinary(err error) error

ErrMoveBinary is the error for streaming event

func ErrSampleApp added in v0.3.8

func ErrSampleApp(err error) error

ErrSampleApp is the error for streaming event

func ErrStreamEvent added in v0.2.0

func ErrStreamEvent(err error) error

ErrStreamEvent is the error for streaming event

func ErrUntar added in v0.3.8

func ErrUntar(err error) error

ErrUntar is the error for streaming event

func New

New initializes kuma handler.

Types

type Kuma added in v0.3.8

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

Kuma represents the kuma adapter and embeds adapter.Adapter

func (*Kuma) ApplyOperation added in v0.3.8

func (kuma *Kuma) ApplyOperation(ctx context.Context, opReq adapter.OperationRequest) error

ApplyOperation applies the operation on kuma

Jump to

Keyboard shortcuts

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