Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentClient ¶
type AgentClient interface {
CreateMap(process string, refs []SegmentRef, args ...string) (*cs.Segment, error)
CreateLink(process string, linkHash *types.Bytes32, action string, refs []SegmentRef, args ...string) (*cs.Segment, error)
FindSegments(filter *store.SegmentFilter) (cs.SegmentSlice, error)
GetInfo() (*agent.Info, error)
GetMapIds(filter *store.MapFilter) ([]string, error)
GetProcess(name string) (*agent.Process, error)
GetProcesses() (agent.Processes, error)
GetSegment(process string, linkHash *types.Bytes32) (*cs.Segment, error)
URL() string
}
AgentClient is the interface for an agent client It can be used to access an agent's http endpoints
func NewAgentClient ¶
func NewAgentClient(agentURL string) (AgentClient, error)
NewAgentClient returns an initialized AgentClient If the provided url is empty, it will use a default one
Click to show internal directories.
Click to hide internal directories.