Documentation ¶
Index ¶
Constants ¶
View Source
const ( OciDhcpScriptPath = "oci.sh" OciDhcpScript = `` /* 775-byte string literal not displayed */ // This script actually gathers and sets the networking configuration. // It is lifted verbatim from a vanilla OL8 instance. OciDhclientScriptPath = "oci-dhclient.sh" OciDhclientScript = `` /* 18681-byte string literal not displayed */ // OCI requires custom scripting to set the hostname, as well // set other networking parameters. These are gathered from // the instance metadata. // // Note: this is lifted verbatim from a regular OL instance. // dhclientPath = "/etc/NetworkManager/dispatcher.d/11-dhclient" OciDhclientPath = "11-dhclient" OciDhclient = `` /* 964-byte string literal not displayed */ )
View Source
const ProviderTypeOCI = "oci"
View Source
const ProviderTypeOstree = "ostree"
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(startConfig *otypes.Config, clusterConfig *otypes.ClusterConfig, options CreateOptions) error
Create creates a qcow2 image for the specified provider type
Types ¶
type CreateOptions ¶
type CreateOptions struct { // IgnitionProvider is the provider type for ignition IgnitionProvider string // KernelArguments is any extra kernel command line arguments to append KernelArguments string // ProviderConfigPath is the path for the provider config (e.g ~/.oci/config) ProviderConfigPath string // ProviderType is the provider type (e.g. oci) ProviderType string // Architecture of the image to create ("amd64", "arm64") Architecture string // Destination Destination string }
CreateOptions are the options for the create image command
Click to show internal directories.
Click to hide internal directories.