cma

package
v0.0.0-...-5ef725e Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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 CreateSDSPackageManager(packageManager sdsapi.SDSPackageManager, namespace string, config *rest.Config) (bool, error)

func DeleteSDSApplication

func DeleteSDSApplication(name string, namespace string, config *rest.Config) (bool, error)

This method will delete an existing SDSApplication resource in the cluster provided by the config value.

func DeleteSDSCluster

func DeleteSDSCluster(name string, namespace string, config *rest.Config) (bool, error)

func DeleteSDSPackageManager

func DeleteSDSPackageManager(name string, namespace string, config *rest.Config) (bool, error)

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 GetSDSCluster(name string, namespace string, config *rest.Config) (*sdsapi.SDSCluster, error)

func GetSDSPackageManager

func GetSDSPackageManager(name string, namespace string, config *rest.Config) (*sdsapi.SDSPackageManager, error)

func ListSDSClusters

func ListSDSClusters(namespace string, config *rest.Config) ([]sdsapi.SDSCluster, error)

func SetLogger

func SetLogger()

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

type SDSClusterOptions

type SDSClusterOptions struct {
	Name     string
	Provider string
}

type SDSPackageManagerOptions

type SDSPackageManagerOptions struct {
	Name            string
	Namespace       string
	Version         string
	ClusterWide     bool
	AdminNamespaces []string
}

Jump to

Keyboard shortcuts

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