resource

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2020 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Overview

Package resource stores a wrapper over container.Containers, which implements types.Resource interface. It is stored in separate package to avoid cyclic imports.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Containers

type Containers struct {
	State      container.ContainersState `json:"state,omitempty"`
	Containers container.ContainersState `json:"containers,omitempty"`
}

Containers is a wrapper over container.Containers, which implemens type.ResourceConfig.

func (*Containers) New

func (c *Containers) New() (types.Resource, error)

New creates new container instance, but with generic types.Resource type.

func (*Containers) Validate added in v0.3.0

func (c *Containers) Validate() error

Validate validates Containers configuration.

Jump to

Keyboard shortcuts

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