dto

package
v0.0.0-...-e2b8f05 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterRole

type ClusterRole struct {
	Group     string              `json:"group"`
	Version   string              `json:"version"`
	Kind      string              `json:"kind"`
	Name      string              `json:"name"`
	Namespace string              `json:"namespace"`
	Deleted   bool                `json:"deleted"`
	Rules     []rbacv1.PolicyRule `json:"rules"`
}

func (*ClusterRole) GetDeleted

func (s *ClusterRole) GetDeleted() bool

func (*ClusterRole) GetGroup

func (s *ClusterRole) GetGroup() string

func (*ClusterRole) GetGroupVersionKind

func (s *ClusterRole) GetGroupVersionKind() string

func (*ClusterRole) GetKind

func (s *ClusterRole) GetKind() string

func (*ClusterRole) GetName

func (s *ClusterRole) GetName() string

func (*ClusterRole) GetNamespace

func (s *ClusterRole) GetNamespace() string

func (*ClusterRole) GetVersion

func (s *ClusterRole) GetVersion() string

func (*ClusterRole) SetDeleted

func (s *ClusterRole) SetDeleted(deleted bool)

type ConfigMap

type ConfigMap struct {
	Group     string            `json:"group"`
	Version   string            `json:"version"`
	Kind      string            `json:"kind"`
	Name      string            `json:"name"`
	Namespace string            `json:"namespace"`
	Data      map[string]string `json:"data"`
	Deleted   bool              `json:"deleted"`
}

func (*ConfigMap) GetDeleted

func (c *ConfigMap) GetDeleted() bool

func (*ConfigMap) GetGroup

func (c *ConfigMap) GetGroup() string

func (*ConfigMap) GetGroupVersionKind

func (c *ConfigMap) GetGroupVersionKind() string

func (*ConfigMap) GetKind

func (c *ConfigMap) GetKind() string

func (*ConfigMap) GetName

func (c *ConfigMap) GetName() string

func (*ConfigMap) GetNamespace

func (c *ConfigMap) GetNamespace() string

func (*ConfigMap) GetVersion

func (c *ConfigMap) GetVersion() string

func (*ConfigMap) SetDeleted

func (c *ConfigMap) SetDeleted(deleted bool)

type Container

type Container struct {
	Name   string            `json:"name"`
	Image  string            `json:"image"`
	Env    map[string]string `json:"env"`
	Status ContainerStatus   `json:"status"`
}

type ContainerStatus

type ContainerStatus struct {
	Status  string `json:"status"`
	Message string `json:"message"`
	Running bool   `json:"running"`
}

type CronJob

type CronJob struct {
	Group     string        `json:"group"`
	Version   string        `json:"version"`
	Kind      string        `json:"kind"`
	Name      string        `json:"name"`
	Namespace string        `json:"namespace"`
	Pods      []Pod         `json:"pods"`
	Schedule  string        `json:"schedule"`
	Status    StatusCronJob `json:"status"`
	Suspend   bool          `json:"suspend"`
	Deleted   bool          `json:"deleted"`
}

func (*CronJob) GetDeleted

func (c *CronJob) GetDeleted() bool

func (*CronJob) GetGroup

func (c *CronJob) GetGroup() string

func (*CronJob) GetGroupVersionKind

func (c *CronJob) GetGroupVersionKind() string

func (*CronJob) GetKind

func (c *CronJob) GetKind() string

func (*CronJob) GetName

func (c *CronJob) GetName() string

func (*CronJob) GetNamespace

func (c *CronJob) GetNamespace() string

func (*CronJob) GetVersion

func (c *CronJob) GetVersion() string

func (*CronJob) SetDeleted

func (c *CronJob) SetDeleted(deleted bool)

type DaemonSet

type DaemonSet struct {
	Group     string `json:"group"`
	Version   string `json:"version"`
	Kind      string `json:"kind"`
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
	Pods      []Pod  `json:"pods"`
	Status    string `json:"status"`
	Deleted   bool   `json:"deleted"`
}

func (*DaemonSet) GetDeleted

func (d *DaemonSet) GetDeleted() bool

func (*DaemonSet) GetGroup

func (d *DaemonSet) GetGroup() string

func (*DaemonSet) GetGroupVersionKind

func (d *DaemonSet) GetGroupVersionKind() string

func (*DaemonSet) GetKind

func (d *DaemonSet) GetKind() string

func (*DaemonSet) GetName

func (d *DaemonSet) GetName() string

func (*DaemonSet) GetNamespace

func (d *DaemonSet) GetNamespace() string

