Documentation ¶
Index ¶
- func ClearAgents()
- func ForCreate(opt *BuilderLoadOptions)
- func ForSync(opt *BuilderLoadOptions)
- func LoadAgent(ctx context.Context, agent *resources.Agent) (*coreservices.ServiceAgent, error)
- func LoadBuilder(ctx context.Context, conf *resources.Service) (*coreservices.BuilderAgent, error)
- func LoadRuntime(ctx context.Context, service *resources.Service) (*coreservices.RuntimeAgent, error)
- func NetworkMappingForRestRouteGroup(ctx context.Context, group *resources.RestRouteGroup, ...) (*basev0.NetworkMapping, error)
- func NewBuilderAgent(conf *resources.Agent, builder coreservices.Builder) agents.AgentImplementation
- func NewServiceAgent(conf *resources.Agent, service coreservices.Agent) agents.AgentImplementation
- type AddOutput
- type AgentUpdate
- type BuilderInstance
- func (instance *BuilderInstance) Create(ctx context.Context, req *builderv0.CreateRequest, ...) (*builderv0.CreateResponse, error)
- func (instance *BuilderInstance) Load(ctx context.Context, opts ...BuilderLoadOption) (*builderv0.LoadResponse, error)
- func (instance *BuilderInstance) Sync(ctx context.Context, req *builderv0.SyncRequest, ...) (*builderv0.SyncResponse, error)
- type BuilderLoadOption
- type BuilderLoadOptions
- type InformationStatus
- type Instance
- func (instance *Instance) CheckCapabilities(capability agentv0.Capability_Type) error
- func (instance *Instance) LoadBuilder(ctx context.Context) error
- func (instance *Instance) LoadRuntime(ctx context.Context, withRuntimeCheck bool) error
- func (instance *Instance) WithWorkspace(workspace *resources.Workspace)
- type ProcessInfo
- type RuntimeInstance
- type UpdateInformation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearAgents ¶
func ClearAgents()
func ForCreate ¶ added in v0.1.113
func ForCreate(opt *BuilderLoadOptions)
func ForSync ¶ added in v0.1.113
func ForSync(opt *BuilderLoadOptions)
func LoadAgent ¶
func LoadAgent(ctx context.Context, agent *resources.Agent) (*coreservices.ServiceAgent, error)
func LoadBuilder ¶
func LoadBuilder(ctx context.Context, conf *resources.Service) (*coreservices.BuilderAgent, error)
func LoadRuntime ¶
func LoadRuntime(ctx context.Context, service *resources.Service) (*coreservices.RuntimeAgent, error)
func NetworkMappingForRestRouteGroup ¶
func NetworkMappingForRestRouteGroup(ctx context.Context, group *resources.RestRouteGroup, mappings []*basev0.NetworkMapping) (*basev0.NetworkMapping, error)
NetworkMappingForRestRouteGroup finds the proper network mapping for a given route group
func NewBuilderAgent ¶
func NewBuilderAgent(conf *resources.Agent, builder coreservices.Builder) agents.AgentImplementation
func NewServiceAgent ¶
func NewServiceAgent(conf *resources.Agent, service coreservices.Agent) agents.AgentImplementation
NewServiceAgent binds the agent implementation to the agent
Types ¶
type AddOutput ¶ added in v0.1.114
type AddOutput struct {
ReadMe string
}
func Add ¶
func Add(ctx context.Context, workspace *resources.Workspace, module *resources.Module, input *actionservice.AddService, handler communicate.AnswerProvider) (*AddOutput, error)
type AgentUpdate ¶
type BuilderInstance ¶
func (*BuilderInstance) Create ¶
func (instance *BuilderInstance) Create(ctx context.Context, req *builderv0.CreateRequest, handler communicate.AnswerProvider) (*builderv0.CreateResponse, error)
func (*BuilderInstance) Load ¶
func (instance *BuilderInstance) Load(ctx context.Context, opts ...BuilderLoadOption) (*builderv0.LoadResponse, error)
func (*BuilderInstance) Sync ¶
func (instance *BuilderInstance) Sync(ctx context.Context, req *builderv0.SyncRequest, handler communicate.AnswerProvider) (*builderv0.SyncResponse, error)
type BuilderLoadOption ¶ added in v0.1.113
type BuilderLoadOption func(opt *BuilderLoadOptions)
type BuilderLoadOptions ¶ added in v0.1.113
type BuilderLoadOptions struct {
// contains filtered or unexported fields
}
type InformationStatus ¶
type InformationStatus struct { Load *runtimev0.LoadStatus Init *runtimev0.InitStatus Start *runtimev0.StartStatus DesiredState *runtimev0.DesiredState }
type Instance ¶
type Instance struct { *resources.Service Workspace *resources.Workspace Agent services.Agent Info *agentv0.AgentInformation Builder *BuilderInstance Runtime *RuntimeInstance ProcessInfo Capabilities []*agentv0.Capability }
func (*Instance) CheckCapabilities ¶
func (instance *Instance) CheckCapabilities(capability agentv0.Capability_Type) error
func (*Instance) LoadRuntime ¶
func (*Instance) WithWorkspace ¶
type ProcessInfo ¶
type ProcessInfo struct {
AgentPID int
}
type RuntimeInstance ¶
func (*RuntimeInstance) Load ¶
func (instance *RuntimeInstance) Load(ctx context.Context, env *basev0.Environment) (*runtimev0.LoadResponse, error)
Click to show internal directories.
Click to hide internal directories.