Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Settings = &settings.Settings
Application settings.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
LibClient
}
Client.
type Pool ¶
type Pool struct {
Client
// contains filtered or unexported fields
}
Policy agent task pool.
var Agent Pool
Pool (singleton).
func (*Pool) Shutdown ¶
func (r *Pool) Shutdown()
Shutdown the pool. Terminate workers and stop processing result queue.
type Task ¶
type Task struct {
// Path (endpoint).
Path string
// VM reference.
Ref refapi.Ref
// Revision number of the VM being validated.
Revision int64
// Context.
Context context.Context
// Workload builder.
Workload func(string) (interface{}, error)
// Task result channel.
Result chan *Task
// Reported policy version.
Version int
// Reported concerns.
Concerns []model.Concern
// Reported error.
Error error
// contains filtered or unexported fields
}
Policy agent task.
type ValidationError ¶
type ValidationError struct {
Errors []string
}
Error reported by the service.
func (*ValidationError) Error ¶
func (r *ValidationError) Error() string
Click to show internal directories.
Click to hide internal directories.