Documentation
¶
Overview ¶
Package model provides domain models for the opampcommander application.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Condition ¶
type Condition struct {
// Type is the type of the condition.
Type ConditionType
// LastTransitionTime is the last time the condition transitioned.
LastTransitionTime time.Time
// Status is the status of the condition.
Status ConditionStatus
// Reason is the identifier of the user or system that triggered the condition.
Reason string
// Message is a human readable message indicating details about the condition.
Message string
}
Condition represents a condition of a resource.
type ConditionStatus ¶
type ConditionStatus string
ConditionStatus represents the status of a condition.
const ( // ConditionStatusTrue represents a true condition status. ConditionStatusTrue ConditionStatus = "True" // ConditionStatusFalse represents a false condition status. ConditionStatusFalse ConditionStatus = "False" // ConditionStatusUnknown represents an unknown condition status. ConditionStatusUnknown ConditionStatus = "Unknown" )
type ConditionType ¶
type ConditionType string
ConditionType represents the type of a condition.
const ( // ConditionTypeCreated represents the condition when the resource was created. ConditionTypeCreated ConditionType = "Created" // ConditionTypeUpdated represents the condition when the resource was updated. ConditionTypeUpdated ConditionType = "Updated" // ConditionTypeDeleted represents the condition when the resource was deleted. ConditionTypeDeleted ConditionType = "Deleted" // ConditionTypeAlive represents the condition when the server is alive. ConditionTypeAlive ConditionType = "Alive" // ConditionTypeRemoteConfigApplied represents whether the agent group's declared // remote config could be resolved and applied to its matching agents. It is set to // True on a successful resolve and False (with the error in Message) when the config // is invalid or a referenced resource cannot be fetched, so failures surface through // the API instead of only the server log. ConditionTypeRemoteConfigApplied ConditionType = "RemoteConfigApplied" )
type GetOptions ¶
type GetOptions struct {
IncludeDeleted bool
}
GetOptions is a struct that holds options for getting a single resource.
type ListOptions ¶
type ListOptions struct {
Limit int64
Continue string
IncludeDeleted bool
// ConnectedOnly, when true, restricts an agent listing to agents that are
// currently considered connected. "Connected" here mirrors the per-agent
// Connected field exactly (Status.Connected is set AND the agent reported
// within the heartbeat-staleness window), so a filtered list and the
// connected badge/count never disagree. It is a no-op for resources that
// have no connection state.
ConnectedOnly bool
// IdentifyingAttributes, when non-empty, restricts an agent listing to agents
// whose identifying attributes match every key=value pair exactly (an AND of
// equality conditions, mirroring agent-group selector semantics). It is a
// no-op for resources that have no identifying attributes.
IdentifyingAttributes map[string]string
// NonIdentifyingAttributes, when non-empty, restricts an agent listing to
// agents whose non-identifying attributes match every key=value pair exactly
// (an AND of equality conditions). It is combined with IdentifyingAttributes
// via AND, and is a no-op for resources that have no non-identifying attributes.
NonIdentifyingAttributes map[string]string
}
ListOptions is a struct that holds options for listing resources.
type ListResponse ¶
ListResponse is a generic struct that represents a paginated response for listing resources.
Click to show internal directories.
Click to hide internal directories.