Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultClientID = "builder-cli"
DefaultClientID is the default client ID using the PKCE flow.
View Source
const (
// UnknownCwd is the unknown current working directory.
UnknownCwd = ""
)
Variables ¶
View Source
var DefaultConfig = New()
DefaultConfig is the default configuration.
Functions ¶
This section is empty.
Types ¶
type AuthFlags ¶
type AuthFlags struct {
// ClientID is the client ID for the OIDC provider.
ClientID string `envconfig:"CLIENT_ID" default:"builder-cli"`
// ClientURL is the URL of the OIDC provider.
ClientURL string `envconfig:"CLIENT_URL" default:"http://builder.internal:5556/dex"`
}
AuthFlags contains the flags for the authentication.
type Config ¶
type Config struct {
URL string
Flags Flags
Store string
Stdin *os.File
Stdout *os.File
Stderr *os.File
Spec *specs.Spec
File string
Path string
Plugin string
FileMode os.FileMode
Verbose bool
Task TaskFlags
}
Config contains the configuration.
func (*Config) Cwd ¶
Cwd return the current working directory. Which is the path in which the builder spec is located.
func (*Config) InitDefaultConfig ¶
InitDefaultConfig initializes the default configuration.
type Flags ¶
type Flags struct {
// Plugins contains the plugins to use.
Plugins []string
// Vars contains the variables to use.
Vars []string
// Dry indicates whether to print dry run messages.
Dry bool
// Force indicates whether to force overwrite.
Force bool
// Root is the root directory of the project.
Root bool
// Verbose indicates whether to print verbose messages.
Verbose bool
// Version indicates whether to print version.
Version bool
// TaskFlags contains the flags for a task.
TaskFlags TaskFlags
// AuthFlags contains the flags for the authentication.
AuthFlags AuthFlags
}
Flags contains the command line flags.
Click to show internal directories.
Click to hide internal directories.