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, status string) 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 ( // ErrOpInvalidCode represents the errors which are generated // when an invalid operation is invoked ErrOpInvalidCode = "1002" // ErrInstallKumaCode represents the errors which are generated // during kuma service mesh install process ErrInstallKumaCode = "1003" // ErrMeshConfigCode represents the errors which are generated // when an invalid mesh config is found ErrMeshConfigCode = "1004" // ErrFetchManifestCode represents the errors which are generated // during the process of fetching manifest ErrFetchManifestCode = "1005" // ErrClientConfigCode represents the errors which are generated // during the process of setting client config ErrClientConfigCode = "1006" // ErrClientSetCode represents the errors which are generated // during the process of setting clientset ErrClientSetCode = "1007" // ErrStreamEventCode represents the errors which are generated // during the process of streaming events ErrStreamEventCode = "1008" // ErrSampleAppCode represents the errors which are generated // during the process of installing sample app ErrSampleAppCode = "1009" // ErrGetKumactlCode represents the errors which are generated // during the process of using kumactl for installation ErrGetKumactlCode = "1010" // ErrDownloadBinaryCode represents the errors which are generated // during the process of downloading binary ErrDownloadBinaryCode = "1011" // ErrInstallBinaryCode represents the errors which are generated // during the process of installing binary ErrInstallBinaryCode = "1012" // ErrUntarCode represents the errors which are generated // during the process of untaring a compressed file ErrUntarCode = "1013" // ErrUntarDefaultCode represents the errors which are generated // during the process of untaring a compressed file ErrUntarDefaultCode = "1014" // ErrMoveBinaryCode represents the errors which are generated // during the process of moving binaries ErrMoveBinaryCode = "1015" // ErrCustomOperationCode represents the errors which are generated // during the process of handeling a custom process ErrCustomOperationCode = "1016" // ErrOpInvalid represents the errors which are generated // when an operation is invalid ErrOpInvalid = errors.New(ErrOpInvalidCode, errors.Alert, []string{"Invalid operation"}, []string{"Istio adapter recived an invalid operation from the meshey server"}, []string{"The operation is not supported by the adapter", "Invalid operation name"}, []string{"Check if the operation name is valid and supported by the adapter"}) // ErrUntarDefault represents the errors which are generated // during the process of untaring a compressed file ErrUntarDefault = errors.New(ErrUntarDefaultCode, errors.Alert, []string{"Error untaring opeartion default"}, []string{"Error occured in the process of untaring a compressed file"}, []string{"The compressed file might be corrupted"}, []string{"Clear the cache and retry the operation"}) )
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 getting `kumactl`
func ErrInstallBinary ¶ added in v0.3.8
ErrInstallBinary is the error for installing binary
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 moving binary
func ErrSampleApp ¶ added in v0.3.8
ErrSampleApp is the error for applying/deleting Sample App
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