Documentation
¶
Overview ¶
Package nsm - Common operations for the adapter
Index ¶
- Constants
- Variables
- func ErrApplyHelmChart(err error) error
- func ErrConvertingAppVersionToChartVersion(err error) error
- func ErrCreatingHelmIndex(err error) error
- func ErrCreatingNSMMeshClient(err error) error
- func ErrCustomOperation(err error) error
- func ErrDecodeYaml(err error) error
- func ErrEntryWithAppVersionNotExists(entry, appVersion string) error
- func ErrHelmRepositoryNotFound(repo string, err error) error
- func ErrInstallNSM(err error) error
- func ErrMeshConfig(err error) error
- func ErrSampleApp(err error) error
- func New(c adapterconfig.Handler, l logger.Handler, kc adapterconfig.Handler) adapter.Handler
- type Mesh
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 ( // ErrInstallNSMCode represents the errors which are generated // during nsm mesh install process ErrInstallNSMCode = "1003" // ErrCreatingHelmIndexCode represents the errors which are generated // during creation of helm index ErrCreatingHelmIndexCode = "1004" // ErrEntryWithAppVersionNotExistsCode represents the error which is generated // when no entry is found with specified name and app version ErrEntryWithAppVersionNotExistsCode = "1005" // ErrHelmRepositoryNotFoundCode represents the error which is generated when // no valid helm repository is found ErrHelmRepositoryNotFoundCode = "1006" // ErrDecodeYamlCode represents the error which is generated when yaml // decode process fails ErrDecodeYamlCode = "1007" // ErrMeshConfigCode represents the errors which are generated // when an invalid mesh config is found ErrMeshConfigCode = "1008" // ErrApplyHelmChartCode represents the error which are generated // during the process of applying helm chart ErrApplyHelmChartCode = "1009" // ErrConvertingAppVersionToChartVersionCode represents the errors which are generated // during the process of converting app version to chart version ErrConvertingAppVersionToChartVersionCode = "1010" // ErrCreatingNSMMeshClientCode represents the errors which are generated // during creating nsm client process ErrCreatingNSMMeshClientCode = "1011" // ErrSampleAppCode represents the errors which are generated // duing sample app installation ErrSampleAppCode = "1012" // ErrCustomOperationCode represents the errors which are generated // when an invalid addon operation is requested ErrCustomOperationCode = "1013" // ErrOpInvalidCode represents the errors which are generated // when an invalid operation is requested ErrOpInvalidCode = "1014" // ErrOpInvalid represents the errors which are generated // when an invalid operation is requested ErrOpInvalid = errors.New(ErrOpInvalidCode, errors.Alert, []string{"Invalid operation"}, []string{}, []string{}, []string{}) )
Functions ¶
func ErrApplyHelmChart ¶ added in v0.5.0
ErrApplyHelmChart is the error for applying helm chart
func ErrConvertingAppVersionToChartVersion ¶ added in v0.5.0
ErrConvertingAppVersionToChartVersion is the error for converting app version to chart version
func ErrCreatingHelmIndex ¶ added in v0.5.0
ErrCreatingHelmIndex is the error for creating helm index
func ErrCreatingNSMMeshClient ¶ added in v0.5.0
ErrCreatingNSMMeshClient is the error for streaming event
func ErrCustomOperation ¶ added in v0.5.0
ErrCustomOperation is the error for streaming event
func ErrDecodeYaml ¶ added in v0.5.0
ErrDecodeYaml is the error when the yaml unmarshal fails
func ErrEntryWithAppVersionNotExists ¶ added in v0.5.0
ErrEntryWithAppVersionNotExists is the error when an entry with the given app version is not found
func ErrHelmRepositoryNotFound ¶ added in v0.5.0
ErrHelmRepositoryNotFound is the error when no valid remote helm repository is found
func ErrInstallNSM ¶ added in v0.5.0
ErrInstallNSM is the error for install mesh
func ErrMeshConfig ¶ added in v0.5.0
ErrMeshConfig is the error for mesh config
func ErrSampleApp ¶ added in v0.5.0
ErrSampleApp is the error for streaming event
func New ¶ added in v0.5.0
func New(c adapterconfig.Handler, l logger.Handler, kc adapterconfig.Handler) adapter.Handler
New initializes treafik-mesh handler.
Types ¶
type Mesh ¶ added in v0.5.0
Mesh represents the nsm-mesh adapter and embeds adapter.Adapter
func (*Mesh) ApplyOperation ¶ added in v0.5.0
ApplyOperation applies the operation on nsm mesh