Documentation ¶
Index ¶
- type AddBehaviour
- type CloudConfig
- type CloudConfigFile
- type CloudInitTarget
- func (t *CloudInitTarget) AddCommand(addBehaviour AddBehaviour, args ...string)
- func (t *CloudInitTarget) AddDownloadCommand(addBehaviour AddBehaviour, url string, dest string)
- func (t *CloudInitTarget) AddMkdirpCommand(p string, dirMode os.FileMode)
- func (t *CloudInitTarget) Chown(path string, user, group string)
- func (t *CloudInitTarget) Finish(taskMap map[string]fi.Task) error
- func (t *CloudInitTarget) HasTag(tag string) bool
- func (t *CloudInitTarget) ProcessDeletions() bool
- func (t *CloudInitTarget) WriteFile(destPath string, contents fi.Resource, fileMode os.FileMode, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudConfig ¶
type CloudConfig struct { PackageUpdate bool `json:"package_update"` Packages []string `json:"packages,omitempty"` RunCommmands [][]string `json:"runcmd,omitempty"` WriteFiles []*CloudConfigFile `json:"write_files,omitempty"` }
type CloudConfigFile ¶
type CloudInitTarget ¶
type CloudInitTarget struct { Config *CloudConfig Tags sets.String // contains filtered or unexported fields }
func NewCloudInitTarget ¶
func NewCloudInitTarget(out io.Writer, tags sets.String) *CloudInitTarget
func (*CloudInitTarget) AddCommand ¶
func (t *CloudInitTarget) AddCommand(addBehaviour AddBehaviour, args ...string)
func (*CloudInitTarget) AddDownloadCommand ¶
func (t *CloudInitTarget) AddDownloadCommand(addBehaviour AddBehaviour, url string, dest string)
func (*CloudInitTarget) AddMkdirpCommand ¶
func (t *CloudInitTarget) AddMkdirpCommand(p string, dirMode os.FileMode)
func (*CloudInitTarget) Chown ¶
func (t *CloudInitTarget) Chown(path string, user, group string)
func (*CloudInitTarget) HasTag ¶
func (t *CloudInitTarget) HasTag(tag string) bool
func (*CloudInitTarget) ProcessDeletions ¶
func (t *CloudInitTarget) ProcessDeletions() bool
Click to show internal directories.
Click to hide internal directories.