api

package
v0.0.0-...-4dc359f Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusOK  = "ok"
	GroupName = "devops.kubesphere.io"
)

Variables

This section is empty.

Functions

func DefaultCompareFunc

func DefaultCompareFunc(left runtime.Object, right runtime.Object, field query.Field) bool

func DefaultFilterFunc

func DefaultFilterFunc(obj runtime.Object, filter query.Filter) bool

func NoTransformFunc

func NoTransformFunc(obj runtime.Object) runtime.Object

Types

type ClientType

type ClientType string

type GitCredential

type GitCredential struct {
	RemoteUrl string                  `json:"remoteUrl" description:"git server url"`
	SecretRef *corev1.SecretReference `json:"secretRef,omitempty" description:"auth secret reference"`
}

type ListResult

type ListResult struct {
	Items      []interface{} `json:"items"`
	TotalItems int           `json:"totalItems"`
}

func FromKSListResult

func FromKSListResult(result *api.ListResult) *ListResult

func NewListResult

func NewListResult(items []interface{}, total int) *ListResult

NewListResult creates a ListResult for the given items and total.

type NamespacedResourceQuota

type NamespacedResourceQuota struct {
	Namespace string `json:"namespace,omitempty"`

	Data struct {
		corev1.ResourceQuotaStatus

		// quota left status, do the math on the side, cause it's
		// a lot easier with go-client library
		Left corev1.ResourceList `json:"left,omitempty"`
	} `json:"data,omitempty"`
}

type RegistryCredential

type RegistryCredential struct {
	Username   string `json:"username" description:"username"`
	Password   string `json:"password" description:"password"`
	ServerHost string `json:"serverhost" description:"registry server host"`
}

type ResourceQuota

type ResourceQuota struct {
	Namespace string                     `json:"namespace" description:"namespace"`
	Data      corev1.ResourceQuotaStatus `json:"data" description:"resource quota status"`
}

type Router

type Router struct {
	RouterType  string            `json:"type"`
	Annotations map[string]string `json:"annotations"`
}

type Workloads

type Workloads struct {
	Namespace string                 `json:"namespace" description:"the name of the namespace"`
	Count     map[string]int         `json:"data" description:"the number of unhealthy workloads"`
	Items     map[string]interface{} `json:"items,omitempty" description:"unhealthy workloads"`
}

Directories

Path Synopsis
v1alpha1
Package v1alpha1 contains API Schema definitions for the devops v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/kubesphere/ks-devops/api +k8s:defaulter-gen=TypeMeta +groupName=devops.kubesphere.io
Package v1alpha1 contains API Schema definitions for the devops v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/kubesphere/ks-devops/api +k8s:defaulter-gen=TypeMeta +groupName=devops.kubesphere.io
v1alpha3
Package v1alpha3 contains API Schema definitions for the devops.kubesphere.io v1alpha3 API group +kubebuilder:object:generate=true +groupName=devops.kubesphere.io
Package v1alpha3 contains API Schema definitions for the devops.kubesphere.io v1alpha3 API group +kubebuilder:object:generate=true +groupName=devops.kubesphere.io
gitops
v1alpha1
Package v1alpha1 contains API Schema definitions for the gitops v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=kubesphere.io/gitops/api +k8s:defaulter-gen=TypeMeta +groupName=gitops.kubesphere.io
Package v1alpha1 contains API Schema definitions for the gitops v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=kubesphere.io/gitops/api +k8s:defaulter-gen=TypeMeta +groupName=gitops.kubesphere.io

Jump to

Keyboard shortcuts

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