models

package
v0.0.0-...-2fb87e6 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Approval

type Approval struct {
	gorm.Model
	IsApproved  bool    `json:"is_approved"`
	TaskPod     TaskPod `json:"task_pod,omitempty"`
	TaskPodUUID string  `json:"task_pod_uuid"`
}

type Cluster

type Cluster struct {
	gorm.Model
	Name string
}

type TFOResource

type TFOResource struct {
	UUID      string `json:"uuid" gorm:"primaryKey"`
	CreatedBy string
	CreatedAt time.Time
	UpdatedBy string
	UpdatedAt time.Time
	DeletedBy string
	DeletedAt time.Time

	// NamespacedName comprises a resource name, with a mandatory namespace,
	// rendered as "<namespace>/<name>".
	Namespace string
	Name      string

	Cluster   Cluster
	ClusterID uint

	CurrentGeneration string
}

type TFOResourceSpec

type TFOResourceSpec struct {
	gorm.Model
	TFOResource     TFOResource
	TFOResourceUUID string `json:"tfo_resource_uuid"`
	Generation      string
	ResourceSpec    string
}

type TFOTaskLog

type TFOTaskLog struct {
	gorm.Model
	TaskPod         TaskPod     `json:"task_pod,omitempty"`
	TaskPodUUID     string      `json:"task_pod_uuid"`
	TFOResource     TFOResource `json:"tfo_resource,omitempty"`
	TFOResourceUUID string      `json:"tfo_resource_uuid"`
	Message         string      `json:"message"`
	LineNo          string      `json:"lineNo"`
}

type TaskPod

type TaskPod struct {
	UUID            string      `json:"uuid" gorm:"primaryKey"`
	TaskType        string      `json:"task_type"`
	Rerun           int         `json:"rerun"`
	Generation      string      `json:"generation"`
	TFOResource     TFOResource `json:"tfo_resource,omitempty"`
	TFOResourceUUID string      `json:"tfo_resource_uuid"`
}

Jump to

Keyboard shortcuts

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