circle

package
v0.0.2 Latest Latest
Warning

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

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

Documentation

Overview

Package circle converts Circle pipelines to Harness pipelines.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Converter

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

Converter converts a Circle pipeline to a harness v1 pipeline.

func New

func New(options ...Option) *Converter

New creates a new Converter that converts a Circle pipeline to a harness v1 pipeline.

func (*Converter) Convert

func (d *Converter) Convert(r io.Reader) ([]byte, error)

Convert downgrades a v1 pipeline.

func (*Converter) ConvertBytes

func (d *Converter) ConvertBytes(b []byte) ([]byte, error)

ConvertString downgrades a v1 pipeline.

func (*Converter) ConvertFile

func (d *Converter) ConvertFile(p string) ([]byte, error)

ConvertFile downgrades a v1 pipeline.

func (*Converter) ConvertString

func (d *Converter) ConvertString(s string) ([]byte, error)

ConvertString downgrades a v1 pipeline.

type Option

type Option func(*Converter)

Option configures a Converter option.

func WithDockerhub

func WithDockerhub(connector string) Option

WithDockerhub returns an option to set the default dockerhub registry connector.

func WithGCS

func WithGCS(bucket, token string) Option

WithGCS returns an option to the set the default storage provider to GCS.

func WithKubernetes

func WithKubernetes(namespace, connector string) Option

WithKubernetes returns an option to set the default runtime to Kubernetes.

func WithS3

func WithS3(access, secret, region, bucket string) Option

WithS3 returns an option to the set the default storage provider to S3.

Jump to

Keyboard shortcuts

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