metadata

package
v0.0.0-...-8822322 Latest Latest
Warning

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

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

Documentation

Overview

Package metadata provides api command helpers and validators to write compatibility tests for metadata apis

Package metadata contains all the cross version api compatibility tests for context apis

Index

Constants

View Source
const (
	CompatibilityTestsMetadataPatchStrategyKey   = "compatibility-tests.contexts.name"
	CompatibilityTestsMetadataPatchStrategyValue = "replace"
	CompatibilityTestsMetadataSettingsKey        = "useUnifiedConfig"
	CompatibilityTestsMetadataSettingsValue      = "true"
)

Variables

This section is empty.

Functions

func DefaultDeleteConfigMetadataSettingCommand

func DefaultDeleteConfigMetadataSettingCommand(version core.RuntimeVersion, opts ...CfgMetadataOptionArgs) *core.Command

DefaultDeleteConfigMetadataSettingCommand creates a DeleteConfigMetadataSetting Command with default input and output options

func DefaultGetConfigMetadataCommand

func DefaultGetConfigMetadataCommand(version core.RuntimeVersion, opts ...CfgMetadataOptionArgs) *core.Command

DefaultGetConfigMetadataCommand creates a GetConfigMetadata Command with default input and output options

func DefaultGetConfigMetadataPatchStrategyCommand

func DefaultGetConfigMetadataPatchStrategyCommand(version core.RuntimeVersion, opts ...CfgMetadataOptionArgs) *core.Command

DefaultGetConfigMetadataPatchStrategyCommand creates a GetConfigMetadataPatchStrategy Command with default input and output options

func DefaultGetConfigMetadataSettingCommand

func DefaultGetConfigMetadataSettingCommand(version core.RuntimeVersion, opts ...CfgMetadataOptionArgs) *core.Command

DefaultGetConfigMetadataSettingCommand creates a GetConfigMetadataSetting Command with default input and output options

func DefaultGetConfigMetadataSettingsCommand

func DefaultGetConfigMetadataSettingsCommand(version core.RuntimeVersion, opts ...CfgMetadataOptionArgs) *core.Command

DefaultGetConfigMetadataSettingsCommand creates a GetConfigMetadataSettings Command with default input and output options

func DefaultGetMetadataCommand

func DefaultGetMetadataCommand(version core.RuntimeVersion, opts ...CfgMetadataOptionArgs) *core.Command

DefaultGetMetadataCommand creates a GetMetadataCommand Command with default input and output options

func DefaultIsConfigMetadataSettingsEnabledCommand

func DefaultIsConfigMetadataSettingsEnabledCommand(version core.RuntimeVersion, opts ...CfgMetadataOptionArgs) *core.Command

DefaultIsConfigMetadataSettingsEnabledCommand creates a IsConfigMetadataSettingsEnabled Command with default input and output options

func DefaultSetConfigMetadataPatchStrategyCommand

func DefaultSetConfigMetadataPatchStrategyCommand(version core.RuntimeVersion, opts ...CfgMetadataOptionArgs) *core.Command

DefaultSetConfigMetadataPatchStrategyCommand creates a SetConfigMetadataPatchStrategy Command with default input and output options

func DefaultSetConfigMetadataSettingCommand

func DefaultSetConfigMetadataSettingCommand(version core.RuntimeVersion, opts ...CfgMetadataOptionArgs) *core.Command

DefaultSetConfigMetadataSettingCommand creates a SetConfigMetadataSetting Command with default input and output options

func DefaultUseUnifiedConfigCommand

func DefaultUseUnifiedConfigCommand(version core.RuntimeVersion, opts ...CfgMetadataOptionArgs) *core.Command

DefaultUseUnifiedConfigCommand creates a UseUnifiedConfig Command with default input and output options

func NewDeleteConfigMetadataSettingCommand

func NewDeleteConfigMetadataSettingCommand(inputOpts *DeleteConfigMetadataSettingInputOptions, outputOpts *DeleteConfigMetadataSettingOutputOptions) (*core.Command, error)

NewDeleteConfigMetadataSettingCommand constructs a command to make a call to specific runtime version DeleteConfigMetadata API Input Parameter: inputOpts has all input parameters which are required for Runtime DeleteConfigMetadata API Input Parameter: outputOpts has details about expected output from Runtime DeleteConfigMetadata API call Return: command to execute or error if any validations fails for DeleteConfigMetadataInputOptions or DeleteConfigMetadataOutputOptions This method does validate the input parameters DeleteConfigMetadataInputOptions or DeleteConfigMetadataOutputOptions based on Runtime API Version For more details about supported parameters refer to DeleteConfigMetadataInputOptions or DeleteConfigMetadataOutputOptions definition (and ConfigMetadataOpts struct, which is embedded)

