configuration

package
v0.1.24 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

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

Jump to

Keyboard shortcuts

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