Documentation ¶
Index ¶
- Constants
- func GetConsumer(consumerID string) (*v1.Consumer, error)
- func PutConsumer(c *v1.Consumer) error
- func PutResource(r *Resource) error
- func SetStatusResource(resourceID string, statusData []byte) error
- type ErrorNotFound
- type MessageMeta
- type ReconcileStatus
- type Resource
- type ResourceMessage
- type StatusMessage
Constants ¶
View Source
const ( // Reconciled condition tracks the state of the reconcile operation. // "True" indicates that the object has been successfully applied. // "False" indicates a non-transitive error prevents reconciliation from succeeding. StatusMessageReconciled = "Reconciled" // Deleted condition tracks the if deletion succeeded. // "True" indicates that the object has been successfully removed from the target. // "False" indicates that deletion is blocked or did not yet succeed. StatusMessageDeleted = "Deleted" )
View Source
const ConsumerTable = "Consumers"
View Source
const ResourceTable = "Resources"
Variables ¶
This section is empty.
Functions ¶
func PutConsumer ¶
func PutResource ¶
func SetStatusResource ¶
Types ¶
type ErrorNotFound ¶
type ErrorNotFound struct{}
func (*ErrorNotFound) Error ¶
func (e *ErrorNotFound) Error() string
type MessageMeta ¶
type ReconcileStatus ¶
type ReconcileStatus struct { // MAY when object exists/ // Object generation as observed on the target. // .metadata.generation ObservedGeneration int64 `json:"observedGeneration,omitempty"` // MAY when object exists. // RFC3339 Timestamp. // .metadata.creationTimestamp as observed on the target. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Kubernetes style status conditions, // describing the state of the object on the target. Conditions []metav1.Condition `json:"conditions,omitempty"` }
type Resource ¶
type Resource struct { Id string ConsumerId string ResourceGenerationID int64 Object unstructured.Unstructured Status StatusMessage }
func GetResource ¶
type ResourceMessage ¶
type ResourceMessage struct { MessageMeta `json:",inline"` Id string `json:"-"` ConsumerId string `json:"-"` // Kubernetes Manifest to apply on the target. Content *unstructured.Unstructured `json:"content"` }
type StatusMessage ¶
type StatusMessage struct { MessageMeta `json:",inline"` // agent status information. ReconcileStatus ReconcileStatus `json:"reconcileStatus"` // content status as observed on the target. ContentStatus map[string]interface{} `json:"contentStatus"` }
Click to show internal directories.
Click to hide internal directories.