func NewGetConfigMetadataCommand

func NewGetConfigMetadataCommand(inputOpts *GetConfigMetadataInputOptions, outputOpts *GetConfigMetadataOutputOptions) (*core.Command, error)

NewGetConfigMetadataCommand constructs a command to make a call to specific runtime version GetConfigMetadata API Input Parameter: inputOpts has all input parameters which are required for Runtime GetConfigMetadata API Input Parameter: outputOpts has details about expected output from Runtime GetConfigMetadata API call Return: command to execute or error if any validations fails for GetConfigMetadataInputOptions or GetConfigMetadataOutputOptions This method does validate the input parameters GetConfigMetadataInputOptions or GetConfigMetadataOutputOptions based on Runtime API Version For more details about supported parameters refer to GetConfigMetadataInputOptions or GetConfigMetadataOutputOptions definition (and ConfigMetadataOpts struct, which is embedded)

func NewGetConfigMetadataPatchStrategyCommand

func NewGetConfigMetadataPatchStrategyCommand(inputOpts *GetConfigMetadataPatchStrategyInputOptions, outputOpts *GetConfigMetadataPatchStrategyOutputOptions) (*core.Command, error)

NewGetConfigMetadataPatchStrategyCommand constructs a command to make a call to specific runtime version GetConfigMetadata API Input Parameter: inputOpts has all input parameters which are required for Runtime GetConfigMetadata API Input Parameter: outputOpts has details about expected output from Runtime GetConfigMetadata API call Return: command to execute or error if any validations fails for GetConfigMetadataInputOptions or GetConfigMetadataOutputOptions This method does validate the input parameters GetConfigMetadataInputOptions or GetConfigMetadataOutputOptions based on Runtime API Version For more details about supported parameters refer to GetConfigMetadataInputOptions or GetConfigMetadataOutputOptions definition (and ConfigMetadataOpts struct, which is embedded)

func NewGetConfigMetadataSettingCommand

func NewGetConfigMetadataSettingCommand(inputOpts *GetConfigMetadataSettingInputOptions, outputOpts *GetConfigMetadataSettingOutputOptions) (*core.Command, error)

NewGetConfigMetadataSettingCommand constructs a command to make a call to specific runtime version GetConfigMetadata API Input Parameter: inputOpts has all input parameters which are required for Runtime GetConfigMetadata API Input Parameter: outputOpts has details about expected output from Runtime GetConfigMetadata API call Return: command to execute or error if any validations fails for GetConfigMetadataInputOptions or GetConfigMetadataOutputOptions This method does validate the input parameters GetConfigMetadataInputOptions or GetConfigMetadataOutputOptions based on Runtime API Version For more details about supported parameters refer to GetConfigMetadataInputOptions or GetConfigMetadataOutputOptions definition (and ConfigMetadataOpts struct, which is embedded)

func NewGetConfigMetadataSettingsCommand

func NewGetConfigMetadataSettingsCommand(inputOpts *GetConfigMetadataSettingsInputOptions, outputOpts *GetConfigMetadataSettingsOutputOptions) (*core.Command, error)

NewGetConfigMetadataSettingsCommand constructs a command to make a call to specific runtime version GetConfigMetadata API Input Parameter: inputOpts has all input parameters which are required for Runtime GetConfigMetadata API Input Parameter: outputOpts has details about expected output from Runtime GetConfigMetadata API call Return: command to execute or error if any validations fails for GetConfigMetadataInputOptions or GetConfigMetadataOutputOptions This method does validate the input parameters GetConfigMetadataInputOptions or GetConfigMetadataOutputOptions based on Runtime API Version For more details about supported parameters refer to GetConfigMetadataInputOptions or GetConfigMetadataOutputOptions definition (and ConfigMetadataOpts struct, which is embedded)

func NewGetMetadataCommand

func NewGetMetadataCommand(inputOpts *GetMetadataInputOptions, outputOpts *GetMetadataOutputOptions) (*core.Command, error)

NewGetMetadataCommand constructs a command to make a call to specific runtime version GetConfigMetadata API Input Parameter: inputOpts has all input parameters which are required for Runtime GetConfigMetadata API Input Parameter: outputOpts has details about expected output from Runtime GetConfigMetadata API call Return: command to execute or error if any validations fails for GetConfigMetadataInputOptions or GetConfigMetadataOutputOptions This method does validate the input parameters GetConfigMetadataInputOptions or GetConfigMetadataOutputOptions based on Runtime API Version For more details about supported parameters refer to GetConfigMetadataInputOptions or GetConfigMetadataOutputOptions definition (and ConfigMetadataOpts struct, which is embedded)

