Documentation
¶
Index ¶
- Constants
- func ChownRecursive(fsys afero.Fs, path string, uid, gid int) error
- func DirResourceFullPath(rc *resource.Context, resourceID string) (string, error)
- func DirResourceIdentifier(id string) resource.Identifier
- func Provide(i *do.Injector)
- func RegisterResourceTypes(registry *resource.Registry)
- type DirResource
- func (d *DirResource) Create(ctx context.Context, rc *resource.Context) error
- func (d *DirResource) Delete(ctx context.Context, rc *resource.Context) error
- func (d *DirResource) Dependencies() []resource.Identifier
- func (d *DirResource) DiffIgnore() []string
- func (d *DirResource) Executor() resource.Executor
- func (d *DirResource) Identifier() resource.Identifier
- func (d *DirResource) Refresh(ctx context.Context, rc *resource.Context) error
- func (d *DirResource) ResourceVersion() string
- func (d *DirResource) Update(ctx context.Context, rc *resource.Context) error
- type Directory
- type File
- type TreeNode
Constants ¶
View Source
const ResourceTypeDir resource.Type = "filesystem.dir"
Variables ¶
This section is empty.
Functions ¶
func DirResourceFullPath ¶
func DirResourceIdentifier ¶
func DirResourceIdentifier(id string) resource.Identifier
func RegisterResourceTypes ¶
Types ¶
type DirResource ¶
type DirResource struct {
ID string `json:"id"`
ParentID string `json:"parent_id"`
HostID string `json:"host_id"`
Path string `json:"path"`
OwnerUID int `json:"owner_uid"`
OwnerGID int `json:"owner_gid"`
Perm os.FileMode `json:"perm"`
FullPath string `json:"full_path"`
}
func (*DirResource) Dependencies ¶
func (d *DirResource) Dependencies() []resource.Identifier
func (*DirResource) DiffIgnore ¶
func (d *DirResource) DiffIgnore() []string
func (*DirResource) Executor ¶
func (d *DirResource) Executor() resource.Executor
func (*DirResource) Identifier ¶
func (d *DirResource) Identifier() resource.Identifier
func (*DirResource) ResourceVersion ¶
func (d *DirResource) ResourceVersion() string
type Directory ¶
Click to show internal directories.
Click to hide internal directories.