auth

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: Apache-2.0 Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package auth provides the "jira auth" command group for authentication management.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdAuth

func NewCmdAuth(f *factory.Factory) *cobra.Command

NewCmdAuth creates the "auth" command group. Subcommands (login, logout, status, switch) are registered in their own stories.

func NewCmdLogin

func NewCmdLogin(f *factory.Factory) *cobra.Command

NewCmdLogin creates the "auth login" command.

func NewCmdLogout

func NewCmdLogout(f *factory.Factory) *cobra.Command

NewCmdLogout creates the "auth logout" command.

func NewCmdStatus

func NewCmdStatus(f *factory.Factory) *cobra.Command

NewCmdStatus creates the "auth status" command.

func NewCmdSwitch

func NewCmdSwitch(f *factory.Factory) *cobra.Command

NewCmdSwitch creates the "auth switch" command.

Types

type LoginOptions

type LoginOptions struct {
	Instance string
	User     string
	Token    string
	Profile  string

	Factory *factory.Factory
	// contains filtered or unexported fields
}

LoginOptions holds all resolved inputs for the login command.

type LogoutOptions

type LogoutOptions struct {
	Yes     bool
	Profile string

	Factory *factory.Factory
}

LogoutOptions holds all resolved inputs for the logout command.

type StatusOptions

type StatusOptions struct {
	Factory *factory.Factory

	// Check makes an invalid token an error rather than a reportable state, so
	// the command can gate a script or hook. Off by default: the exit code is
	// part of the existing contract.
	Check bool
	// contains filtered or unexported fields
}

StatusOptions holds all resolved inputs for the status command.

type SwitchOptions

type SwitchOptions struct {
	Profile string

	Factory *factory.Factory
}

SwitchOptions holds all resolved inputs for the switch command.

Jump to

Keyboard shortcuts

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