Documentation
¶
Index ¶
- func IsCertValidBySupportedDomains(byteCert []byte, ...) (bool, *x509.Certificate, error)
- func IsValidIP(ipaddr string) (bool, error)
- func LoopBackAddr() string
- func NewAgentConfig(tokenCache *cache.TokenCache, agentTokenName string, env string, ...) (*AgentConfigs, *TrcShConfig, error)
- func PenseQuery(trcshDriverConfig *TrcshDriverConfig, capPath string, pense string) (*string, error)
- func TrcNetAddr() (string, error)
- func ValidateVhost(host string, protocol string, skipPort bool, logger ...*log.Logger) error
- func ValidateVhostDomain(host string) error
- func ValidateVhostInverse(host string, protocol string, inverse bool, skipPort bool, ...) error
- type AgentConfigs
- type TrcShConfig
- type TrcshDriverConfig
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, *x509.Certificate, error)
IsCertValidBySupportedDomains accepts a certificate
func LoopBackAddr ¶ added in v1.27.5
func LoopBackAddr() string
func NewAgentConfig ¶
func NewAgentConfig(tokenCache *cache.TokenCache, agentTokenName string, env string, acceptRemoteFunc func(*cap.FeatherContext, int, string) (bool, error), interruptedFunc func(*cap.FeatherContext) error, initNewTrcsh bool, isShellRunner 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 ValidateVhost ¶
func ValidateVhostDomain ¶ added in v1.5.3
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 {
IsShellRunner bool
Env string
EnvContext string // Current env context...
TokenCache *cache.TokenCache
KubeConfigPtr *string
}
func (*TrcShConfig) IsValid ¶
func (trcshConfig *TrcShConfig) IsValid(trcshDriverConfig *TrcshDriverConfig, agentConfigs *AgentConfigs) bool
type TrcshDriverConfig ¶ added in v1.9.0
type TrcshDriverConfig struct {
DriverConfig *config.DriverConfig
PluginName string
FeatherCtx *cap.FeatherContext
FeatherCtlCb func(*cap.FeatherContext, string) error
}
Click to show internal directories.
Click to hide internal directories.