agent

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: MIT Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckDomainReachabilityStream added in v0.0.3

type CheckDomainReachabilityStream interface {
	Recv() (*proto.CheckDomainReachabilityReply, error)
}

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(config ClientConfig) Client

func (Client) CheckDomainReachability added in v0.0.3

func (c Client) CheckDomainReachability(
	checkDomainReachabilityRequest *proto.CheckDomainReachabilityRequest,
	streamHandler func(stream CheckDomainReachabilityStream) error,
) error

func (Client) Execute

func (c Client) Execute(fnToExec func(agentGRPCClient proto.AgentClient) error) error

func (Client) InitInstance

func (c Client) InitInstance(
	initInstanceRequest *proto.InitInstanceRequest,
	streamHandler func(stream InitInstanceStream) error,
) error

func (Client) InstallRuntimes

func (c Client) InstallRuntimes(
	installRuntimesRequest *proto.InstallRuntimesRequest,
	streamHandler func(stream InstallRuntimesStream) error,
) error

func (Client) ReconcileServedPortsState

func (c Client) ReconcileServedPortsState(
	serveRequest *proto.ReconcileServedPortsStateRequest,
	streamHandler func(stream ReconcileServedPortsStateStream) error,
) error

type ClientBuilder

type ClientBuilder interface {
	Build(config ClientConfig) ClientInterface
}

type ClientConfig

type ClientConfig struct {
	ServerRootUser           string
	ServerSSHPrivateKeyBytes []byte
	ServerAddr               string
	LocalAddr                string
	RemoteAddrProtocol       string
	RemoteAddr               string
}

func NewDefaultClientConfig

func NewDefaultClientConfig(
	sshPrivateKeyBytes []byte,
	instancePublicIPAddress string,
) ClientConfig

type ClientInterface

type ClientInterface interface {
	InitInstance(
		initInstanceRequest *proto.InitInstanceRequest,
		streamHandler func(stream InitInstanceStream) error,
	) error

	InstallRuntimes(
		installRuntimesRequest *proto.InstallRuntimesRequest,
		streamHandler func(stream InstallRuntimesStream) error,
	) error

	ReconcileServedPortsState(
		serveRequest *proto.ReconcileServedPortsStateRequest,
		streamHandler func(stream ReconcileServedPortsStateStream) error,
	) error

	CheckDomainReachability(
		checkDomainReachabilityRequest *proto.CheckDomainReachabilityRequest,
		streamHandler func(stream CheckDomainReachabilityStream) error,
	) error
}

type DefaultClientBuilder

type DefaultClientBuilder struct{}

func NewDefaultClientBuilder

func NewDefaultClientBuilder() DefaultClientBuilder

func (DefaultClientBuilder) Build

type InitInstanceStream

type InitInstanceStream interface {
	Recv() (*proto.InitInstanceReply, error)
}

type InstallRuntimesStream

type InstallRuntimesStream interface {
	Recv() (*proto.InstallRuntimesReply, error)
}

type ReconcileServedPortsStateStream

type ReconcileServedPortsStateStream interface {
	Recv() (*proto.ReconcileServedPortsStateReply, error)
}

Jump to

Keyboard shortcuts

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