Documentation ¶
Index ¶
Constants ¶
View Source
const ( Address = "/tmp/cloudagent/cloudagent.sock" Network = "unix" )
Variables ¶
This section is empty.
Functions ¶
func NewServer ¶
func NewServer(opts *ServerOption) cloud_agent.AgentServer
Types ¶
type Cache ¶
type Cache[T any] interface { Register(name string) RegisteredResource[T] Resources() map[string]RegisteredResource[T] Clean() }
type RegisteredResource ¶
type RegisteredResource[T any] interface { Set(T) Get() T }
type ServerOption ¶
type Watcher ¶ added in v0.4.0
type Watcher struct {
// contains filtered or unexported fields
}
func NewWatcher ¶
func NewWatcher(opts WatcherOptions, fn ...WatchFn) (*Watcher, error)
Click to show internal directories.
Click to hide internal directories.