{"modulePath":"github.com/openshift/machine-api-operator","version":"v0.1.0","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package render\n\n## Constants\n\n```go\nconst (\n\t// Kind is the TypeMeta.Kind for the OperatorConfig.\n\tKind = \"MachineAPIOperatorConfig\"\n\t// APIVersion is the TypeMeta.APIVersion for the OperatorConfig.\n\tAPIVersion = \"v1\"\n)\n```\n\n## Functions\n\n```go\nfunc Manifests(config *OperatorConfig, data []byte) ([]byte, error)\n```\nManifests takes the config object that contains the templated value, and uses that to render the templated manifest. 'config' must be non-nil, 'data' is the rawdata of a manifest file.\n\n```go\nfunc PopulateTemplate(config *OperatorConfig, path string) ([]byte, error)\n```\nPopulateTemplate takes the config object, and uses that to render the templated manifest\n\n## Types\n\n```go\ntype AWSConfig struct {\n\tClusterName           string `json:\"clusterName\"`\n\tClusterID             string `json:\"clusterID\"`\n\tRegion                string `json:\"region\"`\n\tAvailabilityZone      string `json:\"availabilityZone\"`\n\tImage                 string `json:\"image\"`\n\tReleaseChannel        string `json:\"releaseChannel\"`\n\tContainerLinuxVersion string `json:\"containerLinuxVersion\"`\n\tReplicas              string `json:\"replicas\"`\n\tWithCreds             bool   `json:\"withCreds\"`\n}\n```\nAWSConfig contains specific config for AWS\n\n```go\ntype Images struct {\n\tClusterAPIControllerAWS              string `json:\"clusterAPIControllerAWS\"`\n\tClusterAPIControllerOpenStack        string `json:\"clusterAPIControllerOpenStack\"`\n\tClusterAPIControllerLibvirt          string `json:\"clusterAPIControllerLibvirt\"`\n\tClusterAPIControllerManagerAWS       string `json:\"clusterAPIControllerManagerAWS\"`\n\tClusterAPIControllerManagerOpenStack string `json:\"clusterAPIControllerManagerOpenStack\"`\n\tClusterAPIControllerManagerLibvirt   string `json:\"clusterAPIControllerManagerLibvirt\"`\n\tClusterAPIServer                     string `json:\"clusterAPIServer\"`\n\tEtcd                                 string `json:\"Etcd\"`\n}\n```\nImages allows build systems to inject images for MAO components.\n\n```go\ntype LibvirtConfig struct {\n\tURI         string `json:\"uri\"`\n\tNetworkName string `json:\"networkName\"`\n\tIPRange     string `json:\"ipRange\"`\n\tClusterName string `json:\"clusterName\"`\n\tReplicas    string `json:\"replicas\"`\n}\n```\nLibvirtConfig contains specific config for Libvirt\n\n```go\ntype OpenStackConfig struct {\n}\n```\n\n```go\ntype OperatorConfig struct {\n\tmetav1.TypeMeta `json:\",inline\"`\n\tTargetNamespace string           `json:\"targetNamespace\"`\n\tAPIServiceCA    string           `json:\"apiServiceCA\"`\n\tProvider        string           `json:\"provider\"`\n\tAWS             *AWSConfig       `json:\"aws\"`\n\tOpenStack       *OpenStackConfig `json:\"openstack,omitempty\"`\n\tLibvirt         *LibvirtConfig   `json:\"libvirt\"`\n\tImages          *Images          `json:\"images\"`\n}\n```\nOperatorConfig contains configuration for MAO\n\n","path":"github.com/openshift/machine-api-operator/pkg/render","name":"render","synopsis":"","isRedistributable":true}
