capauth

package
v1.20.3 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: MIT Imports: 26 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LocalAddr added in v1.1.28

func LocalAddr(env string) (string, error)

func NewAgentConfig

func NewAgentConfig(address string,
	agentToken string,
	env string,
	acceptRemoteFunc func(*cap.FeatherContext, int, string) (bool, error),
	interruptedFunc func(*cap.FeatherContext) error,
	initNewTrcsh bool,
	logger *log.Logger,
	drone ...*bool) (*AgentConfigs, *TrcShConfig, error)

func PenseQuery

func PenseQuery(trcshDriverConfig *TrcshDriverConfig, pense string) (*string, error)

func ValidateVhost

func ValidateVhost(host string, protocol string, skipPort bool, logger ...*log.Logger) error

func ValidateVhostDomain added in v1.5.3

func ValidateVhostDomain(host string) error

func ValidateVhostInverse

func ValidateVhostInverse(host string, protocol string, inverse bool, skipPort bool, logger ...*log.Logger) error

Types

type AgentConfigs

type AgentConfigs struct {
	*cap.FeatherContext
	AgentToken      *string
	FeatherHostPort *string
	DeployRoleID    *string
	Deployments     *string
	Env             *string
	Drone           *bool
}

func (*AgentConfigs) PenseFeatherQuery

func (agentconfig *AgentConfigs) PenseFeatherQuery(featherCtx *cap.FeatherContext, pense string) (*string, error)

func (*AgentConfigs) RetryingPenseFeatherQuery added in v1.1.4

func (agentconfig *AgentConfigs) RetryingPenseFeatherQuery(pense string) (*string, error)

type TrcShConfig

type TrcShConfig struct {
	Env          string
	EnvContext   string // Current env context...
	VaultAddress *string
	Token        *string // Plugin token for read only access to plugin data
	ConfigRole   *string
	PubRole      *string
	KubeConfig   *string
}

func (*TrcShConfig) IsValid

func (trcshConfig *TrcShConfig) IsValid(agentConfigs *AgentConfigs) bool

type TrcshDriverConfig added in v1.9.0

type TrcshDriverConfig struct {
	DriverConfig *eUtils.DriverConfig
	FeatherCtx   *cap.FeatherContext
	FeatherCtlCb func(*cap.FeatherContext, string) error
}

Jump to

Keyboard shortcuts

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