inspectimage

package
v0.22.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BOMDisplay

type BOMDisplay struct {
	Remote    []BOMEntryDisplay `json:"remote" yaml:"remote"`
	Local     []BOMEntryDisplay `json:"local" yaml:"local"`
	RemoteErr string            `json:"remote_error,omitempty" yaml:"remoteError,omitempty"`
	LocalErr  string            `json:"local_error,omitempty" yaml:"localError,omitempty"`
}

type BOMEntryDisplay

type BOMEntryDisplay struct {
	Name      string                 `toml:"name" json:"name" yaml:"name"`
	Version   string                 `toml:"version,omitempty" json:"version,omitempty" yaml:"version,omitempty"`
	Metadata  map[string]interface{} `toml:"metadata" json:"metadata" yaml:"metadata"`
	Buildpack dist.BuildpackRef      `json:"buildpacks" yaml:"buildpacks" toml:"buildpacks"`
}

func NewBOMDisplay

func NewBOMDisplay(info *client.ImageInfo) []BOMEntryDisplay

type BaseDisplay

type BaseDisplay struct {
	TopLayer  string `json:"top_layer" yaml:"top_layer" toml:"top_layer"`
	Reference string `json:"reference" yaml:"reference" toml:"reference"`
}

type GeneralInfo

type GeneralInfo struct {
	Name            string
	RunImageMirrors []config.RunImage
}

type InfoDisplay

type InfoDisplay struct {
	StackID         string                  `json:"stack" yaml:"stack" toml:"stack"`
	Base            BaseDisplay             `json:"base_image" yaml:"base_image" toml:"base_image"`
	RunImageMirrors []RunImageMirrorDisplay `json:"run_images" yaml:"run_images" toml:"run_images"`
	Buildpacks      []dist.BuildpackInfo    `json:"buildpacks" yaml:"buildpacks" toml:"buildpacks"`
	Processes       []ProcessDisplay        `json:"processes" yaml:"processes" toml:"processes"`
}

func NewInfoDisplay

func NewInfoDisplay(info *client.ImageInfo, generalInfo GeneralInfo) *InfoDisplay

type InspectOutput

type InspectOutput struct {
	ImageName string       `json:"image_name" yaml:"image_name" toml:"image_name"`
	Remote    *InfoDisplay `json:"remote_info" yaml:"remote_info" toml:"remote_info"`
	Local     *InfoDisplay `json:"local_info" yaml:"local_info" toml:"local_info"`
}

type ProcessDisplay

type ProcessDisplay struct {
	Type    string   `json:"type" yaml:"type" toml:"type"`
	Shell   string   `json:"shell" yaml:"shell" toml:"shell"`
	Command string   `json:"command" yaml:"command" toml:"command"`
	Default bool     `json:"default" yaml:"default" toml:"default"`
	Args    []string `json:"args" yaml:"args" toml:"args"`
}

type RunImageMirrorDisplay

type RunImageMirrorDisplay struct {
	Name           string `json:"name" yaml:"name" toml:"name"`
	UserConfigured bool   `json:"user_configured,omitempty" yaml:"user_configured,omitempty" toml:"user_configured,omitempty"`
}

type StackDisplay

type StackDisplay struct {
	ID     string   `json:"id" yaml:"id" toml:"id"`
	Mixins []string `json:"mixins,omitempty" yaml:"mixins,omitempty" toml:"mixins,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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