containerapi

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 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 ContainerAPI

type ContainerAPI struct {
	Client *http.Client
	Root   *url.URL
}

ContainerAPI gets container metadata from Red Hat's API.

func (*ContainerAPI) GetCPEs

func (c *ContainerAPI) GetCPEs(ctx context.Context, nvr, arch string) ([]string, error)

GetCPEs fetches CPE information for given build from Red Hat Container API.

type ContainerImage

type ContainerImage struct {
	CPEs       []string   `json:"cpe_ids"`
	ParsedData ParsedData `json:"parsed_data"`
}

type ContainerImages

type ContainerImages struct {
	Images []ContainerImage `json:"data"`
}

type Label

type Label struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type ParsedData

type ParsedData struct {
	Architecture string  `json:"architecture"`
	Labels       []Label `json:"labels"`
}

Jump to

Keyboard shortcuts

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