capauth

package
v1.31.6 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2025 License: MIT Imports: 31 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsCertValidBySupportedDomains added in v1.29.3

func IsCertValidBySupportedDomains(byteCert []byte,
	certValidationHelper func(cert *x509.Certificate, host string, selfSignedOk bool) (bool, error),
) (bool, error)

IsCertValidBySupportedDomains accepts a certificate

func IsValidIP added in v1.27.6

func IsValidIP(ipaddr string) (bool, error)

func LoopBackAddr added in v1.27.5

func LoopBackAddr() string

func NewAgentConfig

func NewAgentConfig(addressPtr *string,
	tokenCache *cache.TokenCache,
	agentTokenName 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, capPath string, pense string) (*string, error)

func TrcNetAddr added in v1.27.6

func TrcNetAddr() (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...
	VaultAddressPtr *string
	TokenCache      *cache.TokenCache
	ConfigRolePtr   *string
	PubRolePtr      *string
	KubeConfigPtr   *string
}

func (*TrcShConfig) IsValid

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

type TrcshDriverConfig added in v1.9.0

type TrcshDriverConfig struct {
	DriverConfig *config.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