genericpolicies

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Overview

Package genericpolicies is responsible for creating and managing policies based on policy generator

Index

Constants

This section is empty.

Variables

View Source
var CurrentVersion string

CurrentVersion stores the current version of policy-template

View Source
var LatestVersion string

LatestVersion stores the latest version of policy-template

Functions

func CurrentRelease

func CurrentRelease() string

CurrentRelease gets the current release of policy-templates

func DownloadAndUnzipRelease

func DownloadAndUnzipRelease() (string, error)

DownloadAndUnzipRelease downloads the latest version of policy-templates

Types

type GenericPolicy

type GenericPolicy struct {
}

GenericPolicy defines Policy Generators

func (GenericPolicy) Init

func (P GenericPolicy) Init() error

Init initializing Policy Generator

func (GenericPolicy) Scan

func (P GenericPolicy) Scan(img *image.Info, options common.Options) (map[string][]byte, map[string]interface{}, error)

Scan image and generates policies

Jump to

Keyboard shortcuts

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