Documentation
¶
Index ¶
- Constants
- type Downgrader
- type Option
- func WithCodebase(name, connector string) Option
- func WithDefaultImage(image string) Option
- func WithDockerhub(connector string) Option
- func WithIdentifier(identifier string) Option
- func WithKubernetes(namespace, connector string) Option
- func WithName(name string) Option
- func WithOrganization(organization string) Option
- func WithProject(project string) Option
Constants ¶
const MaxDepth = 100
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Downgrader ¶
type Downgrader struct {
// contains filtered or unexported fields
}
Downgrader downgrades pipelines from the v0 harness configuration format to the v1 configuration format.
func New ¶
func New(options ...Option) *Downgrader
New creates a new Downgrader that downgrades pipelines from the v0 harness configuration format to the v1 configuration format.
func (*Downgrader) Downgrade ¶
func (d *Downgrader) Downgrade(b []byte) ([]byte, error)
Downgrade downgrades a v1 pipeline.
func (*Downgrader) DowngradeFile ¶
func (d *Downgrader) DowngradeFile(path string) ([]byte, error)
DowngradeFile downgrades a v1 pipeline.
func (*Downgrader) DowngradeFrom ¶
func (d *Downgrader) DowngradeFrom(src []*v1.Config) ([]byte, error)
DowngradeFrom downgrades a v1 pipeline object.
func (*Downgrader) DowngradeString ¶
func (d *Downgrader) DowngradeString(s string) ([]byte, error)
DowngradeString downgrades a v1 pipeline.
type Option ¶
type Option func(*Downgrader)
Option configures a Downgrade option.
func WithCodebase ¶
WithCodebase returns an option to set the codebase.
func WithDefaultImage ¶
WithDefaultImage returns an option to set the default Run step image
func WithDockerhub ¶
WithDockerhub returns an option to set the default dockerhub registry connector.
func WithIdentifier ¶
WithIdentifier returns an option to set the pipeline identifier.
func WithKubernetes ¶
WithKubernetes returns an option to set the default runtime to Kubernetes.
func WithOrganization ¶
WithOrganization returns an option to set the harness organization.
func WithProject ¶
WithProject returns an option to set the harness project name..