converter

package
v1.0.0-gitspaces-beta Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

WireSet provides a wire set for this package.

Functions

This section is empty.

Types

type ConvertArgs

type ConvertArgs struct {
	Repo         *types.Repository `json:"repository,omitempty"`
	RepoIsPublic bool              `json:"repo_is_public,omitempty"`
	Pipeline     *types.Pipeline   `json:"pipeline,omitempty"`
	Execution    *types.Execution  `json:"execution,omitempty"`
	File         *file.File        `json:"config,omitempty"`
}

ConvertArgs represents a request to the pipeline conversion service.

type Service

type Service interface {
	Convert(ctx context.Context, args *ConvertArgs) (*file.File, error)
}

Service converts a file which is in starlark/jsonnet form by looking at the extension and calling the appropriate parser.

func ProvideService

func ProvideService(fileService file.Service, publicAccess publicaccess.Service) Service

ProvideService provides a service which can convert templates.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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