Documentation ¶
Index ¶
- Variables
- type Agent
- type AgentGroup
- type KubernetesCredentials
- type SessionCredentials
- type SessionOverrides
- type WormholeService
- func (ws *WormholeService) GetKubernetesClusterCredentialsFromAgent(ctx context.Context, agentGroup *AgentGroup) (*KubernetesCredentials, error)
- func (ws *WormholeService) GetProxyConfiguredTransport(ctx context.Context, agentGroup *AgentGroup) (*http.Transport, error)
- func (ws *WormholeService) GetProxyEnabledClusterConfig(ctx context.Context, agentGroup *AgentGroup) (*rest.Config, error)
- func (ws *WormholeService) GetProxyFunction(ctx context.Context, agentGroup *AgentGroup) (func(*http.Request) (*url.URL, error), error)
- func (ws *WormholeService) ListAgents(ctx context.Context, orgID, envID string) ([]*Agent, error)
- type WormholeServiceParameters
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrAgentNotFound = errors.New("agent not found") ErrCredentialFetchNotSupportedByAgent = errors.New("agent does not support credentials fetching") )
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent struct { ConnectedAtIso8601 string `json:"connectedAtIso8601,omitempty"` NodeIP string `json:"nodeIp,omitempty"` OrgID string `json:"orgId,omitempty"` EnvID string `json:"envId,omitempty"` K8SClusterRoleSupport bool `json:"k8sClusterRoleSupport,omitempty"` AgentIdentifier string `json:"agentIdentifier,omitempty"` AgentVersion string `json:"agentVersion,omitempty"` IPAddress string `json:"ipAddress,omitempty"` LastHeartbeatAtIso8601 string `json:"lastHeartbeatAtIso8601,omitempty"` StreamID string `json:"streamId,omitempty"` }
type AgentGroup ¶
type KubernetesCredentials ¶
type SessionCredentials ¶
type SessionOverrides ¶
type WormholeService ¶
type WormholeService struct { WormholeBaseURL string SessionOverrides *SessionOverrides // contains filtered or unexported fields }
func New ¶
func New(params WormholeServiceParameters) *WormholeService
func (*WormholeService) GetKubernetesClusterCredentialsFromAgent ¶
func (ws *WormholeService) GetKubernetesClusterCredentialsFromAgent(ctx context.Context, agentGroup *AgentGroup) (*KubernetesCredentials, error)
func (*WormholeService) GetProxyConfiguredTransport ¶
func (ws *WormholeService) GetProxyConfiguredTransport(ctx context.Context, agentGroup *AgentGroup) (*http.Transport, error)
func (*WormholeService) GetProxyEnabledClusterConfig ¶
func (ws *WormholeService) GetProxyEnabledClusterConfig(ctx context.Context, agentGroup *AgentGroup) (*rest.Config, error)
func (*WormholeService) GetProxyFunction ¶
func (ws *WormholeService) GetProxyFunction(ctx context.Context, agentGroup *AgentGroup) (func(*http.Request) (*url.URL, error), error)
func (*WormholeService) ListAgents ¶
type WormholeServiceParameters ¶ added in v1.34.0
type WormholeServiceParameters struct { Client *http.Client BaseURL string Overrides *SessionOverrides Logger *zap.SugaredLogger }
Click to show internal directories.
Click to hide internal directories.