clair

package
v0.0.0-...-4678ade Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2020 License: BSD-3-Clause, Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

CODE FROM https://github.com/jgsqware/clairctl

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

CODE FROM https://github.com/jgsqware/clairctl

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

CODE FROM https://github.com/jgsqware/clairctl

Index

Constants

This section is empty.

Variables

View Source
var ErrUnanalizedLayer = errors.New("layer cannot be analyzed")

ErrUnanalizedLayer is returned when the layer was not correctly analyzed

Functions

func Config

func Config()

Config configure Clair from configFile

func Push

func Push(image reference.NamedTagged, manifest distribution.Manifest) error

Types

type ImageAnalysis

type ImageAnalysis struct {
	Registry, ImageName, Tag string
	Layers                   []v1.LayerEnvelope
}

ImageAnalysis Full image analysis

func Analyze

func Analyze(image reference.NamedTagged, manifest distribution.Manifest) (ImageAnalysis, error)

Analyze return Clair Image analysis

func (ImageAnalysis) MostRecentLayer

func (imageAnalysis ImageAnalysis) MostRecentLayer() v1.LayerEnvelope

MostRecentLayer returns the most recent layer of an ImageAnalysis object

func (ImageAnalysis) String

func (imageAnalysis ImageAnalysis) String() string

Jump to

Keyboard shortcuts

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