Documentation
¶
Index ¶
- Constants
- Variables
- func ErrGetLatestReleaseNames(err error) error
- func ErrGetLatestReleases(err error) error
- func ErrInstallBinary(err error) error
- func ErrStatusCheck(status string) error
- func New(provider string) (config.Handler, error)
- func NewKubeconfigBuilder(provider string) (config.Handler, error)
- func RootPath() string
- type Asset
- type Release
Constants ¶
View Source
const ( LabelNamespace = "label-namespace" ServicePatchFile = "service-patch-file" // Addons that the adapter supports PrometheusAddon = "appmesh-prometheus-addon" GrafanaAddon = "appmesh-grafana-addon" HelmChartURL = "helm-chart-url" // OAM Metadata constants OAMAdapterNameMetadataKey = "adapter.meshery.io/name" OAMComponentCategoryMetadataKey = "ui.meshery.io/category" )
View Source
const ( ErrEmptyConfigCode = "app-mesh" ErrInstallBinaryCode = "app-mesh" ErrGetLatestReleasesCode = "app-mesh" ErrGetLatestReleaseNamesCode = "app-mesh" ErrStatusCheckCode = "app-mesh" )
Variables ¶
View Source
var ( AppMeshOperation = strings.ToLower(smp.ServiceMesh_APP_MESH.Enum().String()) ServerVersion = status.None ServerGitSHA = status.None Config = configprovider.Options{ ServerConfig: ServerConfig, MeshSpec: MeshSpec, ProviderConfig: ProviderConfig, Operations: Operations, } // ServerConfig is the configuration for the gRPC server ServerConfig = map[string]string{ "name": smp.ServiceMesh_APP_MESH.Enum().String(), "type": "adapter", "port": "10005", "traceurl": status.None, } // MeshSpec is the spec for the service mesh associated with this adapter MeshSpec = map[string]string{ "name": smp.ServiceMesh_APP_MESH.Enum().String(), "status": status.NotInstalled, "version": status.None, } // ProviderConfig is the config for the configuration provider ProviderConfig = map[string]string{ configprovider.FilePath: configRootPath, configprovider.FileType: "yaml", configprovider.FileName: "app-mesh", } // KubeConfig - Controlling the kubeconfig lifecycle with viper KubeConfig = map[string]string{ configprovider.FilePath: configRootPath, configprovider.FileType: "yaml", configprovider.FileName: "kubeconfig", } // Operations represents the set of valid operations that are available // to the adapter Operations = getOperations(common.Operations) )
View Source
var ( // ErrEmptyConfig error is the error when config is invalid ErrEmptyConfig = errors.New(ErrEmptyConfigCode, errors.Alert, []string{"Config is empty"}, []string{}, []string{}, []string{}) )
View Source
var (
ServiceName = "service_name"
)
Functions ¶
func ErrGetLatestReleaseNames ¶
ErrGetLatestReleaseNames is the error for fetching nsm-mesh releases
func ErrGetLatestReleases ¶
ErrGetLatestReleases is the error for fetching nsm-mesh releases
func ErrInstallBinary ¶
ErrInstallBinary captures failure to update filesystem permissions
func ErrStatusCheck ¶
Types ¶
type Asset ¶
type Asset struct { Name string `json:"name,omitempty"` State string `json:"state,omitempty"` DownloadURL string `json:"browser_download_url,omitempty"` }
Asset describes the github release asset object
type Release ¶
type Release struct { ID int `json:"id,omitempty"` TagName string `json:"tag_name,omitempty"` Name adapter.Version `json:"name,omitempty"` Draft bool `json:"draft,omitempty"` Assets []*Asset `json:"assets,omitempty"` }
Release is used to save the release informations
func GetLatestReleases ¶
GetLatestReleases fetches the latest releases from the aws/aws-app-mesh-controller-for-k8s repository
Click to show internal directories.
Click to hide internal directories.