func NewIsConfigMetadataSettingsEnabledCommand

func NewIsConfigMetadataSettingsEnabledCommand(inputOpts *IsConfigMetadataSettingsEnabledInputOptions, outputOpts *IsConfigMetadataSettingsEnabledOutputOptions) (*core.Command, error)

NewIsConfigMetadataSettingsEnabledCommand constructs a command to make a call to specific runtime version GetConfigMetadata API Input Parameter: inputOpts has all input parameters which are required for Runtime GetConfigMetadata API Input Parameter: outputOpts has details about expected output from Runtime GetConfigMetadata API call Return: command to execute or error if any validations fails for GetConfigMetadataInputOptions or GetConfigMetadataOutputOptions This method does validate the input parameters GetConfigMetadataInputOptions or GetConfigMetadataOutputOptions based on Runtime API Version For more details about supported parameters refer to GetConfigMetadataInputOptions or GetConfigMetadataOutputOptions definition (and ConfigMetadataOpts struct, which is embedded)

func NewSetConfigMetadataPatchStrategyCommand

func NewSetConfigMetadataPatchStrategyCommand(inputOpts *SetConfigMetadataPatchStrategyInputOptions, outputOpts *SetConfigMetadataPatchStrategyOutputOptions) (*core.Command, error)

NewSetConfigMetadataPatchStrategyCommand constructs a command to make a call to specific runtime version SetConfigMetadata API Input Parameter: inputOpts has all input parameters which are required for Runtime SetConfigMetadata API Input Parameter: outputOpts has details about expected output from Runtime SetConfigMetadata API call Return: command to execute or error if any validations fails for SetConfigMetadataInputOptions or SetConfigMetadataOutputOptions This method does validate the input parameters SetConfigMetadataInputOptions or SetConfigMetadataOutputOptions based on Runtime API Version For more details about supported parameters refer to SetConfigMetadataInputOptions or SetConfigMetadataOutputOptions definition (and ConfigMetadataOpts struct, which is embedded)

func NewSetConfigMetadataSettingCommand

func NewSetConfigMetadataSettingCommand(inputOpts *SetConfigMetadataSettingInputOptions, outputOpts *SetConfigMetadataSettingOutputOptions) (*core.Command, error)

NewSetConfigMetadataSettingCommand constructs a command to make a call to specific runtime version SetConfigMetadata API Input Parameter: inputOpts has all input parameters which are required for Runtime SetConfigMetadata API Input Parameter: outputOpts has details about expected output from Runtime SetConfigMetadata API call Return: command to execute or error if any validations fails for SetConfigMetadataInputOptions or SetConfigMetadataOutputOptions This method does validate the input parameters SetConfigMetadataInputOptions or SetConfigMetadataOutputOptions based on Runtime API Version For more details about supported parameters refer to SetConfigMetadataInputOptions or SetConfigMetadataOutputOptions definition (and ConfigMetadataOpts struct, which is embedded)

func NewUseUnifiedConfigCommand

func NewUseUnifiedConfigCommand(inputOpts *UseUnifiedConfigInputOptions, outputOpts *UseUnifiedConfigOutputOptions) (*core.Command, error)

NewUseUnifiedConfigCommand constructs a command to make a call to specific runtime version GetConfigMetadata API Input Parameter: inputOpts has all input parameters which are required for Runtime GetConfigMetadata API Input Parameter: outputOpts has details about expected output from Runtime GetConfigMetadata API call Return: command to execute or error if any validations fails for GetConfigMetadataInputOptions or GetConfigMetadataOutputOptions This method does validate the input parameters GetConfigMetadataInputOptions or GetConfigMetadataOutputOptions based on Runtime API Version For more details about supported parameters refer to GetConfigMetadataInputOptions or GetConfigMetadataOutputOptions definition (and ConfigMetadataOpts struct, which is embedded)

Types

type CfgMetadataArgs

type CfgMetadataArgs struct {
	*core.RuntimeAPIVersion // required
	MetadataOpts            *types.MetadataOpts
	ConfigMetadataOpts      *types.ConfigMetadataOpts
	PatchStrategy           map[string]string
	Settings                map[string]string
	Key                     string // required
	Value                   string // required
	Enabled                 bool
	ValidationStrategy      core.ValidationStrategy // Type of validation to be performed i.e. exact or partial. default is partial
	Error                   string                  // expected error message could be the sub string of actual error message
}

func NewCfgMetadataArgs

func NewCfgMetadataArgs(opts ...CfgMetadataOptionArgs) *CfgMetadataArgs

