Documentation
¶
Index ¶
- Constants
- Variables
- func ErrGetLatestReleaseNames(err error) error
- func ErrGetLatestReleases(err error) error
- func ErrGetManifestNames(err error) error
- func GetFileNames(owner string, repo string, path string) ([]string, 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 ( // OAM Metadata constants OAMAdapterNameMetadataKey = "adapter.meshery.io/name" OAMComponentCategoryMetadataKey = "ui.meshery.io/category" )
View Source
const ( // ErrEmptyConfigCode represents the error when the configuration is either empty // or is invalid ErrEmptyConfigCode = "1021" // ErrGetLatestReleasesCode represents the error which occurs during the process of getting // latest releases ErrGetLatestReleasesCode = "1022" // ErrGetLatestReleaseNamesCode represents the error which occurs during the process of extracting // release names ErrGetLatestReleaseNamesCode = "1023" ErrGetManifestNamesCode = "1024" )
Variables ¶
View Source
var ( CiliumOperation = strings.ToLower(smp.ServiceMesh_CILIUM_SERVICE_MESH.Enum().String()) ServerDefaults = map[string]string{ "name": smp.ServiceMesh_CILIUM_SERVICE_MESH.Enum().String(), "type": "adapter", "port": "10012", "traceurl": status.None, } MeshSpecDefaults = map[string]string{ "name": smp.ServiceMesh_CILIUM_SERVICE_MESH.Enum().String(), "status": status.NotInstalled, "version": status.None, } ProviderConfigDefaults = map[string]string{ configprovider.FilePath: configRootPath, configprovider.FileType: "yaml", configprovider.FileName: "cilium", } KubeConfigDefaults = map[string]string{ configprovider.FilePath: configRootPath, configprovider.FileType: "yaml", configprovider.FileName: "kubeconfig", } 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 ErrGetManifestNames ¶
ErrGetManifestNames is the error for fetching consul manifest names
func GetFileNames ¶
GetFileNames takes the url of a github repo and the path to a directory. Then returns all the filenames from that directory
Types ¶
Click to show internal directories.
Click to hide internal directories.