resource

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2020 License: Apache-2.0 Imports: 2 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 {
	PreviousState container.ContainersState `json:"state,omitempty"`
	DesiredState  container.ContainersState `json:"desiredState,omitempty"`
}

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

func (*Containers) New

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