sbomdb

package
v0.0.0-...-5f6b411 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Setter
	Getter
}

func CreateClient

func CreateClient(address string) *Client

type Getter

type Getter interface {
	// Get will return a decoded and uncompressed sbom.
	Get(ctx context.Context, imageHash string) ([]byte, error)
	// GetCompressed will return an encoded and compressed sbom.
	GetCompressed(ctx context.Context, imageHash string) (string, error)
}

type GetterImpl

type GetterImpl struct {
	// contains filtered or unexported fields
}

func (*GetterImpl) Get

func (g *GetterImpl) Get(ctx context.Context, imageHash string) ([]byte, error)

func (*GetterImpl) GetCompressed

func (g *GetterImpl) GetCompressed(ctx context.Context, imageHash string) (string, error)

type Setter

type Setter interface {
	Set(ctx context.Context, imageHash string, sbom []byte) error
}

type SetterImpl

type SetterImpl struct {
	// contains filtered or unexported fields
}

func (*SetterImpl) Set

func (g *SetterImpl) Set(ctx context.Context, imageHash string, sbom []byte) error

Jump to

Keyboard shortcuts

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