artifacts

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Artifact

type Artifact struct {
	Namespace   string
	Kind        string
	Labels      map[string]string
	Name        string
	Images      []string
	Credentials []docker.Auth
	RawResource map[string]interface{}
}

Artifact holds information for kubernetes scannable resources

func FromResource

func FromResource(resource unstructured.Unstructured, serverAuths map[string]docker.Auth) (*Artifact, error)

FromResource is a factory method to create an Artifact from an unstructured.Unstructured

Jump to

Keyboard shortcuts

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