resources

package
v1.17.3 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2018 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 4 more Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resource

type Resource interface {
	// Init is used to initialize the resource
	Init() error
	// Setup sets up the resource
	Setup(task *api.Task) error
	// Cleanup removes the resource
	Cleanup(task *api.Task) error
	// ApplyConfigDependencies applies config parameters for the resources
	ApplyConfigDependencies(cfg *config.Config)
}

Resource interface to interact with platform level resource constructs Resource is exposed as a platform agnostic abstraction

func New

func New() Resource

New is used to return an object that implements the Resource interface

Directories

Path Synopsis
Package mock_resources is a generated GoMock package.
Package mock_resources is a generated GoMock package.

Jump to

Keyboard shortcuts

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