Documentation ¶
Index ¶
- func ConfirmOperation(promptInfo string) (bool, error)
- func ConvertV1ClusterToV2Cluster(v1Cluster *v1.Cluster) *v2.Cluster
- func DecodeCRDFromByte(data []byte, kind string) (interface{}, error)
- func DecodeCRDFromFile(filepath string, kind string) (interface{}, error)
- func DecodeCRDFromString(data string, kind string) (interface{}, error)
- func DecodeV1ClusterFromFile(filepath string) (*v1.Cluster, error)
- func NewK8sYamlDecoder(reader io.Reader) *yaml.YAMLToJSONDecoder
- func Retry(tryTimes int, trySleepTime time.Duration, action func() error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfirmOperation ¶
ConfirmOperation confirm whether to continue with the operation, typing yes will return true.
func DecodeCRDFromByte ¶
DecodeCRDFromByte decode custom resource definition from byte slice, if not found, return io.EOF error.
func DecodeCRDFromFile ¶
DecodeCRDFromFile decode custom resource definition from file, if not found, return io.EOF error.
func DecodeCRDFromString ¶
DecodeCRDFromString decode custom resource definition from string, if not found, return io.EOF error.
func NewK8sYamlDecoder ¶
func NewK8sYamlDecoder(reader io.Reader) *yaml.YAMLToJSONDecoder
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.