func (*DaemonSet) GetVersion

func (d *DaemonSet) GetVersion() string

func (*DaemonSet) SetDeleted

func (d *DaemonSet) SetDeleted(deleted bool)

type DeleteResource

type DeleteResource struct {
	Group     string `json:"group"`
	Version   string `json:"version"`
	Kind      string `json:"kind"`
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
}

func (*DeleteResource) GetDeleted

func (d *DeleteResource) GetDeleted() bool

func (*DeleteResource) GetGroup

func (d *DeleteResource) GetGroup() string

func (*DeleteResource) GetGroupVersionKind

func (d *DeleteResource) GetGroupVersionKind() string

func (*DeleteResource) GetKind

func (d *DeleteResource) GetKind() string

func (*DeleteResource) GetName

func (d *DeleteResource) GetName() string

func (*DeleteResource) GetNamespace

func (d *DeleteResource) GetNamespace() string

func (*DeleteResource) GetVersion

func (d *DeleteResource) GetVersion() string

func (*DeleteResource) SetDeleted

func (d *DeleteResource) SetDeleted(_ bool)

type Deployment

type Deployment struct {
	Group     string `json:"group"`
	Version   string `json:"version"`
	Kind      string `json:"kind"`
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
	Replicas  int    `json:"replicas"`
	Pods      []Pod  `json:"pods"`
	Status    string `json:"status"`
	Deleted   bool   `json:"deleted"`
}

func (*Deployment) GetDeleted

func (d *Deployment) GetDeleted() bool

func (*Deployment) GetGroup

func (d *Deployment) GetGroup() string

func (*Deployment) GetGroupVersionKind

func (d *Deployment) GetGroupVersionKind() string

func (*Deployment) GetKind

func (d *Deployment) GetKind() string

func (*Deployment) GetName

func (d *Deployment) GetName() string

func (*Deployment) GetNamespace

func (d *Deployment) GetNamespace() string

func (*Deployment) GetVersion

func (d *Deployment) GetVersion() string

func (*Deployment) SetDeleted

func (d *Deployment) SetDeleted(deleted bool)

type Error

type Error struct {
	Message     string `json:"message"`
	Description string `json:"description"`
}

func NewError

func NewError(message, description string) Error

type ExternalIP

type ExternalIP struct {
	IP       string `json:"ip"`
	Hostname string `json:"hostname"`
}

type IPBlock

type IPBlock struct {
	CIDR   string   `json:"cidr"`
	Except []string `json:"except"`
}

type Job

type Job struct {
	Group          string `json:"group"`
	Version        string `json:"version"`
	Kind           string `json:"kind"`
	Name           string `json:"name"`
	Namespace      string `json:"namespace"`
	Pods           []Pod  `json:"pods"`
	CompletionTime string `json:"completionTime"`
	StartTime      string `json:"startTime"`
}

func (*Job) GetCompletionTime

func (c *Job) GetCompletionTime() string

func (*Job) GetGroup

func (c *Job) GetGroup() string

func (*Job) GetGroupVersionKind

func (c *Job) GetGroupVersionKind() string

func (*Job) GetKind

func (c *Job) GetKind() string

func (*Job) GetName

func (c *Job) GetName() string

func (*Job) GetNamespace

func (c *Job) GetNamespace() string

func (*Job) GetStartTime

func (c *Job) GetStartTime() string

func (*Job) GetVersion

func (c *Job) GetVersion() string

type KeyValue

type KeyValue struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type Module

type Module struct {
	Name                 string               `json:"name"`
	Namespace            string               `json:"namespace"`
	TargetNamespace      string               `json:"targetNamespace"`
	Template             Template             `json:"template"`
	Version              string               `json:"version"`
	Values               interface{}          `json:"values"`
	Status               string               `json:"status"`
	IconURL              string               `json:"iconURL"`
	ReconciliationStatus ReconciliationStatus `json:"reconciliationStatus"`
}

type NetworkPolicy

type NetworkPolicy struct {
	Group     string                     `json:"group"`
	Version   string                     `json:"version"`
	Kind      string                     `json:"kind"`
	Name      string                     `json:"name"`
	Namespace string                     `json:"namespace"`
	Pods      []Pod                      `json:"pods"`
	Ingress   []NetworkPolicyIngressRule `json:"ingress"`
	Egress    []NetworkPolicyEgressRule  `json:"egress"`
}

func (*NetworkPolicy) GetEgress

func (n *NetworkPolicy) GetEgress() []NetworkPolicyEgressRule

func (*NetworkPolicy) GetGroup

