resource

package
Version: v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetadataField

type MetadataField struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type OutParams

type OutParams struct {
	Wait        bool              `json:"wait"`
	WaitTimeout int               `json:"waitTimeout"`
	Input       map[string]string `json:"input"`
}

OutParams holds the out task params

type VRAResource

type VRAResource struct {
	Src       *VRASource
	Ver       *VRAVersion
	OutParams *OutParams
}

VRAResource holds the resource type configuration

func (*VRAResource) Out

func (r *VRAResource) Out(dir string) (version interface{}, metadata []interface{}, err error)

Out Puts the resource and returns the new version and metadata

func (*VRAResource) Params

func (r *VRAResource) Params() (params interface{})

Params returns pointer to the Out params definition struct

func (*VRAResource) Source

func (r *VRAResource) Source() interface{}

Source returns pointer to the source definition struct

func (*VRAResource) Version

func (r *VRAResource) Version() interface{}

Version returns pointer to the version definition struct

type VRASource

type VRASource struct {
	Host     string `json:"host"`
	Pipeline string `json:"pipeline"`
	APIToken string `json:"apiToken"`
}

VRASource holds the source configuration

type VRAVersion

type VRAVersion struct {
	Value string `json:"value"`
}

VRAVersion holds the version info

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL