Documentation ¶
Index ¶
- type AptPackage
- type AptRepository
- type DebPackage
- type GooGetPackage
- type GooGetRepository
- type MSIPackage
- type ManagedFile
- type ManagedPackage
- type ManagedRepository
- type ManagedResources
- type OSPolicyResource
- func (r *OSPolicyResource) CheckState(ctx context.Context) error
- func (r *OSPolicyResource) Cleanup(ctx context.Context) error
- func (r *OSPolicyResource) EnforceState(ctx context.Context) error
- func (r *OSPolicyResource) InDesiredState() bool
- func (r *OSPolicyResource) ManagedResources() *ManagedResources
- func (r *OSPolicyResource) PopulateOutput(rCompliance *agentendpointpb.OSPolicyResourceCompliance) error
- func (r *OSPolicyResource) Validate(ctx context.Context) error
- type RPMPackage
- type YumPackage
- type YumRepository
- type ZypperPackage
- type ZypperRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AptPackage ¶
type AptPackage struct { PackageResource *agentendpointpb.OSPolicy_Resource_PackageResource_APT DesiredState agentendpointpb.OSPolicy_Resource_PackageResource_DesiredState }
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 ¶
type GooGetPackage struct { PackageResource *agentendpointpb.OSPolicy_Resource_PackageResource_GooGet DesiredState agentendpointpb.OSPolicy_Resource_PackageResource_DesiredState }
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.
type RPMPackage ¶
type RPMPackage struct { PackageResource *agentendpointpb.OSPolicy_Resource_PackageResource_RPM // contains filtered or unexported fields }
RPMPackage describes an rpm package resource.
type YumPackage ¶
type YumPackage struct { PackageResource *agentendpointpb.OSPolicy_Resource_PackageResource_YUM DesiredState agentendpointpb.OSPolicy_Resource_PackageResource_DesiredState }
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 ¶
type ZypperPackage struct { PackageResource *agentendpointpb.OSPolicy_Resource_PackageResource_Zypper DesiredState agentendpointpb.OSPolicy_Resource_PackageResource_DesiredState }
ZypperPackage describes a zypper package resource.
type ZypperRepository ¶
type ZypperRepository struct {
RepositoryResource *agentendpointpb.OSPolicy_Resource_RepositoryResource_ZypperRepository
}
ZypperRepository describes an zypper repository resource.