Documentation ¶
Index ¶
- type APTPackage
- type APTPackageState
- type File
- func (f File) Configure(ctx context.Context, hst host.Host, name resource.Name, state resource.State) error
- func (f File) Destroy(ctx context.Context, hst host.Host, name resource.Name) error
- func (f File) GetState(ctx context.Context, hst host.Host, name resource.Name) (resource.State, error)
- func (f File) ValidateName(name resource.Name) error
- type FileState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APTPackage ¶
type APTPackage struct{}
APTPackage resource manages files.
func (APTPackage) ConfigureAll ¶
func (APTPackage) ValidateName ¶
func (ap APTPackage) ValidateName(name resource.Name) error
type APTPackageState ¶
type APTPackageState struct { // Package version Version string `yaml:"version"` }
APTPackageState is State for APTPackage
func (APTPackageState) ValidateAndUpdate ¶
type File ¶
type File struct{}
File resource manages files.
type FileState ¶
type FileState struct { // Contents of the file Content string `yaml:"content"` // File permissions Perm os.FileMode `yaml:"perm"` // User ID owner of the file Uid uint32 `yaml:"uid"` // User name owner of the file User string `yaml:"user"` // Group ID owner of the file Gid uint32 `yaml:"gid"` // Group name owner of the file Group string `yaml:"group"` }
FileState for File
Click to show internal directories.
Click to hide internal directories.