codes

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapTypeToFunctionElementCode

func MapTypeToFunctionElementCode(ctx context.Context, typ *module.Type) (code gcg.Code, err error)

func Unit

func Unit(file CodeFile) (unit processes.Unit)

Types

type CodeFile

type CodeFile interface {
	Name() (name string)
	Write(ctx context.Context) (err error)
}

func NewDeploysFile

func NewDeploysFile(dir string, services module.Services) (file CodeFile)

func NewServiceFile

func NewServiceFile(service *module.Service) (file CodeFile)

type CodeFileUnit added in v1.0.3

type CodeFileUnit struct {
	// contains filtered or unexported fields
}

func (*CodeFileUnit) Handle added in v1.0.3

func (unit *CodeFileUnit) Handle(ctx context.Context) (result interface{}, err error)

type DeploysFile

type DeploysFile struct {
	// contains filtered or unexported fields
}

func (*DeploysFile) Name

func (s *DeploysFile) Name() (name string)

func (*DeploysFile) Write

func (s *DeploysFile) Write(ctx context.Context) (err error)

type ServiceFile

type ServiceFile struct {
	// contains filtered or unexported fields
}

func (*ServiceFile) Name

func (s *ServiceFile) Name() (name string)

func (*ServiceFile) Write

func (s *ServiceFile) Write(ctx context.Context) (err error)

Jump to

Keyboard shortcuts

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