types

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2020 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 ComplexError

type ComplexError struct {
	Message *string

	TopLevel *string
	Nested   *ComplexNestedErrorData
}

This error is thrown when a request is invalid.

func (*ComplexError) Error

func (e *ComplexError) Error() string

func (*ComplexError) ErrorCode

func (e *ComplexError) ErrorCode() string

func (*ComplexError) ErrorFault

func (e *ComplexError) ErrorFault() smithy.ErrorFault

func (*ComplexError) ErrorMessage

func (e *ComplexError) ErrorMessage() string

type ComplexNestedErrorData

type ComplexNestedErrorData struct {
	Foo *string
}

type EmptyStruct

type EmptyStruct struct {
}

type ErrorWithMembers

type ErrorWithMembers struct {
	Message *string

	Code         *string
	ComplexData  *KitchenSink
	IntegerField *int32
	ListField    []*string
	MapField     map[string]*string
	StringField  *string
}

func (*ErrorWithMembers) Error

func (e *ErrorWithMembers) Error() string

func (*ErrorWithMembers) ErrorCode

func (e *ErrorWithMembers) ErrorCode() string

func (*ErrorWithMembers) ErrorFault

func (e *ErrorWithMembers) ErrorFault() smithy.ErrorFault

func (*ErrorWithMembers) ErrorMessage

func (e *ErrorWithMembers) ErrorMessage() string

type ErrorWithoutMembers

type ErrorWithoutMembers struct {
	Message *string
}

func (*ErrorWithoutMembers) Error

func (e *ErrorWithoutMembers) Error() string

func (*ErrorWithoutMembers) ErrorCode

func (e *ErrorWithoutMembers) ErrorCode() string

func (*ErrorWithoutMembers) ErrorFault

func (e *ErrorWithoutMembers) ErrorFault() smithy.ErrorFault

func (*ErrorWithoutMembers) ErrorMessage

func (e *ErrorWithoutMembers) ErrorMessage() string

type FooEnum

type FooEnum string
const (
	FooEnumFoo FooEnum = "Foo"
	FooEnumBaz FooEnum = "Baz"
	FooEnumBar FooEnum = "Bar"
	FooEnum1   FooEnum = "1"
	FooEnum0   FooEnum = "0"
)

Enum values for FooEnum

func (FooEnum) Values added in v0.1.3

func (FooEnum) Values() []FooEnum

Values returns all known values for FooEnum. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type FooError

type FooError struct {
	Message *string
}

This error has test cases that test some of the dark corners of Amazon service framework history. It should only be implemented by clients.

func (*FooError) Error

func (e *FooError) Error() string

func (*FooError) ErrorCode

func (e *FooError) ErrorCode() string

func (*FooError) ErrorFault

func (e *FooError) ErrorFault() smithy.ErrorFault

func (*FooError) ErrorMessage

func (e *FooError) ErrorMessage() string

type GreetingStruct

type GreetingStruct struct {
	Hi *string
}

type InvalidGreeting

type InvalidGreeting struct {
	Message *string
}

This error is thrown when an invalid greeting value is provided.

func (*InvalidGreeting) Error

func (e *InvalidGreeting) Error() string

func (*InvalidGreeting) ErrorCode

func (e *InvalidGreeting) ErrorCode() string

func (*InvalidGreeting) ErrorFault

func (e *InvalidGreeting) ErrorFault() smithy.ErrorFault

func (*InvalidGreeting) ErrorMessage

func (e *InvalidGreeting) ErrorMessage() string

type KitchenSink

type KitchenSink struct {
	Blob []byte

	Boolean *bool

	Double *float64

	EmptyStruct *EmptyStruct

	Float *float32

	HttpdateTimestamp *time.Time

	Integer *int32

	Iso8601Timestamp *time.Time

	JsonValue *string

	ListOfLists [][]*string

	ListOfMapsOfStrings []map[string]*string

	ListOfStrings []*string

	ListOfStructs []*SimpleStruct

	Long *int64

	MapOfListsOfStrings map[string][]*string

	MapOfMaps map[string]map[string]*string

	MapOfStrings map[string]*string

	MapOfStructs map[string]*SimpleStruct

	RecursiveList []*KitchenSink

	RecursiveMap map[string]*KitchenSink

	RecursiveStruct *KitchenSink

	SimpleStruct *SimpleStruct

	String_ *string

	StructWithLocationName *StructWithLocationName

	Timestamp *time.Time

	UnixTimestamp *time.Time
}

type MyUnion

type MyUnion interface {
	// contains filtered or unexported methods
}

A union with a representative set of types for members.

type MyUnionMemberBlobValue

type MyUnionMemberBlobValue struct {
	Value []byte
}

type MyUnionMemberBooleanValue

type MyUnionMemberBooleanValue struct {
	Value bool
}

type MyUnionMemberEnumValue

type MyUnionMemberEnumValue struct {
	Value FooEnum
}

type MyUnionMemberListValue

type MyUnionMemberListValue struct {
	Value []*string
}

type MyUnionMemberMapValue

type MyUnionMemberMapValue struct {
	Value map[string]*string
}

type MyUnionMemberNumberValue

type MyUnionMemberNumberValue struct {
	Value int32
}

type MyUnionMemberStringValue

type MyUnionMemberStringValue struct {
	Value string
}

type MyUnionMemberStructureValue

type MyUnionMemberStructureValue struct {
	Value *GreetingStruct
}

type MyUnionMemberTimestampValue

type MyUnionMemberTimestampValue struct {
	Value time.Time
}

type SimpleStruct

type SimpleStruct struct {
	Value *string
}

type StructWithLocationName

type StructWithLocationName struct {
	Value *string
}

type UnknownUnionMember

type UnknownUnionMember struct {
	Tag   string
	Value []byte
}

UnknownUnionMember is returned when a union member is returned over the wire, but has an unknown tag.

Jump to

Keyboard shortcuts

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