config

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Dir is a jira-cli config directory.
	Dir = ".jira"
	// FileName is a jira-cli config file name.
	FileName = ".config"
	// FileType is a jira-cli config file extension.
	FileType = "yml"
)

Variables

View Source
var (
	// ErrSkip is returned when a user skips the config generation.
	ErrSkip = fmt.Errorf("skipping config generation")
	// ErrUnexpectedResponseFormat is returned if the response data is in unexpected format.
	ErrUnexpectedResponseFormat = fmt.Errorf("unexpected response format")
)

Functions

func Exists

func Exists(file string) bool

Exists checks if the file exist.

Types

type JiraCLIConfig

type JiraCLIConfig struct {
	Installation string
	Server       string
	AuthType     string
	Login        string
	Project      string
	Board        string
	Force        bool
	Insecure     bool
	MTLS         JiraCLIMTLSConfig
}

JiraCLIConfig is a Jira CLI config.

type JiraCLIConfigGenerator added in v1.0.0

type JiraCLIConfigGenerator struct {
	// contains filtered or unexported fields
}

JiraCLIConfigGenerator is a Jira CLI config generator.

func NewJiraCLIConfigGenerator added in v1.0.0

func NewJiraCLIConfigGenerator(cfg *JiraCLIConfig) *JiraCLIConfigGenerator

NewJiraCLIConfigGenerator creates a new Jira CLI config.

func (*JiraCLIConfigGenerator) Generate added in v1.0.0

func (c *JiraCLIConfigGenerator) Generate() (string, error)

Generate generates the config file.

type JiraCLIMTLSConfig added in v1.5.0

type JiraCLIMTLSConfig struct {
	CaCert     string
	ClientCert string
	ClientKey  string
}

JiraCLIMTLSConfig is an authtype specific config.

Jump to

Keyboard shortcuts

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