builder

package
v0.9.12 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeploymentType added in v0.9.0

type DeploymentType int8

DeploymentType indicates artifacts to use for deployment

const (
	// K8SManifest used to generate K8S Manifest that is compatible with kustomize
	K8SManifest DeploymentType = iota - 1

	// HemlChart Deployment artifact
	HemlChart

	// UnknownDeployemntType is invalid deployment type
	UnknownDeployemntType
)

func ValueOf added in v0.9.0

func ValueOf(d string) (DeploymentType, error)

ValueOf returns Typed DeploymentType

func (DeploymentType) String added in v0.9.0

func (d DeploymentType) String() string

type Options

type Options struct {
	Name            string
	ModuleName      string
	ResourceName    string
	ImageName       string
	Description     string
	DstDir          string
	HTTPRoutePrefix string
	DeploymentType  DeploymentType
	DomainName      string

	ProtocVersion         string
	ServiceBuilderVersion string
}

Options used for Service builder

type ServiceBuilder

type ServiceBuilder interface {
	Generate() error
}

ServiceBuilder that register templates can generates a service

func New

func New(templateProvider TemplateProvider) (ServiceBuilder, error)

New ServiceBuilder with a given template provider

type TemplateProvider

type TemplateProvider interface {
	GetOptions() *Options
	GetTemplates() map[string]*template.Template
}

TemplateProvider for service builder

Jump to

Keyboard shortcuts

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