Documentation ¶
Index ¶
- Variables
- func CRDForBytes(data []byte, kind string) (out interface{}, err error)
- func Cluster(filepath string) (clusters []v1beta1.Cluster, err error)
- func Configs(filepath string) (configs []v1beta1.Config, err error)
- func GetClusterFromDataCompatV1(data []byte) (*v2.Cluster, error)
- func GetClusterFromFile(filepath string) (cluster *v2.Cluster, err error)
- func GetClusterFromName(clusterName string) (cluster *v2.Cluster, err error)
- func GetDefaultClusterName() (string, error)
- type ClusterFile
- func (c *ClusterFile) DecodeCluster(data []byte) error
- func (c *ClusterFile) DecodeConfigs(data []byte) error
- func (c *ClusterFile) DecodeRuntimeConfig(data []byte) error
- func (c *ClusterFile) GetCluster() *v2.Cluster
- func (c *ClusterFile) GetConfigs() []v2.Config
- func (c *ClusterFile) GetRuntimeConfig() runtime.Config
- func (c *ClusterFile) Process() (err error)
- type Interface
- type OptionFunc
- type PreProcessor
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrClusterFileNotExists = errors.New("the cluster file is not exist")
View Source
var ErrClusterNotExist = fmt.Errorf("no cluster exist")
View Source
var ErrTypeNotFound = errors.New("no corresponding type structure was found")
Functions ¶
func CRDForBytes ¶
func GetClusterFromName ¶
func GetDefaultClusterName ¶
Types ¶
type ClusterFile ¶
type ClusterFile struct {
// contains filtered or unexported fields
}
func (*ClusterFile) DecodeCluster ¶
func (c *ClusterFile) DecodeCluster(data []byte) error
func (*ClusterFile) DecodeConfigs ¶
func (c *ClusterFile) DecodeConfigs(data []byte) error
func (*ClusterFile) DecodeRuntimeConfig ¶
func (c *ClusterFile) DecodeRuntimeConfig(data []byte) error
func (*ClusterFile) GetCluster ¶
func (c *ClusterFile) GetCluster() *v2.Cluster
func (*ClusterFile) GetConfigs ¶
func (c *ClusterFile) GetConfigs() []v2.Config
func (*ClusterFile) GetRuntimeConfig ¶
func (c *ClusterFile) GetRuntimeConfig() runtime.Config
func (*ClusterFile) Process ¶
func (c *ClusterFile) Process() (err error)
type Interface ¶
type Interface interface { PreProcessor GetCluster() *v2.Cluster GetConfigs() []v2.Config GetRuntimeConfig() runtime.Config }
func NewClusterFile ¶
func NewClusterFile(path string, opts ...OptionFunc) Interface
type OptionFunc ¶
type OptionFunc func(*ClusterFile)
func WithCustomConfigFiles ¶
func WithCustomConfigFiles(files []string) OptionFunc
func WithCustomEnvs ¶
func WithCustomEnvs(envs []string) OptionFunc
func WithCustomRuntimeConfigFiles ¶
func WithCustomRuntimeConfigFiles(files []string) OptionFunc
func WithCustomSets ¶
func WithCustomSets(sets []string) OptionFunc
func WithCustomValues ¶
func WithCustomValues(valueFiles []string) OptionFunc
type PreProcessor ¶
type PreProcessor interface {
Process() error
}
Click to show internal directories.
Click to hide internal directories.