types

package
v0.0.39 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// KsVersion is the latest release version
	KsVersion = "v3.1.0"
)

Variables

This section is empty.

Functions

func GetClusterConfiguration

func GetClusterConfiguration() schema.GroupVersionResource

GetClusterConfiguration returns the schema of ClusterConfiguration

func GetConfigMapSchema added in v0.0.12

func GetConfigMapSchema() schema.GroupVersionResource

GetConfigMapSchema returns the schema of ConfigMap

func GetDeploySchema

func GetDeploySchema() schema.GroupVersionResource

GetDeploySchema returns the schema of deploy

func GetDevOpsProjectSchema added in v0.0.21

func GetDevOpsProjectSchema() schema.GroupVersionResource

GetDevOpsProjectSchema returns the schema of DevOpsProject

func GetNamespaceSchema

func GetNamespaceSchema() schema.GroupVersionResource

GetNamespaceSchema returns the schema of namespaces

func GetObjectFromInterface added in v0.0.33

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

GetObjectFromInterface returns the Unstructured object from a interface

func GetObjectFromYaml added in v0.0.21

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

GetObjectFromYaml returns the Unstructured object from a YAML

func GetPipelineSchema

func GetPipelineSchema() schema.GroupVersionResource

GetPipelineSchema returns the schema of pipelines

func GetPodSchema added in v0.0.22

func GetPodSchema() schema.GroupVersionResource

GetPodSchema returns the schema of deploy

func GetS2iBuilderSchema added in v0.0.33

func GetS2iBuilderSchema() schema.GroupVersionResource

GetS2iBuilderSchema returns the schema of S2iBuilder

func GetS2iBuilderTemplateSchema added in v0.0.33

func GetS2iBuilderTemplateSchema() schema.GroupVersionResource

GetS2iBuilderTemplateSchema returns the schema of S2iBuilderTemplate

func GetSecretSchema added in v0.0.33

func GetSecretSchema() schema.GroupVersionResource

GetSecretSchema returns the schema of Secret

func GetServiceSchema added in v0.0.12

func GetServiceSchema() schema.GroupVersionResource

GetServiceSchema returns the schema of service

func GetStorageClassSchema added in v0.0.27

func GetStorageClassSchema() schema.GroupVersionResource

GetStorageClassSchema returns the schema of StorageClass

func GetUserSchema

func GetUserSchema() schema.GroupVersionResource

GetUserSchema returns the schema of users

func GetWorkspaceSchema added in v0.0.21

func GetWorkspaceSchema() schema.GroupVersionResource

GetWorkspaceSchema returns the schema of workspace

func GetWorkspaceTemplate added in v0.0.35

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 added in v0.0.17

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 added in v0.0.17

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