Documentation
¶
Index ¶
Constants ¶
View Source
const (
LocalRegistry = "localhost/kubefox"
GitHubClientId = "a76b4dc61b6fec162ef6"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
GitHub GitHub `json:"github"`
KubeFox KubeFox `json:"kubefox"`
Kind Kind `json:"kind"`
ContainerRegistry ContainerRegistry `json:"containerRegistry"`
RepoPath string `json:"-"`
AppPath string `json:"-"`
Flags Flags `json:"-"`
Fresh bool `json:"-"`
// contains filtered or unexported fields
}
func (*Config) CleanPaths ¶
func (cfg *Config) CleanPaths(defAppToWd bool)
func (*Config) IsRegistryLocal ¶
func (cfg *Config) IsRegistryLocal() bool
type ContainerRegistry ¶
type ContainerRegistry struct {
Address string `json:"address" validate:"required"`
Token string `json:"token"`
Username string `json:"username"`
}
type Flags ¶
type Flags struct {
// persistent flags defined in root command
AppPath string
OutFormat string
DryRun bool
Info bool
Verbose bool
// flags used by subcommands
AppDeployment string
Builder string
Kind string
Namespace string
Platform string
Version string
VirtEnv string
RegistryAddress string
RegistryUsername string
RegistryToken string
CreateTag bool
ForceBuild bool
NoCache bool
PushImage bool
Quickstart bool
SkipDeploy bool
WaitTime time.Duration
}
type GitHub ¶
type GitHub struct {
Org GitHubOrg `json:"org"`
User GitHubUser `json:"user"`
Token string `json:"token"`
}
type GitHubError ¶
type GitHubError struct {
Msg string `json:"message"`
DocURL string `json:"documentation_url"`
}
type GitHubOrg ¶
type GitHubOrg struct {
Id int `json:"id"`
Name string `json:"login"`
URL string `json:"url" validate:"url"`
}
type GitHubUser ¶
type GitHubUser struct {
Id int `json:"id"`
Name string `json:"login"`
AvatarURL string `json:"avatar_url" validate:"url"`
URL string `json:"html_url" validate:"url"`
}
Click to show internal directories.
Click to hide internal directories.