Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrEmptyName = errors.New("domain name can not be empty") ErrMissingImage = errors.New("image path can not be empty") ErrNotEnoughDisk = errors.New("not enough disk space assigned to task") ErrNoCPUS = errors.New("no cpus configured, use resources.cores to assign cores in the job spec") ErrNotEnoughMemory = errors.New("not enough memory assigned to task") ErrIncompleteOSVariant = errors.New("provided os information is incomplete: arch and machine are mandatory ") ErrInvalidHostName = fmt.Errorf("a resource name must consist of lower case alphanumeric characters or '-', must start and end with an alphanumeric character and be less than %d characters", maxNameLength+1) ErrPathNotAllowed = fmt.Errorf("base_image is not in the allowed paths") )
Functions ¶
func IsValidLabel ¶
IsValidLabel returns true if the string given is a valid DNS label (RFC 1123). Note: the only difference between RFC 1035 and RFC 1123 labels is that in RFC 1123 labels can begin with a number.
func ValidateHostName ¶
ValidateHostName returns an error a name is not a valid resource name. The error will contain reference to what constitutes a valid resource name.
Types ¶
type Config ¶
type Config struct {
RemoveConfigFiles bool
XMLConfig string
Name string
Memory uint
CPUset string
CPUs uint
OsVariant *OSVariant
BaseImage string
DiskFmt string
PrimaryDiskSize uint64
HostName string
Timezone *time.Location
Mounts []MountFileConfig
Files []File
SSHKey string
Password string
CMDs []string
BOOTCMDs []string
CIUserData string
NetworkInterfaces net.NetworkInterfacesConfig
}
type MountFileConfig ¶
type NetworkInterface ¶
Click to show internal directories.
Click to hide internal directories.