auth

package
v3.30.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package auth handles commands related to authentication via the CLI

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoginCmd

type LoginCmd struct {
	Scopes string `help:"OAuth scopes to request" default:""`
}

func (*LoginCmd) Help

func (c *LoginCmd) Help() string

func (*LoginCmd) Run

func (c *LoginCmd) Run(kongCtx *kong.Context, globals cli.GlobalFlags) error

type LogoutCmd

type LogoutCmd struct {
	All bool   `help:"Log out of all organizations" xor:"target"`
	Org string `help:"Organization slug (defaults to currently selected organization)" optional:"" xor:"target"`
}

func (*LogoutCmd) Run

func (c *LogoutCmd) Run(kongCtx *kong.Context, globals cli.GlobalFlags) error

type StatusCmd added in v3.30.0

type StatusCmd struct {
	output.OutputFlags
}

func (*StatusCmd) Help added in v3.30.0

func (c *StatusCmd) Help() string

func (*StatusCmd) Run added in v3.30.0

func (c *StatusCmd) Run(kongCtx *kong.Context, globals cli.GlobalFlags) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL