tests

package
v1.0.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InputBuilder

type InputBuilder struct {
	*models_tests.CraftConfigBuilder
	API   string
	Chart string
}

InputBuilder is a builder to set the inputs during init command.

func NewInputBuilder

func NewInputBuilder() *InputBuilder

NewInputBuilder creates a new InputBuilder.

func (*InputBuilder) Build

func (r *InputBuilder) Build() (*strings.Reader, error)

Build builds the InputBuilder into a string reader to use on init command.

func (*InputBuilder) SetAPI

func (r *InputBuilder) SetAPI(api string) *InputBuilder

SetAPI sets the API response.

func (*InputBuilder) SetChart

func (r *InputBuilder) SetChart(chart string) *InputBuilder

SetChart sets the chart response.

func (*InputBuilder) SetMaintainers

func (r *InputBuilder) SetMaintainers(maintainer ...models.Maintainer) *InputBuilder

SetMaintainers sets the maintainers.

func (*InputBuilder) SetOpenAPIVersion

func (r *InputBuilder) SetOpenAPIVersion(openAPIVersion string) *InputBuilder

SetOpenAPIVersion sets the openapi version.

Jump to

Keyboard shortcuts

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