type CfgMetadataOptionArgs

type CfgMetadataOptionArgs func(*CfgMetadataArgs)

func WithEnabled

func WithEnabled(e bool) CfgMetadataOptionArgs

func WithError

func WithError(e string) CfgMetadataOptionArgs

func WithKey

func WithKey(k string) CfgMetadataOptionArgs

func WithMetadataSettings

func WithMetadataSettings(ms map[string]string) CfgMetadataOptionArgs

func WithPatchStrategy

func WithPatchStrategy(ps map[string]string) CfgMetadataOptionArgs

func WithValue

func WithValue(v string) CfgMetadataOptionArgs

type DeleteConfigMetadataSettingInputOptions

type DeleteConfigMetadataSettingInputOptions struct {
	*core.RuntimeAPIVersion        // required
	Key                     string // required
}

DeleteConfigMetadataSettingInputOptions used to generate DeleteEnv command

func (*DeleteConfigMetadataSettingInputOptions) Validate

Validate the opts as per runtime version i.e. check whether the expected fields are supported for the runtime version specified

type DeleteConfigMetadataSettingOutputOptions

type DeleteConfigMetadataSettingOutputOptions struct {
	*core.RuntimeAPIVersion                         // required
	ValidationStrategy      core.ValidationStrategy // Type of validation to be performed i.e. exact or partial. default is partial
	Error                   string                  // expected error message could be the sub string of actual error message
}

DeleteConfigMetadataSettingOutputOptions used to generate DeleteEnv command

type GetConfigMetadataInputOptions

type GetConfigMetadataInputOptions struct {
	*core.RuntimeAPIVersion // required
}

GetConfigMetadataInputOptions used to generate GetEnv command

type GetConfigMetadataOutputOptions

type GetConfigMetadataOutputOptions struct {
	*core.RuntimeAPIVersion // required
	ConfigMetadataOpts      *types.ConfigMetadataOpts
	Error                   string
	ValidationStrategy      core.ValidationStrategy // Type of validation to be performed i.e. exact or partial. default is partial
}

GetConfigMetadataOutputOptions used to generate GetEnv command

func (*GetConfigMetadataOutputOptions) Validate

func (opts *GetConfigMetadataOutputOptions) Validate() (bool, error)

Validate the opts as per runtime version i.e. check whether the expected fields are supported for the runtime version specified

type GetConfigMetadataPatchStrategyInputOptions

type GetConfigMetadataPatchStrategyInputOptions struct {
	*core.RuntimeAPIVersion // required
}

GetConfigMetadataPatchStrategyInputOptions used to generate GetEnv command

type GetConfigMetadataPatchStrategyOutputOptions

type GetConfigMetadataPatchStrategyOutputOptions struct {
	*core.RuntimeAPIVersion // required
	PatchStrategy           map[string]string
	Error                   string
	ValidationStrategy      core.ValidationStrategy // Type of validation to be performed i.e. exact or partial. default is partial
}

GetConfigMetadataPatchStrategyOutputOptions used to generate GetEnv command

func (*GetConfigMetadataPatchStrategyOutputOptions) Validate

Validate the opts as per runtime version i.e. check whether the expected fields are supported for the runtime version specified

type GetConfigMetadataSettingInputOptions

type GetConfigMetadataSettingInputOptions struct {
	*core.RuntimeAPIVersion // required
	Key                     string
}

GetConfigMetadataSettingInputOptions used to generate GetEnv command

func (*GetConfigMetadataSettingInputOptions) Validate

func (opts *GetConfigMetadataSettingInputOptions) Validate() (bool, error)

Validate the opts as per runtime version i.e. check whether the expected fields are supported for the runtime version specified

type GetConfigMetadataSettingOutputOptions

type GetConfigMetadataSettingOutputOptions struct {
	*core.RuntimeAPIVersion // required
	Value                   string
	Error                   string
	ValidationStrategy      core.ValidationStrategy // Type of validation to be performed i.e. exact or partial. default is partial
}

GetConfigMetadataSettingOutputOptions used to generate GetEnv command

func (*GetConfigMetadataSettingOutputOptions) Validate

func (opts *GetConfigMetadataSettingOutputOptions) Validate() (bool, error)

Validate the opts as per runtime version i.e. check whether the expected fields are supported for the runtime version specified

type GetConfigMetadataSettingsInputOptions

type GetConfigMetadataSettingsInputOptions struct {
	*core.RuntimeAPIVersion // required
}

GetConfigMetadataSettingsInputOptions used to generate GetEnv command

type GetConfigMetadataSettingsOutputOptions

