views

package
v0.30.2 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// EnduroStoredPipelineMap is a map of attribute names in result type
	// EnduroStoredPipeline indexed by view name.
	EnduroStoredPipelineMap = map[string][]string{
		"default": []string{
			"id",
			"name",
		},
	}
)

Functions

func ValidateEnduroStoredPipeline

func ValidateEnduroStoredPipeline(result *EnduroStoredPipeline) (err error)

ValidateEnduroStoredPipeline runs the validations defined on the viewed result type EnduroStoredPipeline.

func ValidateEnduroStoredPipelineView

func ValidateEnduroStoredPipelineView(result *EnduroStoredPipelineView) (err error)

ValidateEnduroStoredPipelineView runs the validations defined on EnduroStoredPipelineView using the "default" view.

Types

type EnduroStoredPipeline

type EnduroStoredPipeline struct {
	// Type to project
	Projected *EnduroStoredPipelineView
	// View to render
	View string
}

EnduroStoredPipeline is the viewed result type that is projected based on a view.

type EnduroStoredPipelineView

type EnduroStoredPipelineView struct {
	// Name of the collection
	ID *string
	// Name of the collection
	Name *string
}

EnduroStoredPipelineView is a type that runs validations on a projected type.

Jump to

Keyboard shortcuts

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