server

package
v0.24.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppsVersionToKubeVersion

func AppsVersionToKubeVersion(ver *version.Version) *version.Version

AppsVersionToKubeVersion defines the version mapping between the Apps component and kube

func DeepCopySchema

func DeepCopySchema(schema *spec.Schema) (*spec.Schema, error)

DeepCopySchema делает глубокую копию структуры spec.Schema

func NewCommandStartAppsServer

func NewCommandStartAppsServer(ctx context.Context, defaults *AppsServerOptions) *cobra.Command

NewCommandStartAppsServer provides a CLI handler for the 'start apps-server' command

Types

type AppsServerOptions

type AppsServerOptions struct {
	RecommendedOptions *genericoptions.RecommendedOptions

	StdOut io.Writer
	StdErr io.Writer

	AlternateDNS []string

	// Add a field to store the configuration path
	ResourceConfigPath string

	// Add a field to store the configuration
	ResourceConfig *config.ResourceConfig
}

AppsServerOptions holds the state for the Apps API server

func NewAppsServerOptions

func NewAppsServerOptions(out, errOut io.Writer) *AppsServerOptions

NewAppsServerOptions returns a new instance of AppsServerOptions

func (*AppsServerOptions) Complete

func (o *AppsServerOptions) Complete() error

Complete fills in the fields that are not set

func (*AppsServerOptions) Config

func (o *AppsServerOptions) Config() (*apiserver.Config, error)

Config returns the configuration for the API server based on AppsServerOptions

func (AppsServerOptions) RunAppsServer

func (o AppsServerOptions) RunAppsServer(ctx context.Context) error

RunAppsServer launches a new AppsServer based on AppsServerOptions

func (AppsServerOptions) Validate

func (o AppsServerOptions) Validate(args []string) error

Validate checks the correctness of the options

Jump to

Keyboard shortcuts

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