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) 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 map[string]struct{} // contains filtered or unexported fields }
func NewCloudInitTarget ¶
func NewCloudInitTarget(out io.Writer, tags map[string]struct{}) *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 ¶ added in v1.4.1
func (t *CloudInitTarget) HasTag(tag string) bool
Click to show internal directories.
Click to hide internal directories.