Documentation ¶
Index ¶
- Constants
- 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 AssetDefinition
- type File
- func (s *File) CheckChanges(a, e, changes *File) error
- func (e *File) Find(c *fi.Context) (*File, error)
- func (f *File) GetDependencies(tasks map[string]fi.Task) []fi.Task
- 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) Run(c *fi.Context) error
- func (f *File) String() string
- type LoadImageTask
- func (_ *LoadImageTask) CheckChanges(a, e, changes *LoadImageTask) error
- func (e *LoadImageTask) Find(c *fi.Context) (*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) Run(c *fi.Context) error
- func (t *LoadImageTask) String() string
- type MountDiskTask
- func (s *MountDiskTask) CheckChanges(a, e, changes *MountDiskTask) error
- func (e *MountDiskTask) Find(c *fi.Context) (*MountDiskTask, error)
- 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) Run(c *fi.Context) error
- func (s *MountDiskTask) String() string
- type Package
- func (s *Package) CheckChanges(a, e, changes *Package) error
- func (e *Package) Find(c *fi.Context) (*Package, error)
- func (p *Package) GetDependencies(tasks map[string]fi.Task) []fi.Task
- 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) Run(c *fi.Context) error
- func (p *Package) String() string
- type Service
- func (s *Service) CheckChanges(a, e, changes *Service) error
- func (e *Service) Find(c *fi.Context) (*Service, error)
- func (p *Service) GetDependencies(tasks map[string]fi.Task) []fi.Task
- 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) Run(c *fi.Context) error
- func (s *Service) String() string
- type UpdatePackages
- func (s *UpdatePackages) CheckChanges(a, e, changes *Service) error
- func (e *UpdatePackages) Find(c *fi.Context) (*UpdatePackages, error)
- func (p *UpdatePackages) GetDependencies(tasks map[string]fi.Task) []fi.Task
- 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) Run(c *fi.Context) error
- func (p *UpdatePackages) String() string
- type UserTask
- func (_ *UserTask) CheckChanges(a, e, changes *UserTask) error
- func (e *UserTask) Find(c *fi.Context) (*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) Run(c *fi.Context) error
- func (e *UserTask) String() string
Constants ¶
View Source
const FileType_Directory = "directory"
View Source
const FileType_File = "file"
View Source
const FileType_Symlink = "symlink"
Variables ¶
This section is empty.
Functions ¶
func NewMountDiskTask ¶
Types ¶
type AssetDefinition ¶
type File ¶
type File struct { Path string Contents fi.Resource Mode *string `json:"mode"` IfNotExists bool `json:"ifNotExists"` OnChangeExecute []string `json:"onChangeExecute,omitempty"` Symlink *string `json:"symlink,omitempty"` Owner *string `json:"owner,omitempty"` Group *string `json:"group,omitempty"` Type string `json:"type"` }
func NewFileTask ¶
func (*File) CheckChanges ¶
func (*File) RenderCloudInit ¶
func (_ *File) RenderCloudInit(t *cloudinit.CloudInitTarget, a, e, changes *File) error
func (*File) RenderLocal ¶
func (_ *File) RenderLocal(t *local.LocalTarget, a, e, changes *File) error
type LoadImageTask ¶
LoadImageTask is responsible for downloading a docker image
func (*LoadImageTask) CheckChanges ¶
func (_ *LoadImageTask) CheckChanges(a, e, changes *LoadImageTask) error
func (*LoadImageTask) Find ¶
func (e *LoadImageTask) Find(c *fi.Context) (*LoadImageTask, error)
func (*LoadImageTask) RenderCloudInit ¶
func (_ *LoadImageTask) RenderCloudInit(t *cloudinit.CloudInitTarget, a, e, changes *LoadImageTask) error
func (*LoadImageTask) RenderLocal ¶
func (_ *LoadImageTask) RenderLocal(t *local.LocalTarget, a, e, changes *LoadImageTask) error
func (*LoadImageTask) String ¶
func (t *LoadImageTask) String() string
type MountDiskTask ¶
type MountDiskTask struct { Name string Device string `json:"device"` Mountpoint string `json:"mountpoint"` }
MountDiskTask is responsible for mounting a device on a mountpoint It will wait for the device to show up, safe_format_and_mount it, and then mount it.
func (*MountDiskTask) CheckChanges ¶
func (s *MountDiskTask) CheckChanges(a, e, changes *MountDiskTask) error
func (*MountDiskTask) Find ¶
func (e *MountDiskTask) Find(c *fi.Context) (*MountDiskTask, error)
func (*MountDiskTask) RenderCloudInit ¶
func (_ *MountDiskTask) RenderCloudInit(t *cloudinit.CloudInitTarget, a, e, changes *MountDiskTask) error
func (*MountDiskTask) RenderLocal ¶
func (_ *MountDiskTask) RenderLocal(t *local.LocalTarget, a, e, changes *MountDiskTask) error
func (*MountDiskTask) String ¶
func (s *MountDiskTask) String() string
type Package ¶
type Package struct { Name string Version *string `json:"version"` Source *string `json:"source"` Hash *string `json:"hash"` PreventStart *bool `json:"preventStart"` // Healthy is true if the package installation did not fail Healthy *bool `json:"healthy"` }
func (*Package) CheckChanges ¶
func (*Package) GetDependencies ¶
GetDependencies computes dependencies for the package task
func (*Package) RenderCloudInit ¶
func (_ *Package) RenderCloudInit(t *cloudinit.CloudInitTarget, a, e, changes *Package) error
func (*Package) RenderLocal ¶
func (_ *Package) RenderLocal(t *local.LocalTarget, a, e, changes *Package) error
type Service ¶
type Service struct { Name string Definition *string Running *bool // Enabled configures the service to start at boot (or not start at boot) Enabled *bool ManageState *bool `json:"manageState"` SmartRestart *bool `json:"smartRestart"` }
func (*Service) CheckChanges ¶
func (*Service) GetDependencies ¶
func (*Service) RenderCloudInit ¶
func (_ *Service) RenderCloudInit(t *cloudinit.CloudInitTarget, a, e, changes *Service) error
func (*Service) RenderLocal ¶
func (_ *Service) RenderLocal(t *local.LocalTarget, a, e, changes *Service) error
type UpdatePackages ¶
type UpdatePackages struct { }
func (*UpdatePackages) CheckChanges ¶
func (s *UpdatePackages) CheckChanges(a, e, changes *Service) error
func (*UpdatePackages) Find ¶
func (e *UpdatePackages) Find(c *fi.Context) (*UpdatePackages, error)
func (*UpdatePackages) GetDependencies ¶
func (*UpdatePackages) RenderCloudInit ¶
func (_ *UpdatePackages) RenderCloudInit(t *cloudinit.CloudInitTarget, a, e, changes *UpdatePackages) error
func (*UpdatePackages) RenderLocal ¶
func (_ *UpdatePackages) RenderLocal(t *local.LocalTarget, a, e, changes *UpdatePackages) error
func (*UpdatePackages) String ¶
func (p *UpdatePackages) String() string
type UserTask ¶
UserTask is responsible for creating a user, by calling useradd
func (*UserTask) CheckChanges ¶
func (*UserTask) RenderCloudInit ¶
func (_ *UserTask) RenderCloudInit(t *cloudinit.CloudInitTarget, a, e, changes *UserTask) error
func (*UserTask) RenderLocal ¶
func (_ *UserTask) RenderLocal(t *local.LocalTarget, a, e, changes *UserTask) error
Click to show internal directories.
Click to hide internal directories.