func (n *NetworkPolicy) GetGroup() string

func (*NetworkPolicy) GetGroupVersionKind

func (n *NetworkPolicy) GetGroupVersionKind() string

func (*NetworkPolicy) GetIngress

func (n *NetworkPolicy) GetIngress() []NetworkPolicyIngressRule

func (*NetworkPolicy) GetKind

func (n *NetworkPolicy) GetKind() string

func (*NetworkPolicy) GetName

func (n *NetworkPolicy) GetName() string

func (*NetworkPolicy) GetNamespace

func (n *NetworkPolicy) GetNamespace() string

func (*NetworkPolicy) GetVersion

func (n *NetworkPolicy) GetVersion() string

type NetworkPolicyEgressRule

type NetworkPolicyEgressRule struct {
	Ports []NetworkPolicyPort `json:"ports,"`
	To    []NetworkPolicyPeer `json:"to"`
}

type NetworkPolicyIngressRule

type NetworkPolicyIngressRule struct {
	Ports []NetworkPolicyPort `json:"ports"`
	From  []NetworkPolicyPeer `json:"from"`
}

type NetworkPolicyPeer

type NetworkPolicyPeer struct {
	IPBlock *IPBlock `json:"ipBlock"`
}

type NetworkPolicyPort

type NetworkPolicyPort struct {
	Protocol string             `json:"protocol"`
	Port     intstr.IntOrString `json:"port"`
	EndPort  int32              `json:"endPort"`
}

type Node

type Node struct {
	Name string `json:"name"`

	Node *apiv1.Node `json:"node"`
	Pods []NodePod   `json:"pods"`

	AvailableResources NodeResources `json:"available"`
	RequestedResources NodeResources `json:"requested"`
}

type NodePod

type NodePod struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
	Health    bool   `json:"health"`
	CPU       int64  `json:"cpu"`
	Memory    int64  `json:"memory"`
}

type NodeResources

type NodeResources struct {
	CPU      int64 `json:"cpu"`
	Memory   int64 `json:"memory"`
	PodCount int64 `json:"pod_count"`
}

type Other

type Other struct {
	Group     string `json:"group"`
	Version   string `json:"version"`
	Kind      string `json:"kind"`
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
	Status    string `json:"status"`
	Deleted   bool   `json:"deleted"`
}

func (*Other) GetDeleted

func (s *Other) GetDeleted() bool

func (*Other) GetGroup

func (s *Other) GetGroup() string

func (*Other) GetGroupVersionKind

func (s *Other) GetGroupVersionKind() string

func (*Other) GetKind

func (s *Other) GetKind() string

func (*Other) GetName

func (s *Other) GetName() string

func (*Other) GetNamespace

func (s *Other) GetNamespace() string

func (*Other) GetVersion

func (s *Other) GetVersion() string

func (*Other) SetDeleted

func (s *Other) SetDeleted(deleted bool)

type PersistentVolume

type PersistentVolume struct {
	Group                 string                           `json:"group"`
	Version               string                           `json:"version"`
	Kind                  string                           `json:"kind"`
	Name                  string                           `json:"name"`
	Namespace             string                           `json:"namespace"`
	AccessModes           []v1.PersistentVolumeAccessMode  `json:"accessmodes"`
	Capacity              string                           `json:"capacity"`
	PersistentVolumeClaim string                           `json:"persistentvolumeclaim"`
	StorageClass          string                           `json:"storageclass"`
	Status                v1.PersistentVolumeStatus        `json:"status"`
	ReclaimPolicy         v1.PersistentVolumeReclaimPolicy `json:"reclaimpolicy"`
	Deleted               bool                             `json:"deleted"`
}

func (*PersistentVolume) GetCapacity

func (p *PersistentVolume) GetCapacity() string

func (*PersistentVolume) GetDeleted

func (p *PersistentVolume) GetDeleted() bool

func (*PersistentVolume) GetGroup

func (p *PersistentVolume) GetGroup() string

func (*PersistentVolume) GetGroupVersionKind

func (p *PersistentVolume) GetGroupVersionKind() string

func (*PersistentVolume) GetKind

func (p *PersistentVolume) GetKind() string

func (*PersistentVolume) GetName

func (p *PersistentVolume) GetName() string

func (*PersistentVolume) GetNamespace

func (p *PersistentVolume) GetNamespace() string

func (*PersistentVolume) GetPersistentVolumeClaim

func (p *PersistentVolume) GetPersistentVolumeClaim() string

func (*PersistentVolume) GetStatus

