Documentation
¶
Overview ¶
Package config define the configuration and operation of the adapter
Index ¶
- Constants
- Variables
- func ErrGetFileNames(err error) error
- func ErrGetLatestReleaseNames(err error) error
- func ErrGetLatestReleases(err error) error
- func GetFileNames(owner string, repo string, path string) (map[string]string, error)
- func GetLatestReleaseNames(limit int) ([]adapter.Version, error)
- func New(provider string) (h config.Handler, err error)
- func NewKubeconfigBuilder(provider string) (config.Handler, error)
- func RootPath() string
- type Asset
- type Release
Constants ¶
View Source
const ( Development = "development" Production = "production" AnnotateNamespace = "annotate-namespace" ServicePatchFile = "service-patch-file" HelmChartURL = "helm-chart-url" // Addons that the adapter supports JaegerAddon = "jaeger-addon" VizAddon = "viz-addon" MultiClusterAddon = "multicluster-addon" SMIAddon = "smi-addon" // OAM Metadata constants OAMAdapterNameMetadataKey = "adapter.meshery.io/name" OAMComponentCategoryMetadataKey = "ui.meshery.io/category" )
View Source
const ( ErrEmptyConfigCode = "1000" ErrGetLatestReleasesCode = "1001" ErrGetLatestReleaseNamesCode = "1002" ErrGetFileNamesCode = "1107" )
Variables ¶
View Source
var ( // LinkerdOperation is the default name for the install // and uninstall commands on the Linkerd LinkerdOperation = strings.ToLower(smp.ServiceMesh_LINKERD.Enum().String()) Config = configprovider.Options{ FilePath: configRootPath, FileName: "linkerd", FileType: "yaml", } ServerConfig = map[string]string{ "name": smp.ServiceMesh_LINKERD.Enum().String(), "port": "10001", "type": "adapter", "traceurl": status.None, } MeshSpec = map[string]string{ "name": smp.ServiceMesh_LINKERD.Enum().String(), "status": status.NotInstalled, "version": status.None, } ProviderConfig = map[string]string{ configprovider.FilePath: configRootPath, configprovider.FileType: "yaml", configprovider.FileName: "linkerd", } // KubeConfig - Controlling the kubeconfig lifecycle with viper KubeConfig = map[string]string{ configprovider.FilePath: configRootPath, configprovider.FileType: "yaml", configprovider.FileName: "kubeconfig", } Operations = getOperations(common.Operations) )
View Source
var (
ErrEmptyConfig = errors.New(ErrEmptyConfigCode, errors.Alert, []string{"Config is empty"}, []string{}, []string{}, []string{})
)
View Source
var (
ServiceName = "service_name"
)
Functions ¶
func ErrGetFileNames ¶ added in v0.5.15
ErrGetFileNames is the error for fetching linkerd releases
func ErrGetLatestReleaseNames ¶
ErrGetLatestReleaseNames is the error for fetching linkerd releases
func ErrGetLatestReleases ¶
ErrGetLatestReleases is the error for fetching linkerd releases
func GetFileNames ¶ added in v0.5.15
GetFileNames takes the url of a github repo and the path to a directory. Then returns all the filenames->URL from that directory
func GetLatestReleaseNames ¶ added in v0.5.21
getLatestReleaseNames returns the names of the latest releases limited by the "limit" parameter. The first version in the list is always is the latest "stable" version.
Types ¶
Click to show internal directories.
Click to hide internal directories.