output

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOpenAPISpecJSON

func GetOpenAPISpecJSON() ([]byte, error)

GetOpenAPISpecJSON returns the raw OpenAPI spec as JSON bytes.

Types

type ConfigHTTP

type ConfigHTTP struct {
	ConfigType string  `form:"config_type" json:"config_type"`
	Host       string  `form:"host" json:"host"`
	Port       int     `form:"port" json:"port"`
	User       *string `form:"user,omitempty" json:"user,omitempty"`
	Password   *string `form:"password,omitempty" json:"password,omitempty"`
}

#/components/schemas/ConfigHttp

func (*ConfigHTTP) ApplyDefaults

func (s *ConfigHTTP) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type ConfigSSH

type ConfigSSH struct {
	ConfigType string  `form:"config_type" json:"config_type"`
	Host       *string `form:"host,omitempty" json:"host,omitempty"`
	Port       *int    `form:"port,omitempty" json:"port,omitempty"`
	User       *string `form:"user,omitempty" json:"user,omitempty"`
	PrivateKey *string `form:"private_key,omitempty" json:"private_key,omitempty"`
}

#/components/schemas/ConfigSsh

func (*ConfigSSH) ApplyDefaults

func (s *ConfigSSH) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type ConfigSaveReq

type ConfigSaveReq struct {
	// contains filtered or unexported fields
}

func (*ConfigSaveReq) ApplyDefaults

func (t *ConfigSaveReq) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (ConfigSaveReq) AsConfigHTTP

func (t ConfigSaveReq) AsConfigHTTP() (ConfigHTTP, error)

AsConfigHTTP returns the union data inside the ConfigSaveReq as a ConfigHTTP.

func (ConfigSaveReq) AsConfigSSH

func (t ConfigSaveReq) AsConfigSSH() (ConfigSSH, error)

AsConfigSSH returns the union data inside the ConfigSaveReq as a ConfigSSH.

func (ConfigSaveReq) Discriminator

func (t ConfigSaveReq) Discriminator() (string, error)

Discriminator extracts the discriminator property value from the union data.

func (*ConfigSaveReq) FromConfigHTTP

func (t *ConfigSaveReq) FromConfigHTTP(v ConfigHTTP) error

FromConfigHTTP overwrites any union data inside the ConfigSaveReq as the provided ConfigHTTP.

func (*ConfigSaveReq) FromConfigSSH

func (t *ConfigSaveReq) FromConfigSSH(v ConfigSSH) error

FromConfigSSH overwrites any union data inside the ConfigSaveReq as the provided ConfigSSH.

func (ConfigSaveReq) MarshalJSON

func (t ConfigSaveReq) MarshalJSON() ([]byte, error)

func (*ConfigSaveReq) MergeConfigHTTP

func (t *ConfigSaveReq) MergeConfigHTTP(v ConfigHTTP) error

MergeConfigHTTP performs a merge with any union data inside the ConfigSaveReq, using the provided ConfigHTTP.

func (*ConfigSaveReq) MergeConfigSSH

func (t *ConfigSaveReq) MergeConfigSSH(v ConfigSSH) error

MergeConfigSSH performs a merge with any union data inside the ConfigSaveReq, using the provided ConfigSSH.

func (*ConfigSaveReq) UnmarshalJSON

func (t *ConfigSaveReq) UnmarshalJSON(b []byte) error

func (ConfigSaveReq) ValueByDiscriminator

func (t ConfigSaveReq) ValueByDiscriminator() (any, error)

ValueByDiscriminator returns the union member based on the discriminator value.

Jump to

Keyboard shortcuts

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