Documentation
¶
Overview ¶
Package auth handles commands related to authentication via the CLI
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoginWithToken ¶ added in v3.31.0
LoginWithToken stores a token for an organization in the default credential store. When the store is unavailable (e.g. BUILDKITE_NO_KEYRING=1 is set), it still registers the org and selects it in config so commands resolve the org correctly; the caller is expected to supply the token via BUILDKITE_API_TOKEN.
Types ¶
type LoginCmd ¶
type LoginCmd struct {
Scopes string `help:"OAuth scopes to request" default:""`
Org string `help:"Organization slug or UUID to request access for" optional:""`
Token string `help:"API token to store (non-OAuth login, requires --org)" optional:""`
Device bool `help:"Authenticate using OAuth device authorization instead of opening a browser callback" optional:""`
CredentialStore string `help:"Credential store for tokens: auto, keyring, or shm" enum:"auto,keyring,shm" default:"auto"`
}
type LogoutCmd ¶
type StatusCmd ¶ added in v3.30.0
type StatusCmd struct {
output.OutputFlags
}
type StatusOutput ¶ added in v3.30.0
type StatusOutput struct {
OrganizationSlug string `json:"organization_slug"`
Token buildkite.AccessToken `json:"token"`
}
func (StatusOutput) TextOutput ¶ added in v3.30.0
func (w StatusOutput) TextOutput() string
Click to show internal directories.
Click to hide internal directories.