Documentation
¶
Index ¶
- func Add(ctx context.Context, workspace *resources.Workspace, module *resources.Module, ...) error
- func ClearAgents()
- 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 AgentUpdate
- type BuilderInstance
- func (instance *BuilderInstance) Create(ctx context.Context, req *builderv0.CreateRequest) (*builderv0.CreateResponse, error)
- func (instance *BuilderInstance) Load(ctx context.Context) (*builderv0.LoadResponse, error)
- func (instance *BuilderInstance) LoadForCreate(ctx context.Context) (*builderv0.LoadResponse, error)
- func (instance *BuilderInstance) Sync(ctx context.Context, req *builderv0.SyncRequest) (*builderv0.SyncResponse, error)
- 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 Add ¶
func Add(ctx context.Context, workspace *resources.Workspace, module *resources.Module, input *actionservice.AddService) error
func ClearAgents ¶
func ClearAgents()
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 AgentUpdate ¶
type BuilderInstance ¶
func (*BuilderInstance) Create ¶
func (instance *BuilderInstance) Create(ctx context.Context, req *builderv0.CreateRequest) (*builderv0.CreateResponse, error)
func (*BuilderInstance) Load ¶
func (instance *BuilderInstance) Load(ctx context.Context) (*builderv0.LoadResponse, error)
func (*BuilderInstance) LoadForCreate ¶
func (instance *BuilderInstance) LoadForCreate(ctx context.Context) (*builderv0.LoadResponse, error)
func (*BuilderInstance) Sync ¶
func (instance *BuilderInstance) Sync(ctx context.Context, req *builderv0.SyncRequest) (*builderv0.SyncResponse, error)
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.