applications

package
v0.0.0-...-e95280a Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter interface {
	ToApplication(parsed parsers.Application) (Application, error)
}

Adapter represents the application adapter

func NewAdapter

func NewAdapter() Adapter

NewAdapter creates a new adapter instance

type Application

type Application interface {
	Head() heads.Head
	Main() instructions.Instructions
	Tests() tests.Tests
	Labels() labels.Labels
	HasExtends() bool
	Extends() []parsers.ImportSingle
}

Application represents an application

type Builder

type Builder interface {
	Create() Builder
	WithHead(head heads.Head) Builder
	WithMain(main instructions.Instructions) Builder
	WithTests(tests tests.Tests) Builder
	WithLabels(labels labels.Labels) Builder
	WithExtends(extends []parsers.ImportSingle) Builder
	Now() (Application, error)
}

Builder represents an application builder

func NewBuilder

func NewBuilder() Builder

NewBuilder initializes the builder

Jump to

Keyboard shortcuts

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