capauth

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: MIT Imports: 24 Imported by: 5

Documentation

Index

Constants

View Source
const (
	ServCert           = "/etc/opt/vault/certs/serv_cert.pem"
	ServCertPrefixPath = "/etc/opt/vault/certs/"
	ServCertLocal      = "./serv_cert.pem"
	ServKey            = "/etc/opt/vault/certs/serv_key.pem"
)

Variables

View Source
var MashupCertPool *x509.CertPool

Functions

func GetServerCredentials

func GetServerCredentials(logger *log.Logger) (credentials.TransportCredentials, error)

func GetTlsConfig

func GetTlsConfig(certName string) (*tls.Config, error)

func GetTransportCredentials

func GetTransportCredentials() (credentials.TransportCredentials, error)

func LocalAddr added in v1.1.28

func LocalAddr(env string) (string, error)

func LocalIp

func LocalIp(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,
	logger *log.Logger) (*AgentConfigs, *TrcShConfig, error)

func PenseQuery

func PenseQuery(driverConfig *eUtils.DriverConfig, pense string) (*string, error)

func ReadServerCert

func ReadServerCert(certName string) ([]byte, error)

func ValidateVhost

func ValidateVhost(host string, protocol string) error

func ValidateVhostDomain added in v1.5.3

func ValidateVhostDomain(host string) error

func ValidateVhostInverse

func ValidateVhostInverse(host string, protocol string, inverse bool) error

Types

type AgentConfigs

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

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
	CToken       *string
	ConfigRole   *string
	PubRole      *string
	KubeConfig   *string
}

func (*TrcShConfig) IsValid

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

Jump to

Keyboard shortcuts

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