Documentation ¶
Index ¶
Constants ¶
View Source
const TypeGithub = "github"
TypeGithub represents github
View Source
const TypeLocal = "local"
TypeLocal represents github
View Source
const TypeOss = "oss"
TypeOss represent oss
View Source
const TypeUnknown = "unknown"
TypeUnknown represents parse failed
Variables ¶
This section is empty.
Functions ¶
func ParseAPIServerEndpoint ¶ added in v1.1.9
ParseAPIServerEndpoint automatically construct the full url of APIServer It will patch port and scheme if not exists
func RandomString ¶ added in v1.1.1
RandomString generate random string.
Types ¶
type Content ¶ added in v1.2.0
type Content struct { OssContent GithubContent LocalContent }
Content contains different type of content needed when building Registry
type GithubContent ¶ added in v1.2.0
type GithubContent struct { Owner string `json:"owner"` Repo string `json:"repo"` Path string `json:"path"` Ref string `json:"ref"` }
GithubContent for cap center
type LocalContent ¶ added in v1.2.0
type LocalContent struct {
AbsDir string `json:"abs_dir"`
}
LocalContent for local registry
type OssContent ¶ added in v1.2.0
OssContent for oss registry
Click to show internal directories.
Click to hide internal directories.