Documentation ¶
Index ¶
Constants ¶
View Source
const ( KumaOperation = "kuma" Development = "development" Production = "production" )
View Source
const ( ErrGetLatestReleasesCode = "1000" ErrGetLatestReleaseNamesCode = "1001" )
Variables ¶
View Source
var ( ServerDefaults = map[string]string{ "name": smp.ServiceMesh_KUMA.Enum().String(), "type": "adapter", "port": "10007", "traceurl": "none", } MeshSpecDefaults = map[string]string{ "name": smp.ServiceMesh_KUMA.Enum().String(), "status": status.NotInstalled, "version": "none", } ProviderConfigDefaults = map[string]string{ configprovider.FilePath: configRootPath, configprovider.FileType: "yaml", configprovider.FileName: "kuma", } KubeConfigDefaults = map[string]string{ configprovider.FilePath: configRootPath, configprovider.FileType: "yaml", configprovider.FileName: "kubeconfig", } OperationsDefaults = getOperations(common.Operations) )
View Source
var (
ServiceName = "service_name"
)
Functions ¶
func ErrGetLatestReleaseNames ¶ added in v0.3.8
ErrGetLatestReleaseNames is the error for fetching linkerd releases
func ErrGetLatestReleases ¶ added in v0.3.8
ErrGetLatestReleases is the error for fetching linkerd releases
func NewKubeconfigBuilder ¶ added in v0.3.8
Types ¶
type Asset ¶ added in v0.3.8
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 ¶ added in v0.3.8
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 ¶ added in v0.3.8
GetLatestReleases fetches the latest releases from the kuma repository
Click to show internal directories.
Click to hide internal directories.