Documentation ¶
Overview ¶
Package kuma - Common operations for the adapter
Index ¶
- Constants
- Variables
- func ErrClientConfig(err error) error
- func ErrClientSet(err error) error
- func ErrCustomOperation(err error) error
- func ErrDownloadBinary(err error) error
- func ErrFetchManifest(err error, des string) error
- func ErrGetKumactl(err error) error
- func ErrInstallBinary(err error) error
- func ErrInstallKuma(err error) error
- func ErrMeshConfig(err error) error
- func ErrMoveBinary(err error) error
- func ErrSampleApp(err error) error
- func ErrStreamEvent(err error) error
- func ErrUntar(err error) error
- func New(c adapterconfig.Handler, l logger.Handler, kc adapterconfig.Handler) adapter.Handler
- type Kuma
Constants ¶
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 ¶
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
ErrClientConfig is the error for setting client config
func ErrClientSet ¶ added in v0.2.0
ErrClientSet is the error for setting clientset
func ErrCustomOperation ¶ added in v0.4.0
ErrCustomOperation is the error occured during the process of applying custom operation
func ErrDownloadBinary ¶ added in v0.3.8
ErrDownloadBinary is the error for downloading binary
func ErrFetchManifest ¶ added in v0.3.8
ErrFetchManifest is the error occured during the process fetching manifest
func ErrGetKumactl ¶ added in v0.3.8
ErrGetKumactl is the error for streaming event
func ErrInstallBinary ¶ added in v0.3.8
ErrInstallBinary is the error for streaming event
func ErrInstallKuma ¶ added in v0.3.8
ErrInstallKuma is the error for install mesh
func ErrMoveBinary ¶ added in v0.3.8
ErrMoveBinary is the error for streaming event
func ErrSampleApp ¶ added in v0.3.8
ErrSampleApp is the error for streaming event
func ErrStreamEvent ¶ added in v0.2.0
ErrStreamEvent is the error for streaming event
func New ¶
func New(c adapterconfig.Handler, l logger.Handler, kc adapterconfig.Handler) adapter.Handler
New initializes kuma handler.
Types ¶
type Kuma ¶ added in v0.3.8
Kuma represents the kuma adapter and embeds adapter.Adapter
func (*Kuma) ApplyOperation ¶ added in v0.3.8
ApplyOperation applies the operation on kuma