Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SetConfigResponse ¶
type SetConfigResponse struct { Code string `json:"code" yaml:"code,omitempty"` //HTTP code to return (e.g. 200, 500, etc.) Description string `json:"description" yaml:"description,omitempty"` //info allied with preceding HTTP code ExpectedValues []string `json:"expectedValues" yaml:"expectedValues,omitempty"` //expected values to return // contains filtered or unexported fields }
SetConfigResponse is for SMA to use when responding to an incoming request to PUT (i.e. UPDATE) a resource.
func (SetConfigResponse) MarshalJSON ¶
func (sc SetConfigResponse) MarshalJSON() ([]byte, error)
Custom marshalling to make empty strings null
func (SetConfigResponse) String ¶
func (sc SetConfigResponse) String() string
The toString function for SetConfigResponse struct
func (*SetConfigResponse) UnmarshalJSON ¶
func (sc *SetConfigResponse) UnmarshalJSON(data []byte) error
Implements unmarshaling of JSON string to SetConfigResponse type instance
func (SetConfigResponse) Validate ¶
func (sc SetConfigResponse) Validate() (bool, error)
Validate satisfies the Validator interface
Click to show internal directories.
Click to hide internal directories.