clair

package
v0.0.0-...-d1992f0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(client clairclient.Client, image Image) ([]*clairclient.LayerEnvelope, error)

Get func init

func GetMD5Hash

func GetMD5Hash(text string) string

GetMD5Hash gets the MD5 hash of a string

func Push

func Push(client *clairclient.Client, image Image) error

Push will push an image's layers into Clair Headers are passed to Clair and reused on requests it makes to registries

Types

type Image

type Image struct {
	Digest   string   `json:"digest"`
	Registry string   `json:"registry"`
	Repo     string   `json:"repo"`
	Tag      string   `json:"tag"`
	Layers   []string `json:"layers"`
	Headers  map[string]string
}

Image struct init

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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