type GetConfigMetadataSettingsOutputOptions struct {
	*core.RuntimeAPIVersion // required
	MetadataSettings        map[string]string
	Error                   string
	ValidationStrategy      core.ValidationStrategy // Type of validation to be performed i.e. exact or partial. default is partial
}

GetConfigMetadataSettingsOutputOptions used to generate GetEnv command

func (*GetConfigMetadataSettingsOutputOptions) Validate

Validate the opts as per runtime version i.e. check whether the expected fields are supported for the runtime version specified

type GetMetadataInputOptions

type GetMetadataInputOptions struct {
	*core.RuntimeAPIVersion // required
}

GetMetadataInputOptions used to generate GetEnv command

type GetMetadataOutputOptions

type GetMetadataOutputOptions struct {
	*core.RuntimeAPIVersion // required
	MetadataOpts            *types.MetadataOpts
	Error                   string
	ValidationStrategy      core.ValidationStrategy // Type of validation to be performed i.e. exact or partial. default is partial
}

GetMetadataOutputOptions used to generate GetEnv command

func (*GetMetadataOutputOptions) Validate

func (opts *GetMetadataOutputOptions) Validate() (bool, error)

Validate the opts as per runtime version i.e. check whether the expected fields are supported for the runtime version specified

type IsConfigMetadataSettingsEnabledInputOptions

type IsConfigMetadataSettingsEnabledInputOptions struct {
	*core.RuntimeAPIVersion // required
	Key                     string
}

IsConfigMetadataSettingsEnabledInputOptions used to generate GetEnv command

func (*IsConfigMetadataSettingsEnabledInputOptions) Validate

Validate the opts as per runtime version i.e. check whether the expected fields are supported for the runtime version specified

type IsConfigMetadataSettingsEnabledOutputOptions

type IsConfigMetadataSettingsEnabledOutputOptions struct {
	*core.RuntimeAPIVersion // required
	Enabled                 bool
	Error                   string
	ValidationStrategy      core.ValidationStrategy // Type of validation to be performed i.e. exact or partial. default is partial
}

IsConfigMetadataSettingsEnabledOutputOptions used to generate GetEnv command

type SetConfigMetadataPatchStrategyInputOptions

type SetConfigMetadataPatchStrategyInputOptions struct {
	*core.RuntimeAPIVersion        // required
	Key                     string // required
	Value                   string // required
}

SetConfigMetadataPatchStrategyInputOptions used to generate SetEnv command

func (*SetConfigMetadataPatchStrategyInputOptions) Validate

Validate the setEnvInputOptions as per runtime version i.e. check whether mandatory fields are set and throw error if missing

type SetConfigMetadataPatchStrategyOutputOptions

type SetConfigMetadataPatchStrategyOutputOptions struct {
	*core.RuntimeAPIVersion                         // required
	ValidationStrategy      core.ValidationStrategy // Type of validation to be performed i.e. exact or partial. default is partial
	Error                   string                  // expected error message could be the sub string of actual error message
}

SetConfigMetadataPatchStrategyOutputOptions used to generate SetEnv command

type SetConfigMetadataSettingInputOptions

type SetConfigMetadataSettingInputOptions struct {
	*core.RuntimeAPIVersion        // required
	Key                     string // required
	Value                   string // required
}

SetConfigMetadataSettingInputOptions used to generate SetEnv command

func (*SetConfigMetadataSettingInputOptions) Validate

func (opts *SetConfigMetadataSettingInputOptions) Validate() (bool, error)

Validate the setEnvInputOptions as per runtime version i.e. check whether mandatory fields are set and throw error if missing

type SetConfigMetadataSettingOutputOptions

type SetConfigMetadataSettingOutputOptions struct {
	*core.RuntimeAPIVersion                         // required
	ValidationStrategy      core.ValidationStrategy // Type of validation to be performed i.e. exact or partial. default is partial
	Error                   string                  // expected error message could be the sub string of actual error message
}

SetConfigMetadataSettingOutputOptions used to generate SetEnv command

type UseUnifiedConfigInputOptions

type UseUnifiedConfigInputOptions struct {
	*core.RuntimeAPIVersion // required
}

UseUnifiedConfigInputOptions used to generate GetEnv command

type UseUnifiedConfigOutputOptions

type UseUnifiedConfigOutputOptions struct {
	*core.RuntimeAPIVersion // required
	Enabled                 bool
	Error                   string
	ValidationStrategy      core.ValidationStrategy // Type of validation to be performed i.e. exact or partial. default is partial
}

UseUnifiedConfigOutputOptions used to generate GetEnv command

Jump to

Keyboard shortcuts

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