Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResourceState ¶
type ResourceState string
const ( Untracked ResourceState = "untracked" Running ResourceState = "running" Failed ResourceState = "failed" Completed ResourceState = "completed" )
type TFOResource ¶
type TFOResource struct { UUID string `json:"uuid" gorm:"primaryKey"` CreatedBy string `json:"created_by"` CreatedAt time.Time `json:"created_at"` UpdatedBy string `json:"updated_by"` UpdatedAt time.Time `json:"updated_at"` DeletedBy string `json:"deleted_by"` DeletedAt gorm.DeletedAt `gorm:"index" json:"deleted_at"` Namespace string `json:"namespace"` Name string `json:"name"` CurrentGeneration string `json:"current_generation"` CurrentState ResourceState `json:"current_state"` // foreign key to a cluster Cluster Cluster `json:"cluster,omitempty"` ClusterID uint `json:"cluster_id"` }
type TFOResourceSpec ¶
type TFOResourceSpec struct { gorm.Model TFOResource TFOResource `json:"tfo_resource,omitempty"` TFOResourceUUID string `json:"tfo_resource_uuid"` Generation string `json:"generation"` ResourceSpec string `json:"resource_spec"` TaskToken string `json:"task_token"` Annotations string `json:"annotations"` Labels string `json:"labels"` }
type TFOTaskLog ¶
type TaskPod ¶
type TaskPod struct { UUID string `json:"uuid" gorm:"primaryKey"` TaskType string `json:"task_type"` Rerun int `json:"rerun"` Generation string `json:"generation"` InClusterGeneration string `json:"in_cluster_generation"` TFOResource TFOResource `json:"tfo_resource,omitempty"` TFOResourceUUID string `json:"tfo_resource_uuid"` }
Click to show internal directories.
Click to hide internal directories.