inspect

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const ContainerType = "container"

ContainerType defines the container type (used by default).

Variables

This section is empty.

Functions

This section is empty.

Types

type AppAttributes

type AppAttributes struct {
	Environment map[string]string `json:"environment,omitempty"`
	Labels      map[string]string `json:"labels,omitempty"`
	Runscript   string            `json:"runscript,omitempty"`
	Startscript string            `json:"startscript,omitempty"`
	Test        string            `json:"test,omitempty"`
	Helpfile    string            `json:"helpfile,omitempty"`
}

AppAttributes describes app metadata attributes.

type Attributes

type Attributes struct {
	Apps        map[string]*AppAttributes `json:"apps,omitempty"`
	Environment map[string]string         `json:"environment,omitempty"`
	Labels      map[string]string         `json:"labels,omitempty"`
	Runscript   string                    `json:"runscript,omitempty"`
	Test        string                    `json:"test,omitempty"`
	Helpfile    string                    `json:"helpfile,omitempty"`
	Deffile     string                    `json:"deffile,omitempty"`
	Startscript string                    `json:"startscript,omitempty"`
}

Attributes describes metadata attributes of Apptainer containers.

type Data

type Data struct {
	Attributes Attributes `json:"attributes"`
}

Data holds the container metadata attributes.

type Metadata

type Metadata struct {
	Data `json:"data"`
	Type string `json:"type"`
}

Metadata describes the JSON format of Apptainer container metadata.

func NewMetadata

func NewMetadata() *Metadata

NewMetadata returns an initialized instances of Metadata.

func (*Metadata) AddApp

func (m *Metadata) AddApp(name string)

Jump to

Keyboard shortcuts

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