Documentation ¶
Index ¶
- func NOOP() *runtimev0.DesiredState
- func NetworkMappingForRestRouteGroup(ctx context.Context, group *configurations.RestRouteGroup, ...) (*basev0.NetworkMapping, error)
- func NewBuilderAgent(conf *configurations.Agent, builder Builder) agents.AgentImplementation
- func NewRuntimeAgent(conf *configurations.Agent, runtime Runtime) agents.AgentImplementation
- func NewServiceAgent(conf *configurations.Agent, service Agent) agents.AgentImplementation
- type Agent
- type Base
- func (s *Base) Communicate(ctx context.Context, eng *agentv0.Engage) (*agentv0.InformationRequest, error)
- func (s *Base) Debug(msg string, fields ...*wool.LogField)
- func (s *Base) DockerImage() *configurations.DockerImage
- func (s *Base) EndpointsFromConfiguration(ctx context.Context) ([]*basev0.Endpoint, error)
- func (s *Base) Errorf(format string, args ...any) error
- func (s *Base) Focus(msg string, fields ...*wool.LogField)
- func (s *Base) Info(msg string, fields ...*wool.LogField)
- func (s *Base) Load(ctx context.Context, identity *basev0.ServiceIdentity, settings any) error
- func (s *Base) LoadEnvironmentVariables(environment *basev0.Environment) *configurations.EnvironmentVariableManager
- func (s *Base) Local(f string) string
- func (s *Base) LogForward(msg string, args ...any)
- func (s *Base) Ready()
- func (s *Base) SetupWatcher(ctx context.Context, conf *WatchConfiguration, ...) error
- func (s *Base) Stop() error
- func (s *Base) Templates(ctx context.Context, obj any, wrappers ...*TemplateWrapper) error
- func (s *Base) Unique() string
- func (s *Base) Version() *basev0.Version
- func (s *Base) WantSync()
- type Builder
- type BuilderAgent
- func (m BuilderAgent) Build(ctx context.Context, req *builderv0.BuildRequest) (*builderv0.BuildResponse, error)
- func (m BuilderAgent) Communicate(ctx context.Context, req *agentv0.Engage) (*agentv0.InformationRequest, error)
- func (m BuilderAgent) Create(ctx context.Context, req *builderv0.CreateRequest) (*builderv0.CreateResponse, error)
- func (m BuilderAgent) Deploy(ctx context.Context, req *builderv0.DeploymentRequest) (*builderv0.DeploymentResponse, error)
- func (m BuilderAgent) Init(ctx context.Context, req *builderv0.InitRequest) (*builderv0.InitResponse, error)
- func (m BuilderAgent) Load(ctx context.Context, req *builderv0.LoadRequest) (*builderv0.LoadResponse, error)
- func (m BuilderAgent) Sync(ctx context.Context, req *builderv0.SyncRequest) (*builderv0.SyncResponse, error)
- func (m BuilderAgent) Update(ctx context.Context, req *builderv0.UpdateRequest) (*builderv0.UpdateResponse, error)
- type BuilderAgentGRPC
- type BuilderServer
- func (m *BuilderServer) Build(ctx context.Context, req *builderv0.BuildRequest) (*builderv0.BuildResponse, error)
- func (m *BuilderServer) Communicate(ctx context.Context, req *agentv0.Engage) (*agentv0.InformationRequest, error)
- func (m *BuilderServer) Create(ctx context.Context, req *builderv0.CreateRequest) (*builderv0.CreateResponse, error)
- func (m *BuilderServer) Deploy(ctx context.Context, req *builderv0.DeploymentRequest) (*builderv0.DeploymentResponse, error)
- func (m *BuilderServer) Init(ctx context.Context, req *builderv0.InitRequest) (*builderv0.InitResponse, error)
- func (m *BuilderServer) Load(ctx context.Context, req *builderv0.LoadRequest) (*builderv0.LoadResponse, error)
- func (m *BuilderServer) Sync(ctx context.Context, req *builderv0.SyncRequest) (*builderv0.SyncResponse, error)
- func (m *BuilderServer) Update(ctx context.Context, req *builderv0.UpdateRequest) (*builderv0.UpdateResponse, error)
- type BuilderWrapper
- func (s *BuilderWrapper) BuildError(err error) (*builderv0.BuildResponse, error)
- func (s *BuilderWrapper) BuildResponse() (*builderv0.BuildResponse, error)
- func (s *BuilderWrapper) CreateDeploymentBase(env *configurations.Environment) *DeploymentBase
- func (s *BuilderWrapper) CreateError(err error) (*builderv0.CreateResponse, error)
- func (s *BuilderWrapper) CreateResponse(ctx context.Context, settings any) (*builderv0.CreateResponse, error)
- func (s *BuilderWrapper) Deploy(ctx context.Context, req *builderv0.DeploymentRequest, fs embed.FS, params any) error
- func (s *BuilderWrapper) DeployError(err error) (*builderv0.DeploymentResponse, error)
- func (s *BuilderWrapper) DeployResponse() (*builderv0.DeploymentResponse, error)
- func (s *BuilderWrapper) GenerateKustomize(ctx context.Context, fs embed.FS, destination string, base *DeploymentBase, ...) error
- func (s *BuilderWrapper) InitError(err error) (*builderv0.InitResponse, error)
- func (s *BuilderWrapper) InitResponse(hash string) (*builderv0.InitResponse, error)
- func (s *BuilderWrapper) LoadError(err error) (*builderv0.LoadResponse, error)
- func (s *BuilderWrapper) LoadResponse(gettingStarted string) (*builderv0.LoadResponse, error)
- func (s *BuilderWrapper) SyncError(err error) (*builderv0.SyncResponse, error)
- func (s *BuilderWrapper) SyncResponse() (*builderv0.SyncResponse, error)
- type DeploymentBase
- type DeploymentWrapper
- type Information
- type InformationStatus
- type Runtime
- type RuntimeAgent
- func (m *RuntimeAgent) Communicate(ctx context.Context, req *agentv0.Engage) (*agentv0.InformationRequest, error)
- func (m *RuntimeAgent) Information(ctx context.Context, req *runtimev0.InformationRequest) (*runtimev0.InformationResponse, error)
- func (m *RuntimeAgent) Init(ctx context.Context, req *runtimev0.InitRequest) (*runtimev0.InitResponse, error)
- func (m *RuntimeAgent) Load(ctx context.Context, req *runtimev0.LoadRequest) (*runtimev0.LoadResponse, error)
- func (m *RuntimeAgent) Start(ctx context.Context, req *runtimev0.StartRequest) (*runtimev0.StartResponse, error)
- func (m *RuntimeAgent) Stop(ctx context.Context, req *runtimev0.StopRequest) (*runtimev0.StopResponse, error)
- type RuntimeAgentGRPC
- type RuntimeServer
- func (m *RuntimeServer) Communicate(ctx context.Context, req *agentv0.Engage) (*agentv0.InformationRequest, error)
- func (m *RuntimeServer) Information(ctx context.Context, req *runtimev0.InformationRequest) (*runtimev0.InformationResponse, error)
- func (m *RuntimeServer) Init(ctx context.Context, req *runtimev0.InitRequest) (*runtimev0.InitResponse, error)
- func (m *RuntimeServer) Load(ctx context.Context, req *runtimev0.LoadRequest) (*runtimev0.LoadResponse, error)
- func (m *RuntimeServer) Start(ctx context.Context, req *runtimev0.StartRequest) (*runtimev0.StartResponse, error)
- func (m *RuntimeServer) Stop(ctx context.Context, req *runtimev0.StopRequest) (*runtimev0.StopResponse, error)
- type RuntimeWrapper
- func (s *RuntimeWrapper) DesiredInit()
- func (s *RuntimeWrapper) DesiredLoad()
- func (s *RuntimeWrapper) DesiredStart()
- func (s *RuntimeWrapper) InformationResponse(_ context.Context, _ *runtimev0.InformationRequest) (*runtimev0.InformationResponse, error)
- func (s *RuntimeWrapper) InitError(err error, fields ...*wool.LogField) (*runtimev0.InitResponse, error)
- func (s *RuntimeWrapper) InitResponse(infos ...*basev0.ProviderInformation) (*runtimev0.InitResponse, error)
- func (s *RuntimeWrapper) LoadError(err error) (*runtimev0.LoadResponse, error)
- func (s *RuntimeWrapper) LoadResponse() (*runtimev0.LoadResponse, error)
- func (s *RuntimeWrapper) StartError(err error, fields ...*wool.LogField) (*runtimev0.StartResponse, error)
- func (s *RuntimeWrapper) StartResponse() (*runtimev0.StartResponse, error)
- type ServiceAgent
- type ServiceAgentContext
- type ServiceAgentGRPC
- type ServiceAgentServer
- type ServiceBuilderAgentContext
- type ServiceRuntimeAgentContext
- type TemplateWrapper
- func (wrapper *TemplateWrapper) Destination(s *Base) string
- func (wrapper *TemplateWrapper) WithDestination(destination string) *TemplateWrapper
- func (wrapper *TemplateWrapper) WithOverride(override shared.Override) *TemplateWrapper
- func (wrapper *TemplateWrapper) WithPathSelect(pathSelect shared.PathSelect) *TemplateWrapper
- type WatchConfiguration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NOOP ¶ added in v0.1.20
func NOOP() *runtimev0.DesiredState
func NetworkMappingForRestRouteGroup ¶ added in v0.1.18
func NetworkMappingForRestRouteGroup(ctx context.Context, group *configurations.RestRouteGroup, mappings []*basev0.NetworkMapping) (*basev0.NetworkMapping, error)
NetworkMappingForRestRouteGroup finds the proper network mapping for a given route group
func NewBuilderAgent ¶ added in v0.1.20
func NewBuilderAgent(conf *configurations.Agent, builder Builder) agents.AgentImplementation
func NewRuntimeAgent ¶ added in v0.0.26
func NewRuntimeAgent(conf *configurations.Agent, runtime Runtime) agents.AgentImplementation
func NewServiceAgent ¶ added in v0.0.51
func NewServiceAgent(conf *configurations.Agent, service Agent) agents.AgentImplementation
NewServiceAgent binds the Agent implementation to the Agent
Types ¶
type Agent ¶ added in v0.0.51
type Agent interface {
GetAgentInformation(ctx context.Context, req *agentv0.AgentInformationRequest) (*agentv0.AgentInformation, error)
}
type Base ¶ added in v0.0.26
type Base struct { // Agent Agent *configurations.Agent WoolAgent *wool.Provider Wool *wool.Wool // Underlying service WoolService *wool.Provider // State Identity *configurations.ServiceIdentity Location string // codefly configuration ConfigurationLocation string Configuration *configurations.Service // Information convenience Information *Information // Endpoints Endpoints []*basev0.Endpoint DependencyEndpoints []*basev0.Endpoint // Wrappers Runtime *RuntimeWrapper Builder *BuilderWrapper // Runtime State InformationStatus // Communication Communication *communicate.Server // Code Watcher Watcher *code.Watcher Events chan code.Change // contains filtered or unexported fields }
func NewServiceBase ¶ added in v0.0.26
func NewServiceBase(ctx context.Context, agent *configurations.Agent) *Base
func (*Base) Communicate ¶ added in v0.0.26
func (*Base) DockerImage ¶ added in v0.0.31
func (s *Base) DockerImage() *configurations.DockerImage
func (*Base) EndpointsFromConfiguration ¶ added in v0.0.26
EndpointsFromConfiguration from Configuration and data from the service
func (*Base) LoadEnvironmentVariables ¶ added in v0.1.22
func (s *Base) LoadEnvironmentVariables(environment *basev0.Environment) *configurations.EnvironmentVariableManager
func (*Base) LogForward ¶ added in v0.1.16
func (*Base) SetupWatcher ¶ added in v0.0.26
type Builder ¶ added in v0.1.20
type Builder interface { Load(ctx context.Context, req *builderv0.LoadRequest) (*builderv0.LoadResponse, error) Init(ctx context.Context, req *builderv0.InitRequest) (*builderv0.InitResponse, error) Create(ctx context.Context, req *builderv0.CreateRequest) (*builderv0.CreateResponse, error) Update(ctx context.Context, req *builderv0.UpdateRequest) (*builderv0.UpdateResponse, error) Sync(ctx context.Context, req *builderv0.SyncRequest) (*builderv0.SyncResponse, error) Build(ctx context.Context, req *builderv0.BuildRequest) (*builderv0.BuildResponse, error) Deploy(ctx context.Context, req *builderv0.DeploymentRequest) (*builderv0.DeploymentResponse, error) // Communicate is a special method that is used to communicate with the Agent communicate.Communicate }
type BuilderAgent ¶ added in v0.1.20
type BuilderAgent struct { Client builderv0.BuilderClient Agent *configurations.Agent ProcessInfo *manager.ProcessInfo }
func (BuilderAgent) Build ¶ added in v0.1.20
func (m BuilderAgent) Build(ctx context.Context, req *builderv0.BuildRequest) (*builderv0.BuildResponse, error)
func (BuilderAgent) Communicate ¶ added in v0.1.20
func (m BuilderAgent) Communicate(ctx context.Context, req *agentv0.Engage) (*agentv0.InformationRequest, error)
func (BuilderAgent) Create ¶ added in v0.1.20
func (m BuilderAgent) Create(ctx context.Context, req *builderv0.CreateRequest) (*builderv0.CreateResponse, error)
func (BuilderAgent) Deploy ¶ added in v0.1.20
func (m BuilderAgent) Deploy(ctx context.Context, req *builderv0.DeploymentRequest) (*builderv0.DeploymentResponse, error)
func (BuilderAgent) Init ¶ added in v0.1.20
func (m BuilderAgent) Init(ctx context.Context, req *builderv0.InitRequest) (*builderv0.InitResponse, error)
func (BuilderAgent) Load ¶ added in v0.1.20
func (m BuilderAgent) Load(ctx context.Context, req *builderv0.LoadRequest) (*builderv0.LoadResponse, error)
func (BuilderAgent) Sync ¶ added in v0.1.20
func (m BuilderAgent) Sync(ctx context.Context, req *builderv0.SyncRequest) (*builderv0.SyncResponse, error)
func (BuilderAgent) Update ¶ added in v0.1.20
func (m BuilderAgent) Update(ctx context.Context, req *builderv0.UpdateRequest) (*builderv0.UpdateResponse, error)
type BuilderAgentGRPC ¶ added in v0.1.20
type BuilderAgentGRPC struct { // GRPCAgent must still implement the ServiceAgent interface plugin.Plugin Builder Builder }
func (*BuilderAgentGRPC) GRPCClient ¶ added in v0.1.20
func (p *BuilderAgentGRPC) GRPCClient(_ context.Context, _ *plugin.GRPCBroker, c *grpc.ClientConn) (interface{}, error)
func (*BuilderAgentGRPC) GRPCServer ¶ added in v0.1.20
func (p *BuilderAgentGRPC) GRPCServer(_ *plugin.GRPCBroker, s *grpc.Server) error
type BuilderServer ¶ added in v0.1.20
type BuilderServer struct { builderv0.UnimplementedBuilderServer Builder Builder }
BuilderServer wraps the gRPC protocol Request/Response
func (*BuilderServer) Build ¶ added in v0.1.20
func (m *BuilderServer) Build(ctx context.Context, req *builderv0.BuildRequest) (*builderv0.BuildResponse, error)
func (*BuilderServer) Communicate ¶ added in v0.1.20
func (m *BuilderServer) Communicate(ctx context.Context, req *agentv0.Engage) (*agentv0.InformationRequest, error)
func (*BuilderServer) Create ¶ added in v0.1.20
func (m *BuilderServer) Create(ctx context.Context, req *builderv0.CreateRequest) (*builderv0.CreateResponse, error)
func (*BuilderServer) Deploy ¶ added in v0.1.20
func (m *BuilderServer) Deploy(ctx context.Context, req *builderv0.DeploymentRequest) (*builderv0.DeploymentResponse, error)
func (*BuilderServer) Init ¶ added in v0.1.20
func (m *BuilderServer) Init(ctx context.Context, req *builderv0.InitRequest) (*builderv0.InitResponse, error)
func (*BuilderServer) Load ¶ added in v0.1.20
func (m *BuilderServer) Load(ctx context.Context, req *builderv0.LoadRequest) (*builderv0.LoadResponse, error)
func (*BuilderServer) Sync ¶ added in v0.1.20
func (m *BuilderServer) Sync(ctx context.Context, req *builderv0.SyncRequest) (*builderv0.SyncResponse, error)
func (*BuilderServer) Update ¶ added in v0.1.20
func (m *BuilderServer) Update(ctx context.Context, req *builderv0.UpdateRequest) (*builderv0.UpdateResponse, error)
type BuilderWrapper ¶ added in v0.1.20
type BuilderWrapper struct {
*Base
}
func (*BuilderWrapper) BuildError ¶ added in v0.1.20
func (s *BuilderWrapper) BuildError(err error) (*builderv0.BuildResponse, error)
func (*BuilderWrapper) BuildResponse ¶ added in v0.1.20
func (s *BuilderWrapper) BuildResponse() (*builderv0.BuildResponse, error)
func (*BuilderWrapper) CreateDeploymentBase ¶ added in v0.1.20
func (s *BuilderWrapper) CreateDeploymentBase(env *configurations.Environment) *DeploymentBase
func (*BuilderWrapper) CreateError ¶ added in v0.1.20
func (s *BuilderWrapper) CreateError(err error) (*builderv0.CreateResponse, error)
func (*BuilderWrapper) CreateResponse ¶ added in v0.1.20
func (s *BuilderWrapper) CreateResponse(ctx context.Context, settings any) (*builderv0.CreateResponse, error)
func (*BuilderWrapper) Deploy ¶ added in v0.1.20
func (s *BuilderWrapper) Deploy(ctx context.Context, req *builderv0.DeploymentRequest, fs embed.FS, params any) error
func (*BuilderWrapper) DeployError ¶ added in v0.1.20
func (s *BuilderWrapper) DeployError(err error) (*builderv0.DeploymentResponse, error)
func (*BuilderWrapper) DeployResponse ¶ added in v0.1.20
func (s *BuilderWrapper) DeployResponse() (*builderv0.DeploymentResponse, error)
func (*BuilderWrapper) GenerateKustomize ¶ added in v0.1.20
func (s *BuilderWrapper) GenerateKustomize(ctx context.Context, fs embed.FS, destination string, base *DeploymentBase, params any) error
func (*BuilderWrapper) InitError ¶ added in v0.1.20
func (s *BuilderWrapper) InitError(err error) (*builderv0.InitResponse, error)
func (*BuilderWrapper) InitResponse ¶ added in v0.1.20
func (s *BuilderWrapper) InitResponse(hash string) (*builderv0.InitResponse, error)
func (*BuilderWrapper) LoadError ¶ added in v0.1.20
func (s *BuilderWrapper) LoadError(err error) (*builderv0.LoadResponse, error)
func (*BuilderWrapper) LoadResponse ¶ added in v0.1.20
func (s *BuilderWrapper) LoadResponse(gettingStarted string) (*builderv0.LoadResponse, error)
func (*BuilderWrapper) SyncError ¶ added in v0.1.20
func (s *BuilderWrapper) SyncError(err error) (*builderv0.SyncResponse, error)
func (*BuilderWrapper) SyncResponse ¶ added in v0.1.20
func (s *BuilderWrapper) SyncResponse() (*builderv0.SyncResponse, error)
type DeploymentBase ¶ added in v0.1.20
type DeploymentBase struct { *Information Environment *configurations.Environment Image *configurations.DockerImage Replicas int // Specialization Parameters any }
type DeploymentWrapper ¶ added in v0.1.20
type DeploymentWrapper struct { *DeploymentBase Parameters any }
type Information ¶ added in v0.0.26
type Information struct { Service *configurations.ServiceWithCase Agent *configurations.Agent Domain string }
type InformationStatus ¶ added in v0.0.26
type InformationStatus struct { Load *runtimev0.LoadStatus Init *runtimev0.InitStatus Start *runtimev0.StartStatus DesiredState *runtimev0.DesiredState }
type Runtime ¶ added in v0.0.51
type Runtime interface { // Load loads the service: it is a NoOp operation and can be called safely Load(ctx context.Context, req *runtimev0.LoadRequest) (*runtimev0.LoadResponse, error) // Init initializes the service: can include steps like compilation, etc... Init(ctx context.Context, req *runtimev0.InitRequest) (*runtimev0.InitResponse, error) // Start the underlying service Start(ctx context.Context, req *runtimev0.StartRequest) (*runtimev0.StartResponse, error) Stop(ctx context.Context, req *runtimev0.StopRequest) (*runtimev0.StopResponse, error) Information(ctx context.Context, req *runtimev0.InformationRequest) (*runtimev0.InformationResponse, error) // Communicate is a special method that is used to communicate with the Agent communicate.Communicate }
type RuntimeAgent ¶ added in v0.0.51
type RuntimeAgent struct { Client runtimev0.RuntimeClient Agent *configurations.Agent ProcessInfo *manager.ProcessInfo // Some service can deal with re-init without restarting HotReload bool }
func (*RuntimeAgent) Communicate ¶ added in v0.0.51
func (m *RuntimeAgent) Communicate(ctx context.Context, req *agentv0.Engage) (*agentv0.InformationRequest, error)
Communicate helper
func (*RuntimeAgent) Information ¶ added in v0.0.51
func (m *RuntimeAgent) Information(ctx context.Context, req *runtimev0.InformationRequest) (*runtimev0.InformationResponse, error)
Information return some useful information about the service
func (*RuntimeAgent) Init ¶ added in v0.0.51
func (m *RuntimeAgent) Init(ctx context.Context, req *runtimev0.InitRequest) (*runtimev0.InitResponse, error)
Init initializes the service
func (*RuntimeAgent) Load ¶ added in v0.0.72
func (m *RuntimeAgent) Load(ctx context.Context, req *runtimev0.LoadRequest) (*runtimev0.LoadResponse, error)
Load loads the service: it is a NoOp operation and can be called safely
func (*RuntimeAgent) Start ¶ added in v0.0.51
func (m *RuntimeAgent) Start(ctx context.Context, req *runtimev0.StartRequest) (*runtimev0.StartResponse, error)
Start starts the service
func (*RuntimeAgent) Stop ¶ added in v0.0.51
func (m *RuntimeAgent) Stop(ctx context.Context, req *runtimev0.StopRequest) (*runtimev0.StopResponse, error)
Stop stops the service
type RuntimeAgentGRPC ¶ added in v0.0.51
type RuntimeAgentGRPC struct { // GRPCAgent must still implement the ServiceAgent interface plugin.Plugin Runtime Runtime }
func (*RuntimeAgentGRPC) GRPCClient ¶ added in v0.0.51
func (p *RuntimeAgentGRPC) GRPCClient(_ context.Context, _ *plugin.GRPCBroker, c *grpc.ClientConn) (interface{}, error)
func (*RuntimeAgentGRPC) GRPCServer ¶ added in v0.0.51
func (p *RuntimeAgentGRPC) GRPCServer(_ *plugin.GRPCBroker, s *grpc.Server) error
type RuntimeServer ¶ added in v0.0.26
type RuntimeServer struct { runtimev0.UnimplementedRuntimeServer Runtime Runtime }
RuntimeServer wraps the gRPC protocol Request/Response
func (*RuntimeServer) Communicate ¶ added in v0.0.26
func (m *RuntimeServer) Communicate(ctx context.Context, req *agentv0.Engage) (*agentv0.InformationRequest, error)
func (*RuntimeServer) Information ¶ added in v0.0.26
func (m *RuntimeServer) Information(ctx context.Context, req *runtimev0.InformationRequest) (*runtimev0.InformationResponse, error)
func (*RuntimeServer) Init ¶ added in v0.0.26
func (m *RuntimeServer) Init(ctx context.Context, req *runtimev0.InitRequest) (*runtimev0.InitResponse, error)
func (*RuntimeServer) Load ¶ added in v0.0.72
func (m *RuntimeServer) Load(ctx context.Context, req *runtimev0.LoadRequest) (*runtimev0.LoadResponse, error)
func (*RuntimeServer) Start ¶ added in v0.0.26
func (m *RuntimeServer) Start(ctx context.Context, req *runtimev0.StartRequest) (*runtimev0.StartResponse, error)
func (*RuntimeServer) Stop ¶ added in v0.0.26
func (m *RuntimeServer) Stop(ctx context.Context, req *runtimev0.StopRequest) (*runtimev0.StopResponse, error)
type RuntimeWrapper ¶ added in v0.0.72
type RuntimeWrapper struct { *Base LoadStatus *runtimev0.LoadStatus InitStatus *runtimev0.InitStatus StartStatus *runtimev0.StartStatus DesiredState *runtimev0.DesiredState }
func (*RuntimeWrapper) DesiredInit ¶ added in v0.1.20
func (s *RuntimeWrapper) DesiredInit()
func (*RuntimeWrapper) DesiredLoad ¶ added in v0.1.20
func (s *RuntimeWrapper) DesiredLoad()
func (*RuntimeWrapper) DesiredStart ¶ added in v0.1.20
func (s *RuntimeWrapper) DesiredStart()
func (*RuntimeWrapper) InformationResponse ¶ added in v0.0.75
func (s *RuntimeWrapper) InformationResponse(_ context.Context, _ *runtimev0.InformationRequest) (*runtimev0.InformationResponse, error)
func (*RuntimeWrapper) InitError ¶ added in v0.0.72
func (s *RuntimeWrapper) InitError(err error, fields ...*wool.LogField) (*runtimev0.InitResponse, error)
func (*RuntimeWrapper) InitResponse ¶ added in v0.0.72
func (s *RuntimeWrapper) InitResponse(infos ...*basev0.ProviderInformation) (*runtimev0.InitResponse, error)
func (*RuntimeWrapper) LoadError ¶ added in v0.0.72
func (s *RuntimeWrapper) LoadError(err error) (*runtimev0.LoadResponse, error)
func (*RuntimeWrapper) LoadResponse ¶ added in v0.0.72
func (s *RuntimeWrapper) LoadResponse() (*runtimev0.LoadResponse, error)
func (*RuntimeWrapper) StartError ¶ added in v0.0.72
func (s *RuntimeWrapper) StartError(err error, fields ...*wool.LogField) (*runtimev0.StartResponse, error)
func (*RuntimeWrapper) StartResponse ¶ added in v0.0.72
func (s *RuntimeWrapper) StartResponse() (*runtimev0.StartResponse, error)
type ServiceAgent ¶ added in v0.0.51
type ServiceAgent struct { Client agentv0.AgentClient Agent *configurations.Agent ProcessInfo *manager.ProcessInfo }
func (*ServiceAgent) GetAgentInformation ¶ added in v0.0.51
func (m *ServiceAgent) GetAgentInformation(ctx context.Context, req *agentv0.AgentInformationRequest) (*agentv0.AgentInformation, error)
GetAgentInformation provides - capabilities
type ServiceAgentContext ¶ added in v0.0.51
type ServiceAgentContext struct { }
func (ServiceAgentContext) Default ¶ added in v0.0.51
func (m ServiceAgentContext) Default() plugin.Plugin
func (ServiceAgentContext) Key ¶ added in v0.0.51
func (m ServiceAgentContext) Key(p *configurations.Agent, unique string) string
type ServiceAgentGRPC ¶ added in v0.0.51
type ServiceAgentGRPC struct { // GRPCAgent must still implement the ServiceAgent interface plugin.Plugin Service Agent }
func (*ServiceAgentGRPC) GRPCClient ¶ added in v0.0.51
func (p *ServiceAgentGRPC) GRPCClient(_ context.Context, _ *plugin.GRPCBroker, c *grpc.ClientConn) (interface{}, error)
func (*ServiceAgentGRPC) GRPCServer ¶ added in v0.0.51
func (p *ServiceAgentGRPC) GRPCServer(_ *plugin.GRPCBroker, s *grpc.Server) error
type ServiceAgentServer ¶ added in v0.0.51
type ServiceAgentServer struct { agentv0.UnimplementedAgentServer Service Agent }
ServiceAgentServer wraps the gRPC protocol Request/Response
func (*ServiceAgentServer) GetAgentInformation ¶ added in v0.0.51
func (m *ServiceAgentServer) GetAgentInformation(ctx context.Context, req *agentv0.AgentInformationRequest) (*agentv0.AgentInformation, error)
type ServiceBuilderAgentContext ¶ added in v0.1.20
type ServiceBuilderAgentContext struct { }
func (ServiceBuilderAgentContext) Default ¶ added in v0.1.20
func (m ServiceBuilderAgentContext) Default() plugin.Plugin
func (ServiceBuilderAgentContext) Key ¶ added in v0.1.20
func (m ServiceBuilderAgentContext) Key(p *configurations.Agent, unique string) string
type ServiceRuntimeAgentContext ¶ added in v0.0.26
type ServiceRuntimeAgentContext struct { }
func (ServiceRuntimeAgentContext) Default ¶ added in v0.0.26
func (m ServiceRuntimeAgentContext) Default() plugin.Plugin
func (ServiceRuntimeAgentContext) Key ¶ added in v0.0.26
func (m ServiceRuntimeAgentContext) Key(p *configurations.Agent, unique string) string
type TemplateWrapper ¶ added in v0.0.26
type TemplateWrapper struct { PathSelect shared.PathSelect Override shared.Override // contains filtered or unexported fields }
func WithBuilder ¶ added in v0.0.26
func WithBuilder(fs embed.FS) *TemplateWrapper
func WithDeployment ¶ added in v0.0.26
func WithDeployment(fs embed.FS, sub string) *TemplateWrapper
func WithFactory ¶ added in v0.0.26
func WithFactory(fs embed.FS) *TemplateWrapper
func WithTemplate ¶ added in v0.1.20
func WithTemplate(fs embed.FS, from string, to string) *TemplateWrapper
func (*TemplateWrapper) Destination ¶ added in v0.1.20
func (wrapper *TemplateWrapper) Destination(s *Base) string
func (*TemplateWrapper) WithDestination ¶ added in v0.1.20
func (wrapper *TemplateWrapper) WithDestination(destination string) *TemplateWrapper
func (*TemplateWrapper) WithOverride ¶ added in v0.1.18
func (wrapper *TemplateWrapper) WithOverride(override shared.Override) *TemplateWrapper
func (*TemplateWrapper) WithPathSelect ¶ added in v0.1.20
func (wrapper *TemplateWrapper) WithPathSelect(pathSelect shared.PathSelect) *TemplateWrapper
type WatchConfiguration ¶ added in v0.0.26
type WatchConfiguration struct {
// contains filtered or unexported fields
}
func NewWatchConfiguration ¶ added in v0.0.26
func NewWatchConfiguration(dependencies *builders.Dependencies) *WatchConfiguration