types

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidArgumentFormat = goerr.New("invalid argument format")
	ErrInvalidArgument       = goerr.New("invalid argument")
	ErrNotEnoughArgument     = goerr.New("not enough arguments")
	ErrKeychainNotFound      = goerr.New("keychain item not found")
	ErrKeychainQueryFailed   = goerr.New("failed to query keychain item")
	ErrKeychainNotSupported  = goerr.New("keychain is not supported on the OS")
	ErrEnvVarInvalidName     = goerr.New("invalid environment variable name")
	ErrGenerateRandom        = goerr.New("crypto/rand failed")
	ErrInnerCommandFailed    = goerr.New("inner command failed")
)

Functions

This section is empty.

Types

type Argument

type Argument string

func (Argument) HasEnvVarSeparator

func (x Argument) HasEnvVarSeparator() bool

func (Argument) IsKeychainNamespace

func (x Argument) IsKeychainNamespace() bool

func (Argument) ReplaceAll

func (x Argument) ReplaceAll(key EnvKey, value EnvValue) Argument

func (Argument) String

func (x Argument) String() string

func (Argument) ToEnvVar

func (x Argument) ToEnvVar() (EnvKey, EnvValue)

type Arguments

type Arguments []Argument

func NewArguments

func NewArguments(args []string) Arguments

func (Arguments) Strings

func (x Arguments) Strings() []string

type EnvKey

type EnvKey string

func (EnvKey) String

func (x EnvKey) String() string

func (EnvKey) Validate

func (x EnvKey) Validate() error

type EnvSecret

type EnvSecret string

type EnvValue

type EnvValue string

func (EnvValue) IsFilePath

func (x EnvValue) IsFilePath() bool

func (EnvValue) IsInnerCommand

func (x EnvValue) IsInnerCommand() bool

func (EnvValue) ToFilePath

func (x EnvValue) ToFilePath() FilePath

func (EnvValue) ToHiddenValue

func (x EnvValue) ToHiddenValue() EnvValue

func (EnvValue) ToInnerCommand

func (x EnvValue) ToInnerCommand() string

type FilePath

type FilePath string

type Namespace

type Namespace string

Namespace is keychain namespace

func (Namespace) HasPrefix

func (x Namespace) HasPrefix(p NamespacePrefix) bool

func (Namespace) String

func (x Namespace) String() string

func (Namespace) ToSuffix

func (x Namespace) ToSuffix(prefix NamespacePrefix) NamespaceSuffix

type NamespacePrefix

type NamespacePrefix string

func (NamespacePrefix) String

func (x NamespacePrefix) String() string

type NamespaceSuffix

type NamespaceSuffix string

func (NamespaceSuffix) ToNamespace

func (x NamespaceSuffix) ToNamespace(prefix NamespacePrefix) Namespace

func (NamespaceSuffix) Validate

func (x NamespaceSuffix) Validate() error

type Passphrase

type Passphrase string

Jump to

Keyboard shortcuts

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