app_spec

package
v0.0.0-...-a4e6d78 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package app_spec is generated automatically from the JSON schema to provide a golang implementation of the Abstractions AppSpec specification.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	// Name corresponds to the JSON schema field "name".
	Name string `json:"name" yaml:"name" mapstructure:"name"`

	// Region corresponds to the JSON schema field "region".
	Region string `json:"region" yaml:"region" mapstructure:"region"`

	// Services corresponds to the JSON schema field "services".
	Services []Service `json:"services" yaml:"services" mapstructure:"services"`
}

func (*App) UnmarshalJSON

func (j *App) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler.

type OciImage

type OciImage struct {
	// The digest of the OCI image.
	Digest *string `json:"digest,omitempty" yaml:"digest,omitempty" mapstructure:"digest,omitempty"`

	// Name of the OCI Image registry, such as "docker.io" or "quay.io".
	Registry string `json:"registry" yaml:"registry" mapstructure:"registry"`

	// Name of the OCI Image repository, such as "ubuntu" or
	// "nginxinc/nginx-unprivileged".
	Repository string `json:"repository" yaml:"repository" mapstructure:"repository"`

	// An OCI Image tag as specified by the OCI Image Spec.
	Tag *string `json:"tag,omitempty" yaml:"tag,omitempty" mapstructure:"tag,omitempty"`
}

func (*OciImage) UnmarshalJSON

func (j *OciImage) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler.

type Service

type Service struct {
	// Image corresponds to the JSON schema field "image".
	Image OciImage `json:"image" yaml:"image" mapstructure:"image"`

	// Name corresponds to the JSON schema field "name".
	Name string `json:"name" yaml:"name" mapstructure:"name"`
}

func (*Service) UnmarshalJSON

func (j *Service) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler.

Jump to

Keyboard shortcuts

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