legacyclientconfig

package
v0.0.0-...-3942e77 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package legacyclientconfig provides api command helpers and validators to write compatibility tests for legacy client config apis

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultGetClientConfigCommand

func DefaultGetClientConfigCommand(version core.RuntimeVersion, opts ...CfgClientConfigArgsOption) *core.Command

DefaultGetClientConfigCommand creates a GetClientConfig Command with default input and output options

func DefaultStoreClientConfigCommand

func DefaultStoreClientConfigCommand(version core.RuntimeVersion, opts ...CfgClientConfigArgsOption) *core.Command

DefaultStoreClientConfigCommand creates a StoreClientConfig Command with default input and output options

func NewGetClientConfigCommand

func NewGetClientConfigCommand(inputOpts *GetClientConfigInputOptions, outputOpts *GetClientConfigOutputOptions) (*core.Command, error)

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

func NewStoreClientConfigCommand

func NewStoreClientConfigCommand(inputOpts *StoreClientConfigInputOptions, outputOpts *StoreClientConfigOutputOptions) (*core.Command, error)

NewStoreClientConfigCommand constructs a command to make a call to StoreClientConfig API Input Parameter: inputOpts has all input parameters which are required for Runtime StoreClientConfig API Input Parameter: outputOpts has details about expected output from Runtime StoreClientConfig API call Return: command to execute or error if any validations fails for StoreClientConfigInputOptions or StoreClientConfigOutputOptions This method does validate the input parameters StoreClientConfigInputOptions or StoreClientConfigOutputOptions based on Runtime API Version For more details about supported parameters refer to SetContextInputOptions or StoreClientConfigOutputOptions definition (and ClientConfigOpts struct, which is embedded)

Types

type CfgClientConfigArgs

type CfgClientConfigArgs struct {
	*core.RuntimeAPIVersion
	ClientConfigOpts   *types.ClientConfigOpts
	ValidationStrategy core.ValidationStrategy
	Error              string
}

CfgClientConfigArgs used to build the arguments for client config commands

type CfgClientConfigArgsOption

type CfgClientConfigArgsOption func(*CfgClientConfigArgs)

func WithCLIDiscoverySources

func WithCLIDiscoverySources(version core.RuntimeVersion, sources []types.PluginDiscoveryOpts) CfgClientConfigArgsOption

WithCLIDiscoverySources used to build the cli discovery sources arguments for client config commands

func WithDefaultCLIDiscoverySource

func WithDefaultCLIDiscoverySource(version core.RuntimeVersion) CfgClientConfigArgsOption

WithDefaultCLIDiscoverySource used to build the default cli discovery sources arguments for client config commands

func WithDefaultContextAndServer

func WithDefaultContextAndServer(version core.RuntimeVersion) CfgClientConfigArgsOption

WithDefaultContextAndServer used to build the default server and context arguments for client config commands

func WithDefaultFeatureFlags

func WithDefaultFeatureFlags() CfgClientConfigArgsOption

WithDefaultFeatureFlags used to build the default feature flags arguments for client config commands

func WithDefaultServer

func WithDefaultServer(version core.RuntimeVersion) CfgClientConfigArgsOption

WithDefaultServer used to build the default server arguments for client config commands

func WithError

func WithError(e string) CfgClientConfigArgsOption

func WithFeatureFlags

func WithFeatureFlags(features map[string]types.FeatureMap) CfgClientConfigArgsOption

WithFeatureFlags used to build the feature flags arguments for client config commands

type GetClientConfigInputOptions

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

GetClientConfigInputOptions used to generate GetClientConfig command

type GetClientConfigOutputOptions

type GetClientConfigOutputOptions struct {
	*core.RuntimeAPIVersion                         // required
	ClientConfigOpts        *types.ClientConfigOpts // 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
}

GetClientConfigOutputOptions used to generate GetClientConfig command

type StoreClientConfigInputOptions

type StoreClientConfigInputOptions struct {
	*core.RuntimeAPIVersion                         // required
	ClientConfigOpts        *types.ClientConfigOpts // required
}

StoreClientConfigInputOptions used to generate StoreClientConfig command

type StoreClientConfigOutputOptions

type StoreClientConfigOutputOptions 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
}

StoreClientConfigOutputOptions used to generate StoreClientConfig command

Jump to

Keyboard shortcuts

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