views

package
v0.41.1 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// EnduroStoredPipelineMap is a map indexing the attribute names of
	// EnduroStoredPipeline by view name.
	EnduroStoredPipelineMap = map[string][]string{
		"default": {
			"id",
			"name",
			"capacity",
			"current",
			"status",
		},
	}
)

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 {
	// Identifier of pipeline
	ID *string
	// Name of the pipeline
	Name *string
	// Maximum concurrent transfers
	Capacity *int64
	// Current transfers
	Current *int64
	Status  *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