resources

package
v0.0.0-...-028f1de Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Compliant    = "Compliant"
	NotCompliant = "NotCompliant"
	Failed       = "Failed"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FileState

type FileState struct {
	Ensure          string
	State           string
	DestinationPath string
	Mode            string
	Owner           string
	Group           string
	SourcePath      string
	Contents        string
	Checksum        string
	Attributes      string
}

func (*FileState) Apply

func (fs *FileState) Apply() (status string, extraInfo string, err error)

func (*FileState) Load

func (fs *FileState) Load(properties map[string]interface{}) (err error)

func (*FileState) Monitor

func (fs *FileState) Monitor() (status string, extraInfo string, err error)

type InventoryState

type InventoryState model.Policy

func (*InventoryState) Apply

func (is *InventoryState) Apply() (status string, extraInfo string, err error)

func (*InventoryState) Load

func (is *InventoryState) Load(properties map[string]interface{}) (err error)

func (*InventoryState) Monitor

func (is *InventoryState) Monitor() (status string, extraInfo string, err error)

type ResourceState

type ResourceState interface {
	Load(properties map[string]interface{}) (err error)
	Apply() (status string, extraInfo string, err error)
	Monitor() (status string, extraInfo string, err error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL