types

package
v0.0.59 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// KsVersion is the default release version of KuberSphere
	KsVersion = "v3.2.0"
	// K8sVersion is the default version of the Kubernetes
	K8sVersion = "v1.22.1"
)

Variables

This section is empty.

Functions

func GetClusterConfiguration

func GetClusterConfiguration() schema.GroupVersionResource

GetClusterConfiguration returns the schema of ClusterConfiguration

func GetConfigMapSchema

func GetConfigMapSchema() schema.GroupVersionResource

GetConfigMapSchema returns the schema of ConfigMap

func GetDeploySchema

func GetDeploySchema() schema.GroupVersionResource

GetDeploySchema returns the schema of deploy

func GetDevOpsProjectSchema

func GetDevOpsProjectSchema() schema.GroupVersionResource

GetDevOpsProjectSchema returns the schema of DevOpsProject

func GetNamespaceSchema

func GetNamespaceSchema() schema.GroupVersionResource

GetNamespaceSchema returns the schema of namespaces

func GetObjectFromInterface

func GetObjectFromInterface(raw interface{}) (obj *unstructured.Unstructured, err error)

GetObjectFromInterface returns the Unstructured object from a interface

func GetObjectFromYaml

func GetObjectFromYaml(yamlText string) (obj *unstructured.Unstructured, err error)

GetObjectFromYaml returns the Unstructured object from a YAML

func GetPipelineRunSchema

func GetPipelineRunSchema() schema.GroupVersionResource

GetPipelineRunSchema returns the schema of pipelineruns

func GetPipelineSchema

func GetPipelineSchema() schema.GroupVersionResource

GetPipelineSchema returns the schema of pipelines

func GetPodSchema

func GetPodSchema() schema.GroupVersionResource

GetPodSchema returns the schema of deploy

func GetS2iBuilderSchema

func GetS2iBuilderSchema() schema.GroupVersionResource

GetS2iBuilderSchema returns the schema of S2iBuilder

func GetS2iBuilderTemplateSchema

func GetS2iBuilderTemplateSchema() schema.GroupVersionResource

GetS2iBuilderTemplateSchema returns the schema of S2iBuilderTemplate

func GetSecretSchema

func GetSecretSchema() schema.GroupVersionResource

GetSecretSchema returns the schema of Secret

func GetServiceSchema

func GetServiceSchema() schema.GroupVersionResource

GetServiceSchema returns the schema of service

func GetStorageClassSchema

func GetStorageClassSchema() schema.GroupVersionResource

GetStorageClassSchema returns the schema of StorageClass

func GetUserSchema

func GetUserSchema() schema.GroupVersionResource

GetUserSchema returns the schema of users

func GetWorkspaceSchema

func GetWorkspaceSchema() schema.GroupVersionResource

GetWorkspaceSchema returns the schema of workspace

func GetWorkspaceTemplate

func GetWorkspaceTemplate() schema.GroupVersionResource

GetWorkspaceTemplate returns the schema of WorkspaceTemplate

Types

type DockerClient

type DockerClient struct {
	Image           string
	Token           string
	Registry        string
	PrivateRegistry string
}

DockerClient is a simple Docker client

func (*DockerClient) GetDigest

func (d *DockerClient) GetDigest(tag string) string

GetDigest returns the digest of the specific image tag

func (*DockerClient) GetDigestObj

func (d *DockerClient) GetDigestObj(tag string) (digest ImageDigest, err error)

GetDigestObj returns the digest object

func (*DockerClient) GetTags

func (d *DockerClient) GetTags() (tags *DockerTags, err error)

GetTags returns the tag list

func (*DockerClient) GetToken

func (d *DockerClient) GetToken() string

GetToken returns the token of target docker image provider

type DockerTags

type DockerTags struct {
	Name string
	Tags []string
}

DockerTags represents the docker tag list

type ImageDigest

type ImageDigest struct {
	Digest string
	Date   string
}

ImageDigest is the digest info of docker image

Jump to

Keyboard shortcuts

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