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 ¶
var ErrUnanalizedLayer = errors.New("layer cannot be analyzed")
ErrUnanalizedLayer is returned when the layer was not correctly analyzed
Functions ¶
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