hub

package module
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent interface {
	AgentInfo
	k0s.Tider

	AddChannel(api.ProtocolID, net.Conn)
	NewChannel(api.ProtocolID) net.Conn
	BasicAuth(http.Handler) http.Handler
}

type AgentInfo

type AgentInfo interface {
	GetID() string
	GetName() string
	GetTags() []string
	GetAuth() bool
	GetHtpasswd() map[string]string

	GetOS() string
	GetPwd() string
	GetArch() string
	GetDistro() string
	GetHostname() string
	GetUsername() string
	GetVersion() string
	GetGitSummary() string

	SetIP(string)
}

type AgentManager

type AgentManager interface {
	k0s.Manager

	AddAgent(Agent)
	GetAgent(string) Agent
	GetAgents() []Agent
}

type Config

type Config interface {
	Port() string
	UseTLS() bool
	UI() bool
	Verbose() bool
	Cert() string
	Key() string
	Ufo() string
	GetVersion() *version.Version
}

type Hub

type Hub interface {
	AgentManager

	GetConfig() Config
	Handler() http.Handler
}

type RPC

type RPC interface {
	k0s.Tider

	Close()
	Done() <-chan struct{}

	NewChannel(api.ProtocolID)

	Ping()
	RemoteIP() string
	Actions() <-chan func(Hub)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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