Documentation ¶
Overview ¶
Package installconfig generates the install config assets based on its dependencies. The type itself is defined in ../pkg/types.
Index ¶
- Constants
- func ClusterDNSIP(installConfig *types.InstallConfig) (string, error)
- func GetInstallConfig(installConfig asset.Asset, parents map[asset.Asset]*asset.State) (*types.InstallConfig, error)
- type Platform
- type Stock
- type StockImpl
- func (s *StockImpl) BaseDomain() asset.Asset
- func (s *StockImpl) ClusterID() asset.Asset
- func (s *StockImpl) ClusterName() asset.Asset
- func (s *StockImpl) EmailAddress() asset.Asset
- func (s *StockImpl) EstablishStock()
- func (s *StockImpl) InstallConfig() asset.Asset
- func (s *StockImpl) Password() asset.Asset
- func (s *StockImpl) Platform() asset.Asset
- func (s *StockImpl) PullSecret() asset.Asset
- func (s *StockImpl) SSHKey() asset.Asset
Constants ¶
const ( // AWSPlatformType is used to install on AWS. AWSPlatformType = "aws" // OpenStackPlatformType is used to install on OpenStack. OpenStackPlatformType = "openstack" // LibvirtPlatformType is used to install of libvirt. LibvirtPlatformType = "libvirt" )
Variables ¶
This section is empty.
Functions ¶
func ClusterDNSIP ¶
func ClusterDNSIP(installConfig *types.InstallConfig) (string, error)
ClusterDNSIP returns the string representation of the DNS server's IP address.
Types ¶
type Platform ¶
type Platform struct{}
Platform is an asset that queries the user for the platform on which to install the cluster.
Contents[0] is the type of the platform.
* AWS Contents[1] is the region.
* Libvirt Contents[1] is the URI.
func (*Platform) Dependencies ¶
Dependencies returns no dependencies.
type Stock ¶
type Stock interface { // InstallConfig is the asset that generates install-config.yml. InstallConfig() asset.Asset // ClusterID is the asset that generates a UUID for the cluster. ClusterID() asset.Asset // EmailAddress is the asset that queries the user for the admin email address. EmailAddress() asset.Asset // Password is the asset that queries the user for the admin password. Password() asset.Asset // SSHKey is the asset that queries the user for the ssh public key in a string format. SSHKey() asset.Asset // BaseDomain is the asset that queries the user for the base domain to use // for the cluster. BaseDomain() asset.Asset // ClusterName is the asset that queries the user for the name of the cluster. ClusterName() asset.Asset // PullSecret is the asset that queries the user for the pull secret. PullSecret() asset.Asset // Platform is the asset that queries the user for the platform on which // to create the cluster. Platform() asset.Asset }
Stock is the stock of InstallConfig assets that can be generated.
type StockImpl ¶
type StockImpl struct {
// contains filtered or unexported fields
}
StockImpl implements the Stock interface for installconfig and user inputs.
func (*StockImpl) BaseDomain ¶
BaseDomain is the asset that queries the user for the base domain to use for the cluster.
func (*StockImpl) ClusterName ¶
ClusterName is the asset that queries the user for the name of the cluster.
func (*StockImpl) EmailAddress ¶
EmailAddress is the asset that queries the user for the admin email address.
func (*StockImpl) EstablishStock ¶
func (s *StockImpl) EstablishStock()
EstablishStock establishes the stock of assets.
func (*StockImpl) InstallConfig ¶
InstallConfig is the asset that generates install-config.yml.
func (*StockImpl) Platform ¶
Platform is the asset that queries the user for the platform on which to create the cluster.
func (*StockImpl) PullSecret ¶
PullSecret is the asset that queries the user for the pull secret.