common

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddonGVR

func AddonGVR() schema.GroupVersionResource

AddonGVR returns the schema representation of the addon resource

func CRDGVR

CRDGVR returns the schema representation for customresourcedefinitions

func ContainsString

func ContainsString(slice []string, s string) bool

ContainsString helper function to check string in a slice of strings.

func GetCurretTimestamp added in v0.1.0

func GetCurretTimestamp() int64

GetCurretTimestamp -- get current timestamp in millisecond

func IsExpired added in v0.1.0

func IsExpired(startTime int64, ttlTime int64) bool

IsExpired --- check if reached ttl time

func RemoveString

func RemoveString(slice []string, s string) (result []string)

RemoveString helper function to remove a string in a slice of strings.

func SecretGVR

func SecretGVR() schema.GroupVersionResource

SecretGVR returns the schema representation of the secret resource

func WorkflowGVR

func WorkflowGVR() schema.GroupVersionResource

WorkflowGVR returns the schema representation of the workflow resource

func WorkflowType

func WorkflowType() *unstructured.Unstructured

WorkflowType return an unstructured workflow type object

Types

type Validator

type Validator interface {
	Validate() (bool, error)
}

Validator is a common interface for validators

Jump to

Keyboard shortcuts

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