api

package
v0.0.0-...-6a882ce Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResourceID

func ResourceID(clusterName, name string) string

Types

type ReconcileStatus

type ReconcileStatus struct {
	SequenceID string             `json:"sequenceID"`
	Conditions []metav1.Condition `json:"conditions"`
}

type Resource

type Resource struct {
	Source            string                     `json:"source"`
	ClusterName       string                     `json:"clusterName"`
	ResourceID        string                     `json:"resourceID"`
	ResourceVersion   int64                      `json:"resourceVersion"`
	DeletionTimestamp time.Time                  `json:"deletionTimestamp"`
	Spec              *unstructured.Unstructured `json:"spec"`
	Status            *ResourceStatus            `json:"status"`
}

func NewResource

func NewResource(name, clusterName string, resourceVersion int64, objectJSON string) (*Resource, error)

func (*Resource) GetDeletionTimestamp

func (r *Resource) GetDeletionTimestamp() *metav1.Time

func (*Resource) GetResourceVersion

func (r *Resource) GetResourceVersion() string

func (*Resource) GetUID

func (r *Resource) GetUID() kubetypes.UID

type ResourceStatus

type ResourceStatus struct {
	ReconcileStatus *ReconcileStatus       `json:"reconcileStatus"`
	ContentStatus   map[string]interface{} `json:"contentStatus"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL