installconfig

package
v0.0.0-...-ff7c0be Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Overview

Package installconfig generates the install config assets based on its dependencies. The type itself is defined in ../pkg/types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterID

type ClusterID struct {
	// UUID is a globally unique identifier.
	UUID string

	// InfraID is an identifier for the cluster that is more human friendly.
	// This does not have
	InfraID string
}

ClusterID is the unique ID of the cluster, immutable during the cluster's life

func (*ClusterID) Dependencies

func (a *ClusterID) Dependencies() []asset.Asset

Dependencies returns install-config.

func (*ClusterID) Generate

func (a *ClusterID) Generate(dep asset.Parents) error

Generate generates a new ClusterID

func (*ClusterID) Name

func (a *ClusterID) Name() string

Name returns the human-friendly name of the asset.

type InstallConfig

type InstallConfig struct {
	Config *types.InstallConfig `json:"config"`
	File   *asset.File          `json:"file"`
	AWS    *aws.Metadata        `json:"aws,omitempty"`
}

InstallConfig generates the install-config.yaml file.

func (*InstallConfig) Dependencies

func (a *InstallConfig) Dependencies() []asset.Asset

Dependencies returns all of the dependencies directly needed by an InstallConfig asset.

func (*InstallConfig) Files

func (a *InstallConfig) Files() []*asset.File

Files returns the files generated by the asset.

func (*InstallConfig) Generate

func (a *InstallConfig) Generate(parents asset.Parents) error

Generate generates the install-config.yaml file.

func (*InstallConfig) Load

func (a *InstallConfig) Load(f asset.FileFetcher) (found bool, err error)

Load returns the installconfig from disk.

func (*InstallConfig) Name

func (a *InstallConfig) Name() string

Name returns the human-friendly name of the asset.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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