Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) Clear() error
- func (c *Client) DownloadBuiltinPolicies(ctx context.Context, registryOpts types.RegistryOptions) error
- func (c *Client) GetMetadata() (*Metadata, error)
- func (c *Client) LoadBuiltinPolicies() ([]string, error)
- func (c *Client) NeedsUpdate(ctx context.Context, registryOpts types.RegistryOptions) (bool, error)
- type Metadata
- type Option
Constants ¶
View Source
const ( BundleVersion = 0 // Latest released MAJOR version for trivy-checks BundleRepository = "ghcr.io/aquasecurity/trivy-checks" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements check operations
func NewClient ¶
func NewClient(cacheDir string, quiet bool, checkBundleRepo string, opts ...Option) (*Client, error)
NewClient is the factory method for check client
func (*Client) DownloadBuiltinPolicies ¶
func (c *Client) DownloadBuiltinPolicies(ctx context.Context, registryOpts types.RegistryOptions) error
DownloadBuiltinPolicies download default policies from GitHub Pages
func (*Client) GetMetadata ¶ added in v0.38.1
func (*Client) LoadBuiltinPolicies ¶
LoadBuiltinPolicies loads default policies
func (*Client) NeedsUpdate ¶
NeedsUpdate returns if the default check should be updated
Click to show internal directories.
Click to hide internal directories.