entrypoint

package
v0.6.9 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Entrypoint manage pipeline's definitions to get Pipeline ready to be used by the core

Index

Constants

View Source
const (
	CONTENT_REF     = iota // Content is a reference to something
	CONTENT_REF_FS         // Content is a reference to something on the filesystem
	CONTENT_REF_URL        // Content is a reference to something on the web (http, https)
	CONTENT_INLINE         // Content is a value
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Entrypoint

type Entrypoint struct {
	FullPath     string
	Path         string
	Kind         int // Kind of content
	Workingpath  string
	Content      string
	PipelineName string
	PipelineUuid string
}

Entrypoint is a the pipeline's definition ressource

func New

func New(contentValue string, cwl string, contentKind int) (*Entrypoint, error)

Create a new entrypoint (pipeline definition)

- contentValue may be a filesystem path, a URL or a string,

- cwl Working Location should be provided to the parser, it could be an filesystem dir, a baseUrl base path, this part is used when the entrypoint contains references to other configurations. @see use, route processors.

- contentKind refer to the kind of contentValue @see CONTENT_* constants

func (*Entrypoint) Pipeline

func (e *Entrypoint) Pipeline() (*core.Pipeline, error)

type EntrypointList

type EntrypointList struct {
	Items []*Entrypoint
}

List of Entrypoints

func (*EntrypointList) AddEntrypoint

func (e *EntrypointList) AddEntrypoint(loc *Entrypoint) error

AddEntrypoint add the provided entrypoint to the list

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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