Documentation
¶
Index ¶
- func GetOpenAPISpecJSON() ([]byte, error)
- type ConfigHTTP
- type ConfigSSH
- type ConfigSaveReq
- func (t *ConfigSaveReq) ApplyDefaults()
- func (t ConfigSaveReq) AsConfigHTTP() (ConfigHTTP, error)
- func (t ConfigSaveReq) AsConfigSSH() (ConfigSSH, error)
- func (t ConfigSaveReq) Discriminator() (string, error)
- func (t *ConfigSaveReq) FromConfigHTTP(v ConfigHTTP) error
- func (t *ConfigSaveReq) FromConfigSSH(v ConfigSSH) error
- func (t ConfigSaveReq) MarshalJSON() ([]byte, error)
- func (t *ConfigSaveReq) MergeConfigHTTP(v ConfigHTTP) error
- func (t *ConfigSaveReq) MergeConfigSSH(v ConfigSSH) error
- func (t *ConfigSaveReq) UnmarshalJSON(b []byte) error
- func (t ConfigSaveReq) ValueByDiscriminator() (any, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOpenAPISpecJSON ¶
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.