juju: github.com/juju/juju/cloudconfig/containerinit Index | Files

package containerinit

import "github.com/juju/juju/cloudconfig/containerinit"


Package Files


func CloudInitUserData Uses

func CloudInitUserData(
    instanceConfig *instancecfg.InstanceConfig,
    networkConfig *container.NetworkConfig,
) ([]byte, error)

func WriteCloudInitFile Uses

func WriteCloudInitFile(directory string, userData []byte) (string, error)

WriteCloudInitFile writes the data out to a cloud-init file in the directory specified, and returns the filename.

func WriteUserData Uses

func WriteUserData(
    instanceConfig *instancecfg.InstanceConfig,
    networkConfig *container.NetworkConfig,
    directory string,
) (string, error)

WriteUserData generates the cloud-init user-data using the specified machine and network config for a container, and writes the serialized form out to a cloud-init file in the directory specified.

Package containerinit imports 9 packages (graph) and is imported by 75 packages. Updated 2020-07-25. Refresh now. Tools for package owners.