Documentation ¶
Index ¶
- func CreateSDSApplication(application sdsapi.SDSApplication, namespace string, config *rest.Config) (bool, error)
- func CreateSDSCluster(cluster sdsapi.SDSCluster, namespace string, config *rest.Config) (*sdsapi.SDSCluster, error)
- func CreateSDSPackageManager(packageManager sdsapi.SDSPackageManager, namespace string, config *rest.Config) (bool, error)
- func DeleteSDSApplication(name string, namespace string, config *rest.Config) (bool, error)
- func DeleteSDSCluster(name string, namespace string, config *rest.Config) (bool, error)
- func DeleteSDSPackageManager(name string, namespace string, config *rest.Config) (bool, error)
- func GenerateSDSAppBundleCRD() apiextensionsv1beta1.CustomResourceDefinition
- func GenerateSDSApplication(options SDSApplicationOptions) sdsapi.SDSApplication
- func GenerateSDSApplicationCRD() apiextensionsv1beta1.CustomResourceDefinition
- func GenerateSDSCluster(options SDSClusterOptions) sdsapi.SDSCluster
- func GenerateSDSClusterCRD() apiextensionsv1beta1.CustomResourceDefinition
- func GenerateSDSPackageManager(options SDSPackageManagerOptions) sdsapi.SDSPackageManager
- func GenerateSDSPackageManagerCRD() apiextensionsv1beta1.CustomResourceDefinition
- func GetSDSApplication(name string, namespace string, config *rest.Config) (*sdsapi.SDSApplication, error)
- func GetSDSCluster(name string, namespace string, config *rest.Config) (*sdsapi.SDSCluster, error)
- func GetSDSPackageManager(name string, namespace string, config *rest.Config) (*sdsapi.SDSPackageManager, error)
- func ListSDSClusters(namespace string, config *rest.Config) ([]sdsapi.SDSCluster, error)
- func SetLogger()
- func UpdateSDSApplication(application sdsapi.SDSApplication, namespace string, config *rest.Config) (*sdsapi.SDSApplication, error)
- func UpdateSDSCluster(cluster *sdsapi.SDSCluster, namespace string, config *rest.Config) (*sdsapi.SDSCluster, error)
- func UpdateSDSPackageManager(packageManager sdsapi.SDSPackageManager, namespace string, config *rest.Config) (*sdsapi.SDSPackageManager, error)
- type Chart
- type ChartRepository
- type SDSApplicationOptions
- type SDSClusterOptions
- type SDSPackageManagerOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSDSApplication ¶
func CreateSDSApplication(application sdsapi.SDSApplication, namespace string, config *rest.Config) (bool, error)
This method will create an SDS Application in the cluster provided by the config value. The namespace value will be what namespace the custom resource (SDSApplication) will be installed in, not where the eventual application will be installed in.
func CreateSDSCluster ¶
func CreateSDSCluster(cluster sdsapi.SDSCluster, namespace string, config *rest.Config) (*sdsapi.SDSCluster, error)
func CreateSDSPackageManager ¶
func DeleteSDSApplication ¶
This method will delete an existing SDSApplication resource in the cluster provided by the config value.
func DeleteSDSCluster ¶
func DeleteSDSPackageManager ¶
func GenerateSDSAppBundleCRD ¶
func GenerateSDSAppBundleCRD() apiextensionsv1beta1.CustomResourceDefinition
GenerateSDSAppBundleCRD creates the SDSAppBundle CRD object
func GenerateSDSApplication ¶
func GenerateSDSApplication(options SDSApplicationOptions) sdsapi.SDSApplication
This generic helper method will create a SDSApplication object for us with the CMA API
func GenerateSDSApplicationCRD ¶
func GenerateSDSApplicationCRD() apiextensionsv1beta1.CustomResourceDefinition
GenerateSDSApplicationCRD creates the SDSApplication CRD object
func GenerateSDSCluster ¶
func GenerateSDSCluster(options SDSClusterOptions) sdsapi.SDSCluster
func GenerateSDSClusterCRD ¶
func GenerateSDSClusterCRD() apiextensionsv1beta1.CustomResourceDefinition
GenerateSDSClusterCRD creates the SDSCluster CRD object
func GenerateSDSPackageManager ¶
func GenerateSDSPackageManager(options SDSPackageManagerOptions) sdsapi.SDSPackageManager
func GenerateSDSPackageManagerCRD ¶
func GenerateSDSPackageManagerCRD() apiextensionsv1beta1.CustomResourceDefinition
GenerateSDSPackageManagerCRD creates the SDSPackageManager CRD object
func GetSDSApplication ¶
func GetSDSApplication(name string, namespace string, config *rest.Config) (*sdsapi.SDSApplication, error)
This method will return an existing SDSApplication resource in the cluster provided by the config value.
func GetSDSCluster ¶
func GetSDSPackageManager ¶
func ListSDSClusters ¶
func UpdateSDSApplication ¶
func UpdateSDSApplication(application sdsapi.SDSApplication, namespace string, config *rest.Config) (*sdsapi.SDSApplication, error)
This method will update an existing SDSApplication resource in the cluster provided by the config value.
func UpdateSDSCluster ¶
func UpdateSDSCluster(cluster *sdsapi.SDSCluster, namespace string, config *rest.Config) (*sdsapi.SDSCluster, error)
func UpdateSDSPackageManager ¶
func UpdateSDSPackageManager(packageManager sdsapi.SDSPackageManager, namespace string, config *rest.Config) (*sdsapi.SDSPackageManager, error)
Types ¶
type Chart ¶
type Chart struct { // Name of the Chart - should be repository/chart-name like fooinc/my-chart Name string // TODO Make ChartRepository an array Repository ChartRepository // Version of the chart to install Version string }
Chart represents the Chart part of the SDSApplicationOptions struct
type ChartRepository ¶
type ChartRepository struct { // Name that will be used within the helm command. So if it is called fooinc, chart name would be fooinc/my-chart Name string // The URL to the chart repository URL string }
Representation of a Chart Repository - used in Chart which is then used by SDSApplicationOptions which is used by GenerateSDSApplication
type SDSApplicationOptions ¶
type SDSApplicationOptions struct { // Name of the application (what will show up in helm list) Name string // Namespace of the application within the target kubernetes environment Namespace string // Values in the standard helm --values command line argument. This will be written to disk and used Values string // What package manager (tiller) should be used when installing this application PackageManager string // The chart information (name, repository, version, etc.) Chart Chart }
Options to for use with the GenerateSDSApplication method