func (*PersistentVolume) GetStorageClass

func (p *PersistentVolume) GetStorageClass() string

func (*PersistentVolume) GetVersion

func (p *PersistentVolume) GetVersion() string

func (*PersistentVolume) SetDeleted

func (p *PersistentVolume) SetDeleted(deleted bool)

type PersistentVolumeClaim

type PersistentVolumeClaim struct {
	Group       string                          `json:"group"`
	Version     string                          `json:"version"`
	Kind        string                          `json:"kind"`
	Name        string                          `json:"name"`
	Namespace   string                          `json:"namespace"`
	AccessModes []v1.PersistentVolumeAccessMode `json:"accessmodes"`
	Size        string                          `json:"size"`
	Deleted     bool                            `json:"deleted"`
}

func (*PersistentVolumeClaim) GetDeleted

func (p *PersistentVolumeClaim) GetDeleted() bool

func (*PersistentVolumeClaim) GetGroup

func (p *PersistentVolumeClaim) GetGroup() string

func (*PersistentVolumeClaim) GetGroupVersionKind

func (p *PersistentVolumeClaim) GetGroupVersionKind() string

func (*PersistentVolumeClaim) GetKind

func (p *PersistentVolumeClaim) GetKind() string

func (*PersistentVolumeClaim) GetName

func (p *PersistentVolumeClaim) GetName() string

func (*PersistentVolumeClaim) GetNamespace

func (p *PersistentVolumeClaim) GetNamespace() string

func (*PersistentVolumeClaim) GetVersion

func (p *PersistentVolumeClaim) GetVersion() string

func (*PersistentVolumeClaim) SetDeleted

func (p *PersistentVolumeClaim) SetDeleted(deleted bool)

type Pod

type Pod struct {
	Group          string       `json:"group"`
	Version        string       `json:"version"`
	Kind           string       `json:"kind"`
	Name           string       `json:"name"`
	Namespace      string       `json:"namespace"`
	InitContainers []Container  `json:"initContainers"`
	Containers     []Container  `json:"containers"`
	Node           string       `json:"node"`
	PodPhase       string       `json:"podPhase"`
	Status         bool         `json:"status"`
	Started        *metav1.Time `json:"started"`
	Deleted        bool         `json:"deleted"`
}

func (*Pod) GetDeleted

func (p *Pod) GetDeleted() bool

func (*Pod) GetGroup

func (p *Pod) GetGroup() string

func (*Pod) GetGroupVersionKind

func (p *Pod) GetGroupVersionKind() string

func (*Pod) GetKind

func (p *Pod) GetKind() string

func (*Pod) GetName

func (p *Pod) GetName() string

func (*Pod) GetNamespace

func (p *Pod) GetNamespace() string

func (*Pod) GetVersion

func (p *Pod) GetVersion() string

func (*Pod) SetDeleted

func (p *Pod) SetDeleted(deleted bool)

type ReconciliationStatus

type ReconciliationStatus struct {
	Status ReconciliationStatusState `json:"status,omitempty"`
	Reason string                    `json:"reason,omitempty"`
	Errors []string                  `json:"errors,omitempty"`
}

ReconciliationStatus represents the status of the reconciliation process.

type ReconciliationStatusState

type ReconciliationStatusState string
const (
	Unknown   ReconciliationStatusState = "unknown"
	Succeeded ReconciliationStatusState = "succeeded"
	Failed    ReconciliationStatusState = "failed"
)

type Resource

type Resource interface {
	GetGroupVersionKind() string
	GetGroup() string
	GetVersion() string
	GetKind() string
	GetName() string
	GetNamespace() string
	GetDeleted() bool
	SetDeleted(bool)
}

type Response

type Response struct {
	Message string `json:"message"`
}

func NewResponse

func NewResponse(message string) Response

type Role

type Role struct {
	Group     string              `json:"group"`
	Version   string              `json:"version"`
	Kind      string              `json:"kind"`
	Name      string              `json:"name"`
	Namespace string              `json:"namespace"`
	Status    string              `json:"status"`
	Deleted   bool                `json:"deleted"`
	Rules     []rbacv1.PolicyRule `json:"rules"`
}

func (*Role) GetDeleted

func (s *Role) GetDeleted() bool

func (*Role) GetGroup

func (s *Role) GetGroup() string

func (*Role) GetGroupVersionKind

func (s *Role) GetGroupVersionKind() string

func (*Role) GetKind

func (s *Role) GetKind() string

func (*Role) GetName

func (s *Role) GetName() string

func (*Role) GetNamespace

