generator

package
v1.1.0-rc Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCredentials

func GenerateCredentials(opts GenerateCredentialsOptions) (storage.CredentialSet, error)

GenerateCredentials will generate a credential set based on the given options

Types

type GenerateCredentialsOptions

type GenerateCredentialsOptions struct {
	GenerateOptions

	// Credentials from the bundle
	Credentials map[string]bundle.Credential
}

GenerateCredentialsOptions are the options to generate a Credential Set

type GenerateOptions

type GenerateOptions struct {
	// Name of the parameter or credential set.
	Name      string
	Namespace string
	Labels    map[string]string

	// Should we survey?
	Silent bool
}

GenerateOptions are the options to generate a parameter or credential set

type GenerateParametersOptions

type GenerateParametersOptions struct {
	GenerateOptions

	// Bundle to generate parameters from
	Bundle cnab.ExtendedBundle
}

GenerateParametersOptions are the options to generate a Parameter Set

func (*GenerateParametersOptions) GenerateParameters added in v0.28.0

func (opts *GenerateParametersOptions) GenerateParameters() (storage.ParameterSet, error)

GenerateParameters will generate a parameter set based on the given options

type SurveyType

type SurveyType string

SurveyType indicates whether the survey is for a parameter or credential

Jump to

Keyboard shortcuts

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