Documentation
¶
Index ¶
- type Option
- type Service
- func (s *Service) Add(name string, agent *agentmdl.Agent)
- func (s *Service) List() []*agentmdl.Agent
- func (s *Service) Load(ctx context.Context, nameOrLocation string) (*agentmdl.Agent, error)
- func (s *Service) LoadAgents(ctx context.Context, URL string) ([]*agentmdl.Agent, error)
- func (s *Service) Lookup(ctx context.Context, name string) (*agentmdl.Agent, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Service)
Option represents a configuration option for the agent service
func WithMetaService ¶
WithMetaService sets the meta service for the agent service
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service provides agent data access operations
func (*Service) LoadAgents ¶
LoadAgents loads an agents from the specified URL
Click to show internal directories.
Click to hide internal directories.