resources

package
v0.0.0-...-b0bff92 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckDockerDetails

func CheckDockerDetails(name string, details DockerImageDetails) error

CheckDockerDetails validates the provided resource is suitable for use.

func ValidateDockerRegistryPath

func ValidateDockerRegistryPath(path string) error

ValidateDockerRegistryPath ensures the registry path is valid (i.e. api.jujucharms.com@sha256:deadbeef)

Types

type DockerImageDetails

type DockerImageDetails struct {
	// RegistryPath holds the path of the Docker image (including host and sha256) in a docker registry.
	RegistryPath string `json:"ImageName" yaml:"registrypath"`

	docker.ImageRepoDetails `json:",inline" yaml:",inline"`
}

DockerImageDetails holds the details for a Docker resource type.

func UnmarshalDockerResource

func UnmarshalDockerResource(data []byte) (DockerImageDetails, error)

UnmarshalDockerResource unmarshals the docker resource file from data.

func (DockerImageDetails) IsPrivate

func (did DockerImageDetails) IsPrivate() bool

IsPrivate shows if the image repo is private or not.

Jump to

Keyboard shortcuts

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