func (s *Role) GetNamespace() string

func (*Role) GetVersion

func (s *Role) GetVersion() string

func (*Role) SetDeleted

func (s *Role) SetDeleted(deleted bool)

type Secret

type Secret struct {
	Group     string   `json:"group"`
	Version   string   `json:"version"`
	Kind      string   `json:"kind"`
	Name      string   `json:"name"`
	Namespace string   `json:"namespace"`
	Type      string   `json:"type"`
	DataKeys  []string `json:"dataKeys"`
	Deleted   bool     `json:"deleted"`
}

func (*Secret) GetDataKeys

func (s *Secret) GetDataKeys() []string

func (*Secret) GetDeleted

func (s *Secret) GetDeleted() bool

func (*Secret) GetGroup

func (s *Secret) GetGroup() string

func (*Secret) GetGroupVersionKind

func (s *Secret) GetGroupVersionKind() string

func (*Secret) GetKind

func (s *Secret) GetKind() string

func (*Secret) GetName

func (s *Secret) GetName() string

func (*Secret) GetNamespace

func (s *Secret) GetNamespace() string

func (*Secret) GetType

func (s *Secret) GetType() string

func (*Secret) GetVersion

func (s *Secret) GetVersion() string

func (*Secret) SetDeleted

func (s *Secret) SetDeleted(deleted bool)

type Service

type Service struct {
	Group       string           `json:"group"`
	Version     string           `json:"version"`
	Kind        string           `json:"kind"`
	Name        string           `json:"name"`
	Namespace   string           `json:"namespace"`
	Type        string           `json:"serviceType"`
	ExternalIPs []*ExternalIP    `json:"externalIPs"`
	Ports       []v1.ServicePort `json:"ports"`
	Deleted     bool             `json:"deleted"`
}

func (*Service) GetDeleted

func (s *Service) GetDeleted() bool

func (*Service) GetGroup

func (s *Service) GetGroup() string

func (*Service) GetGroupVersionKind

func (s *Service) GetGroupVersionKind() string

func (*Service) GetKind

func (s *Service) GetKind() string

func (*Service) GetName

func (s *Service) GetName() string

func (*Service) GetNamespace

func (s *Service) GetNamespace() string

func (*Service) GetVersion

func (s *Service) GetVersion() string

func (*Service) SetDeleted

func (s *Service) SetDeleted(deleted bool)

type StatefulSet

type StatefulSet struct {
	Group     string `json:"group"`
	Version   string `json:"version"`
	Kind      string `json:"kind"`
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
	Replicas  int    `json:"replicas"`
	Pods      []Pod  `json:"pods"`
	Status    string `json:"status"`
	Deleted   bool   `json:"deleted"`
}

func (*StatefulSet) GetDeleted

func (s *StatefulSet) GetDeleted() bool

func (*StatefulSet) GetGroup

func (s *StatefulSet) GetGroup() string

func (*StatefulSet) GetGroupVersionKind

func (s *StatefulSet) GetGroupVersionKind() string

func (*StatefulSet) GetKind

func (s *StatefulSet) GetKind() string

func (*StatefulSet) GetName

func (s *StatefulSet) GetName() string

func (*StatefulSet) GetNamespace

func (s *StatefulSet) GetNamespace() string

func (*StatefulSet) GetVersion

func (s *StatefulSet) GetVersion() string

func (*StatefulSet) SetDeleted

func (s *StatefulSet) SetDeleted(deleted bool)

type StatusCronJob

type StatusCronJob struct {
	LastScheduleTime   *metav1.Time `json:"lastScheduleTime"`
	LastSuccessfulTime *metav1.Time `json:"lastSuccessfulTime"`
}

func (*StatusCronJob) GetLastScheduleTime

func (s *StatusCronJob) GetLastScheduleTime() string

func (*StatusCronJob) GetLastSuccessfulTime

func (s *StatusCronJob) GetLastSuccessfulTime() string

type Template

type Template struct {
	URL             string `json:"repo" binding:"required"`
	Path            string `json:"path" binding:"required"`
	Version         string `json:"version"`
	ResolvedVersion string `json:"resolvedVersion"`
	SourceType      string `json:"sourceType"`
}

type TemplateStore

type TemplateStore struct {
	Name        string   `json:"name" binding:"required"`
	IconURL     string   `json:"iconURL"`
	TemplateRef Template `json:"ref"`
}

type TemplatesResponse

type TemplatesResponse struct {
	Current string `json:"current"`
	New     string `json:"new"`
}

Jump to

Keyboard shortcuts

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