Documentation
¶
Index ¶
- func CreateIgnition(ignitionFile string, publicKey string, user string, password string) error
- func Decompress(localPath, uncompressedPath string) error
- func DownloadVMImage(downloadURL string, localImagePath string) error
- type Clevis
- type Config
- type Custom
- type Device
- type Directory
- type DirectoryEmbedded1
- type Disk
- type Dropin
- type FcosDownload
- type File
- type FileEmbedded1
- type Filesystem
- type FilesystemOption
- type Group
- type HTTPHeader
- type HTTPHeaders
- type Ignition
- type IgnitionConfig
- type Link
- type LinkEmbedded1
- type Luks
- type LuksOption
- type MountOption
- type NoProxyItem
- type Node
- type NodeGroup
- type NodeUser
- type Partition
- type Passwd
- type PasswdGroup
- type PasswdUser
- type Proxy
- type Raid
- type RaidOption
- type Resource
- type SSHAuthorizedKey
- type Security
- type Storage
- type Systemd
- type TLS
- type Tang
- type Timeouts
- type Unit
- type Verification
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateIgnition ¶ added in v0.2.0
func Decompress ¶ added in v0.2.0
func DownloadVMImage ¶ added in v0.2.0
DownloadVMImage downloads a VM image from url to given path with download status
Types ¶
type Directory ¶ added in v0.2.0
type Directory struct { Node DirectoryEmbedded1 }
type DirectoryEmbedded1 ¶ added in v0.2.0
type DirectoryEmbedded1 struct {
Mode *int `json:"mode,omitempty"`
}
type FcosDownload ¶ added in v0.2.0
type FcosDownload struct {
DataDir string
}
func NewFcosDownloader ¶ added in v0.2.0
func NewFcosDownloader(dataDir string) (*FcosDownload, error)
func (*FcosDownload) DownloadImage ¶ added in v0.2.0
func (downloader *FcosDownload) DownloadImage() (string, error)
type File ¶ added in v0.2.0
type File struct { Node FileEmbedded1 }
type FileEmbedded1 ¶ added in v0.2.0
type Filesystem ¶ added in v0.2.0
type Filesystem struct { Device string `json:"device"` Format *string `json:"format,omitempty"` Label *string `json:"label,omitempty"` MountOptions []MountOption `json:"mountOptions,omitempty"` Options []FilesystemOption `json:"options,omitempty"` Path *string `json:"path,omitempty"` UUID *string `json:"uuid,omitempty"` WipeFilesystem *bool `json:"wipeFilesystem,omitempty"` }
type FilesystemOption ¶ added in v0.2.0
type FilesystemOption string
type HTTPHeader ¶ added in v0.2.0
type HTTPHeaders ¶ added in v0.2.0
type HTTPHeaders []HTTPHeader
type Ignition ¶ added in v0.2.0
type Ignition struct { Config IgnitionConfig `json:"config,omitempty"` Proxy Proxy `json:"proxy,omitempty"` Security Security `json:"security,omitempty"` Timeouts Timeouts `json:"timeouts,omitempty"` Version string `json:"version,omitempty"` }
type IgnitionConfig ¶ added in v0.2.0
type Link ¶ added in v0.2.0
type Link struct { Node LinkEmbedded1 }
type LinkEmbedded1 ¶ added in v0.2.0
type Luks ¶ added in v0.2.0
type Luks struct { Clevis *Clevis `json:"clevis,omitempty"` Device *string `json:"device,omitempty"` KeyFile Resource `json:"keyFile,omitempty"` Label *string `json:"label,omitempty"` Name string `json:"name"` Options []LuksOption `json:"options,omitempty"` UUID *string `json:"uuid,omitempty"` WipeVolume *bool `json:"wipeVolume,omitempty"` }
type LuksOption ¶ added in v0.2.0
type LuksOption string
type MountOption ¶ added in v0.2.0
type MountOption string
type NoProxyItem ¶ added in v0.2.0
type NoProxyItem string
type Partition ¶ added in v0.2.0
type Partition struct { GUID *string `json:"guid,omitempty"` Label *string `json:"label,omitempty"` Number int `json:"number,omitempty"` Resize *bool `json:"resize,omitempty"` ShouldExist *bool `json:"shouldExist,omitempty"` SizeMiB *int `json:"sizeMiB,omitempty"` StartMiB *int `json:"startMiB,omitempty"` TypeGUID *string `json:"typeGuid,omitempty"` WipePartitionEntry *bool `json:"wipePartitionEntry,omitempty"` }
type Passwd ¶ added in v0.2.0
type Passwd struct { Groups []PasswdGroup `json:"groups,omitempty"` Users []PasswdUser `json:"users,omitempty"` }
type PasswdGroup ¶ added in v0.2.0
type PasswdUser ¶ added in v0.2.0
type PasswdUser struct { Gecos *string `json:"gecos,omitempty"` Groups []Group `json:"groups,omitempty"` HomeDir *string `json:"homeDir,omitempty"` Name string `json:"name"` NoCreateHome *bool `json:"noCreateHome,omitempty"` NoLogInit *bool `json:"noLogInit,omitempty"` NoUserGroup *bool `json:"noUserGroup,omitempty"` PasswordHash *string `json:"passwordHash,omitempty"` PrimaryGroup *string `json:"primaryGroup,omitempty"` SSHAuthorizedKeys []SSHAuthorizedKey `json:"sshAuthorizedKeys,omitempty"` Shell *string `json:"shell,omitempty"` ShouldExist *bool `json:"shouldExist,omitempty"` System *bool `json:"system,omitempty"` UID *int `json:"uid,omitempty"` }
type Proxy ¶ added in v0.2.0
type Proxy struct { HTTPProxy *string `json:"httpProxy,omitempty"` HTTPSProxy *string `json:"httpsProxy,omitempty"` NoProxy []NoProxyItem `json:"noProxy,omitempty"` }
type Raid ¶ added in v0.2.0
type Raid struct { Devices []Device `json:"devices"` Level string `json:"level"` Name string `json:"name"` Options []RaidOption `json:"options,omitempty"` Spares *int `json:"spares,omitempty"` }
type RaidOption ¶ added in v0.2.0
type RaidOption string
type Resource ¶ added in v0.2.0
type Resource struct { Compression *string `json:"compression,omitempty"` HTTPHeaders HTTPHeaders `json:"httpHeaders,omitempty"` Source *string `json:"source,omitempty"` Verification Verification `json:"verification,omitempty"` }
type SSHAuthorizedKey ¶ added in v0.2.0
type SSHAuthorizedKey string
type Storage ¶ added in v0.2.0
type Storage struct { Directories []Directory `json:"directories,omitempty"` Disks []Disk `json:"disks,omitempty"` Files []File `json:"files,omitempty"` Filesystems []Filesystem `json:"filesystems,omitempty"` Links []Link `json:"links,omitempty"` Luks []Luks `json:"luks,omitempty"` Raid []Raid `json:"raid,omitempty"` }
type TLS ¶ added in v0.2.0
type TLS struct {
CertificateAuthorities []Resource `json:"certificateAuthorities,omitempty"`
}
type Verification ¶ added in v0.2.0
type Verification struct {
Hash *string `json:"hash,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.