agent

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package agent GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE

Index

Constants

This section is empty.

Variables

View Source
var HEADER_KUBEPKG_AGENT = "X-Kubepkg-Server"

Functions

func ToKubeAgentHead

func ToKubeAgentHead(ai *AgentInfo) string

Types

type AgentInfo

type AgentInfo struct {
	AgentID            string
	Version            string
	SupportedPlatforms []string
}

func FromKubeAgentHead

func FromKubeAgentHead(h string) (*AgentInfo, error)

func (AgentInfo) RuntimeDoc

func (v AgentInfo) RuntimeDoc(names ...string) ([]string, bool)

type Server

type Server struct {
	Storage containerregistry.Storage
	// Server DeploymentSettingID
	AgentID string `flag:",omitempty"`
	// Supported platforms
	Platforms []string `flag:"platform,omitempty"`
	// The address the server endpoint binds to
	AgentAddr string `flag:",omitempty,expose=http"`
	// contains filtered or unexported fields
}

func (*Server) Init

func (a *Server) Init(ctx context.Context) error

func (*Server) InjectContext

func (a *Server) InjectContext(ctx context.Context) context.Context

func (Server) RuntimeDoc

func (v Server) RuntimeDoc(names ...string) ([]string, bool)

func (*Server) Serve

func (a *Server) Serve(ctx context.Context) error

func (*Server) SetDefaults

func (s *Server) SetDefaults()

func (*Server) Shutdown

func (a *Server) Shutdown(ctx context.Context) error

Directories

Path Synopsis
blob
+gengo:operator:register=R +gengo:operator:tag=blob
+gengo:operator:register=R +gengo:operator:tag=blob
kubepkg
+gengo:operator:register=R +gengo:operator:tag=kubepkg
+gengo:operator:register=R +gengo:operator:tag=kubepkg
client
agent
Package agent GENERATED BY gengo:client DON'T EDIT THIS FILE
Package agent GENERATED BY gengo:client DON'T EDIT THIS FILE

Jump to

Keyboard shortcuts

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