config

package
v0.0.0-...-09d4767 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AptPackage

AptPackage describes an apt package resource.

type AptRepository

type AptRepository struct {
	RepositoryResource *agentendpointpb.OSPolicy_Resource_RepositoryResource_AptRepository
	GpgFilePath        string
	GpgChecksum        string
	GpgFileContents    []byte
}

AptRepository describes an apt repository resource.

type DebPackage

type DebPackage struct {
	PackageResource *agentendpointpb.OSPolicy_Resource_PackageResource_Deb
	// contains filtered or unexported fields
}

DebPackage describes a deb package resource.

type GooGetPackage

GooGetPackage describes a googet package resource.

type GooGetRepository

type GooGetRepository struct {
	RepositoryResource *agentendpointpb.OSPolicy_Resource_RepositoryResource_GooRepository
}

GooGetRepository describes an googet repository resource.

type MSIPackage

type MSIPackage struct {
	PackageResource *agentendpointpb.OSPolicy_Resource_PackageResource_MSI
	// contains filtered or unexported fields
}

MSIPackage describes an msi package resource.

type ManagedFile

type ManagedFile struct {
	Path string

	State      agentendpointpb.OSPolicy_Resource_FileResource_DesiredState
	Permisions os.FileMode
	// contains filtered or unexported fields
}

ManagedFile is the file that this FileResouce manages.

type ManagedPackage

type ManagedPackage struct {
	Apt    *AptPackage
	Deb    *DebPackage
	GooGet *GooGetPackage
	MSI    *MSIPackage
	Yum    *YumPackage
	Zypper *ZypperPackage
	RPM    *RPMPackage
	// contains filtered or unexported fields
}

ManagedPackage is the package that this PackageResource manages.

type ManagedRepository

type ManagedRepository struct {
	Apt              *AptRepository
	GooGet           *GooGetRepository
	Yum              *YumRepository
	Zypper           *ZypperRepository
	RepoFilePath     string
	RepoChecksum     string
	RepoFileContents []byte
}

ManagedRepository is the repository that this RepositoryResource manages.

type ManagedResources

type ManagedResources struct {
	Packages     []ManagedPackage
	Repositories []ManagedRepository
	Files        []ManagedFile
}

ManagedResources are the resources that an OSPolicyResource manages.

type OSPolicyResource

type OSPolicyResource struct {
	*agentendpointpb.OSPolicy_Resource
	// contains filtered or unexported fields
}

OSPolicyResource is a single OSPolicy resource.

func (*OSPolicyResource) CheckState

func (r *OSPolicyResource) CheckState(ctx context.Context) error

CheckState checks this resources state. Validate must be called prior to running CheckState.

func (*OSPolicyResource) Cleanup

func (r *OSPolicyResource) Cleanup(ctx context.Context) error

Cleanup cleans up any temporary files that this resource may have created.

func (*OSPolicyResource) EnforceState

func (r *OSPolicyResource) EnforceState(ctx context.Context) error

EnforceState enforces this resources state. Validate must be called prior to running EnforceState.

func (*OSPolicyResource) InDesiredState

func (r *OSPolicyResource) InDesiredState() bool

InDesiredState reports whether this resource is in the desired state. CheckState or EnforceState should be run prior to calling InDesiredState.

func (*OSPolicyResource) ManagedResources

func (r *OSPolicyResource) ManagedResources() *ManagedResources

ManagedResources returns the resources that this OSPolicyResource manages.

func (*OSPolicyResource) PopulateOutput

func (r *OSPolicyResource) PopulateOutput(rCompliance *agentendpointpb.OSPolicyResourceCompliance) error

PopulateOutput populates the output field of the provided OSPolicyResourceCompliance for this resource.

func (*OSPolicyResource) Validate

func (r *OSPolicyResource) Validate(ctx context.Context) error

Validate validates this resource. Validate must be called before other methods.

type RPMPackage

type RPMPackage struct {
	PackageResource *agentendpointpb.OSPolicy_Resource_PackageResource_RPM
	// contains filtered or unexported fields
}

RPMPackage describes an rpm package resource.

type YumPackage

YumPackage describes a yum package resource.

type YumRepository

type YumRepository struct {
	RepositoryResource *agentendpointpb.OSPolicy_Resource_RepositoryResource_YumRepository
}

YumRepository describes an yum repository resource.

type ZypperPackage

ZypperPackage describes a zypper package resource.

type ZypperRepository

type ZypperRepository struct {
	RepositoryResource *agentendpointpb.OSPolicy_Resource_RepositoryResource_ZypperRepository
}

ZypperRepository describes an zypper repository resource.

Jump to

Keyboard shortcuts

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