Versions in this module Expand all Collapse all v1 v1.15.1 Feb 17, 2020 v1.15.0 Feb 17, 2020 Changes in this version + const FileType_Directory + const FileType_File + const FileType_Symlink + func NewMountDiskTask(name string, contents string, meta string) (fi.Task, error) + func NewPackage(name string, contents string, meta string) (fi.Task, error) + func NewService(name string, contents string, meta string) (fi.Task, error) + func NewUserTask(name string, contents string, meta string) (fi.Task, error) + type Archive struct + Hash string + Name string + Source string + StripComponents int + TargetDir string + func (_ *Archive) CheckChanges(a, e, changes *Archive) error + func (_ *Archive) RenderCloudInit(t *cloudinit.CloudInitTarget, a, e, changes *Archive) error + func (_ *Archive) RenderLocal(t *local.LocalTarget, a, e, changes *Archive) error + func (e *Archive) Dir() string + func (e *Archive) Find(c *fi.Context) (*Archive, error) + func (e *Archive) GetDependencies(tasks map[string]fi.Task) []fi.Task + func (e *Archive) GetName() *string + func (e *Archive) Run(c *fi.Context) error + func (e *Archive) SetName(name string) + func (e *Archive) String() string + type AssetDefinition struct + AssetPath string + Mode string + type BindMount struct + Mountpoint string + Options []string + Recursive bool + Source string + func (_ *BindMount) RenderCloudInit(t *cloudinit.CloudInitTarget, a, e, changes *BindMount) error + func (_ *BindMount) RenderLocal(t *local.LocalTarget, a, e, changes *BindMount) error + func (e *BindMount) Dir() string + func (e *BindMount) Find(c *fi.Context) (*BindMount, error) + func (e *BindMount) GetDependencies(tasks map[string]fi.Task) []fi.Task + func (e *BindMount) GetName() *string + func (e *BindMount) Run(c *fi.Context) error + func (e *BindMount) SetName(name string) + func (s *BindMount) CheckChanges(a, e, changes *BindMount) error + func (s *BindMount) String() string + type Chattr struct + Deps []fi.Task + File string + Mode string + func (_ *Chattr) RenderCloudInit(t *cloudinit.CloudInitTarget, a, e, changes *Chattr) error + func (_ *Chattr) RenderLocal(t *local.LocalTarget, a, e, changes *Chattr) error + func (e *Chattr) Find(c *fi.Context) (*Chattr, error) + func (e *Chattr) GetDependencies(tasks map[string]fi.Task) []fi.Task + func (e *Chattr) GetName() *string + func (e *Chattr) Run(c *fi.Context) error + func (e *Chattr) SetName(name string) + func (s *Chattr) CheckChanges(a, e, changes *Chattr) error + func (s *Chattr) String() string + type CreatesDir interface + Dir func() string + type Executor interface + CombinedOutput func(args []string) ([]byte, error) + type File struct + AfterFiles []string + Contents fi.Resource + Group *string + IfNotExists bool + Mode *string + OnChangeExecute [][]string + Owner *string + Path string + Symlink *string + Type string + func NewFileTask(name string, src fi.Resource, destPath string, meta string) (*File, error) + func (_ *File) RenderCloudInit(t *cloudinit.CloudInitTarget, a, e, changes *File) error + func (_ *File) RenderLocal(t *local.LocalTarget, a, e, changes *File) error + func (e *File) Find(c *fi.Context) (*File, error) + func (e *File) GetDependencies(tasks map[string]fi.Task) []fi.Task + func (e *File) Run(c *fi.Context) error + func (f *File) Dir() string + func (f *File) GetName() *string + func (f *File) SetName(name string) + func (f *File) String() string + func (s *File) CheckChanges(a, e, changes *File) error + type GroupTask struct + GID *int + Name string + System bool + func (_ *GroupTask) CheckChanges(a, e, changes *GroupTask) error + func (_ *GroupTask) RenderCloudInit(t *cloudinit.CloudInitTarget, a, e, changes *GroupTask) error + func (_ *GroupTask) RenderLocal(t *local.LocalTarget, a, e, changes *GroupTask) error + func (e *GroupTask) Find(c *fi.Context) (*GroupTask, error) + func (e *GroupTask) Run(c *fi.Context) error + func (e *GroupTask) String() string + func (f *GroupTask) GetName() *string + func (f *GroupTask) SetName(name string) + type LoadImageTask struct + Hash string + Sources []string + func (_ *LoadImageTask) CheckChanges(a, e, changes *LoadImageTask) error + func (_ *LoadImageTask) RenderCloudInit(t *cloudinit.CloudInitTarget, a, e, changes *LoadImageTask) error + func (_ *LoadImageTask) RenderLocal(t *local.LocalTarget, a, e, changes *LoadImageTask) error + func (e *LoadImageTask) Find(c *fi.Context) (*LoadImageTask, error) + func (e *LoadImageTask) Run(c *fi.Context) error + func (t *LoadImageTask) GetDependencies(tasks map[string]fi.Task) []fi.Task + func (t *LoadImageTask) String() string + type MountDiskTask struct + Device string + Mountpoint string + Name string + func (_ *MountDiskTask) RenderCloudInit(t *cloudinit.CloudInitTarget, a, e, changes *MountDiskTask) error + func (_ *MountDiskTask) RenderLocal(t *local.LocalTarget, a, e, changes *MountDiskTask) error + func (e *MountDiskTask) Dir() string + func (e *MountDiskTask) Find(c *fi.Context) (*MountDiskTask, error) + func (e *MountDiskTask) GetDependencies(tasks map[string]fi.Task) []fi.Task + func (e *MountDiskTask) Run(c *fi.Context) error + func (s *MountDiskTask) CheckChanges(a, e, changes *MountDiskTask) error + func (s *MountDiskTask) String() string + type Package struct + Deps []*Package + Hash *string + Healthy *bool + Name string + PreventStart *bool + Source *string + Version *string + func (_ *Package) CheckChanges(a, e, changes *Package) error + func (_ *Package) RenderCloudInit(t *cloudinit.CloudInitTarget, a, e, changes *Package) error + func (_ *Package) RenderLocal(t *local.LocalTarget, a, e, changes *Package) error + func (e *Package) Find(c *fi.Context) (*Package, error) + func (e *Package) GetDependencies(tasks map[string]fi.Task) []fi.Task + func (e *Package) Run(c *fi.Context) error + func (f *Package) GetName() *string + func (f *Package) SetName(name string) + func (p *Package) String() string + type Service struct + Definition *string + Enabled *bool + ManageState *bool + Name string + Running *bool + SmartRestart *bool + func (_ *Service) RenderCloudInit(t *cloudinit.CloudInitTarget, a, e, changes *Service) error + func (_ *Service) RenderLocal(t *local.LocalTarget, a, e, changes *Service) error + func (e *Service) Find(c *fi.Context) (*Service, error) + func (e *Service) Run(c *fi.Context) error + func (f *Service) GetName() *string + func (f *Service) SetName(name string) + func (p *Service) GetDependencies(tasks map[string]fi.Task) []fi.Task + func (s *Service) CheckChanges(a, e, changes *Service) error + func (s *Service) InitDefaults() *Service + func (s *Service) String() string + type UpdatePackages struct + Updated bool + func NewUpdatePackages() *UpdatePackages + func (_ *UpdatePackages) RenderCloudInit(t *cloudinit.CloudInitTarget, a, e, changes *UpdatePackages) error + func (_ *UpdatePackages) RenderLocal(t *local.LocalTarget, a, e, changes *UpdatePackages) error + func (e *UpdatePackages) Find(c *fi.Context) (*UpdatePackages, error) + func (e *UpdatePackages) Run(c *fi.Context) error + func (p *UpdatePackages) GetDependencies(tasks map[string]fi.Task) []fi.Task + func (p *UpdatePackages) String() string + func (s *UpdatePackages) CheckChanges(a, e, changes *UpdatePackages) error + type UserTask struct + Home string + Name string + Shell string + UID int + func (_ *UserTask) CheckChanges(a, e, changes *UserTask) error + func (_ *UserTask) RenderCloudInit(t *cloudinit.CloudInitTarget, a, e, changes *UserTask) error + func (_ *UserTask) RenderLocal(t *local.LocalTarget, a, e, changes *UserTask) error + func (e *UserTask) Find(c *fi.Context) (*UserTask, error) + func (e *UserTask) Run(c *fi.Context) error + func (e *UserTask) String() string + func (f *UserTask) GetName() *string + func (f *UserTask) SetName(name string)