v1

package
v0.1.41 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2019 License: Apache-2.0 Imports: 12 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalExportControlReviewRequest

func MarshalExportControlReviewRequest(object *ExportControlReviewRequest, target interface{}) error

MarshalExportControlReviewRequest writes a value of the 'export_control_review_request' to the given target, which can be a writer or a JSON encoder.

func MarshalExportControlReviewResponse

func MarshalExportControlReviewResponse(object *ExportControlReviewResponse, target interface{}) error

MarshalExportControlReviewResponse writes a value of the 'export_control_review_response' to the given target, which can be a writer or a JSON encoder.

Types

type ExportControlReviewClient

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

ExportControlReviewClient is the client of the 'export_control_review' resource.

Manages export control review.

func NewExportControlReviewClient

func NewExportControlReviewClient(transport http.RoundTripper, path string, metric string) *ExportControlReviewClient

NewExportControlReviewClient creates a new client for the 'export_control_review' resource using the given transport to sned the requests and receive the responses.

func (*ExportControlReviewClient) Post

Post creates a request for the 'post' method.

Screens a user by account user name.

type ExportControlReviewPostRequest

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

ExportControlReviewPostRequest is the request for the 'post' method.

func (*ExportControlReviewPostRequest) Header

func (r *ExportControlReviewPostRequest) Header(name string, value interface{}) *ExportControlReviewPostRequest

Header adds a request header.

func (*ExportControlReviewPostRequest) Parameter

func (r *ExportControlReviewPostRequest) Parameter(name string, value interface{}) *ExportControlReviewPostRequest

Parameter adds a query parameter.

func (*ExportControlReviewPostRequest) Request

Request sets the value of the 'request' parameter.

func (*ExportControlReviewPostRequest) Send

Send sends this request, waits for the response, and returns it.

This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.

func (*ExportControlReviewPostRequest) SendContext

SendContext sends this request, waits for the response, and returns it.

type ExportControlReviewPostResponse

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

ExportControlReviewPostResponse is the response for the 'post' method.

func (*ExportControlReviewPostResponse) Error

Error returns the response error.

func (*ExportControlReviewPostResponse) GetResponse

GetResponse returns the value of the 'response' parameter and a flag indicating if the parameter has a value.

func (*ExportControlReviewPostResponse) Header

Header returns header of the response.

func (*ExportControlReviewPostResponse) Response

Response returns the value of the 'response' parameter.

func (*ExportControlReviewPostResponse) Status

Status returns the response status code.

type ExportControlReviewPostServerRequest

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

ExportControlReviewPostServerRequest is the request for the 'post' method.

func (*ExportControlReviewPostServerRequest) GetRequest

GetRequest returns the value of the 'request' parameter and a flag indicating if the parameter has a value.

func (*ExportControlReviewPostServerRequest) Request

Request returns the value of the 'request' parameter.

type ExportControlReviewPostServerResponse

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

ExportControlReviewPostServerResponse is the response for the 'post' method.

func (*ExportControlReviewPostServerResponse) Response

Response sets the value of the 'response' parameter.

func (*ExportControlReviewPostServerResponse) SetStatusCode added in v0.1.41

SetStatusCode sets the status code for a give response and returns the response object.

type ExportControlReviewRequest

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

ExportControlReviewRequest represents the values of the 'export_control_review_request' type.

func UnmarshalExportControlReviewRequest

func UnmarshalExportControlReviewRequest(source interface{}) (object *ExportControlReviewRequest, err error)

UnmarshalExportControlReviewRequest reads a value of the 'export_control_review_request' type from the given source, which can be an slice of bytes, a string, a reader or a JSON decoder.

func (*ExportControlReviewRequest) AccountUsername

func (o *ExportControlReviewRequest) AccountUsername() string

AccountUsername returns the value of the 'account_username' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*ExportControlReviewRequest) Empty

func (o *ExportControlReviewRequest) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*ExportControlReviewRequest) GetAccountUsername

func (o *ExportControlReviewRequest) GetAccountUsername() (value string, ok bool)

GetAccountUsername returns the value of the 'account_username' attribute and a flag indicating if the attribute has a value.

type ExportControlReviewRequestBuilder

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

ExportControlReviewRequestBuilder contains the data and logic needed to build 'export_control_review_request' objects.

func NewExportControlReviewRequest

func NewExportControlReviewRequest() *ExportControlReviewRequestBuilder

NewExportControlReviewRequest creates a new builder of 'export_control_review_request' objects.

func (*ExportControlReviewRequestBuilder) AccountUsername

AccountUsername sets the value of the 'account_username' attribute to the given value.

func (*ExportControlReviewRequestBuilder) Build

Build creates a 'export_control_review_request' object using the configuration stored in the builder.

func (*ExportControlReviewRequestBuilder) Copy

Copy copies the attributes of the given object into this builder, discarding any previous values.

type ExportControlReviewRequestList

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

ExportControlReviewRequestList is a list of values of the 'export_control_review_request' type.

func UnmarshalExportControlReviewRequestList

func UnmarshalExportControlReviewRequestList(source interface{}) (list *ExportControlReviewRequestList, err error)

UnmarshalExportControlReviewRequestList reads a list of values of the 'export_control_review_request' from the given source, which can be a slice of bytes, a string, an io.Reader or a json.Decoder.

func (*ExportControlReviewRequestList) Each

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*ExportControlReviewRequestList) Empty

Empty returns true if the list is empty.

func (*ExportControlReviewRequestList) Get

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*ExportControlReviewRequestList) Len

Len returns the length of the list.

func (*ExportControlReviewRequestList) Range

func (l *ExportControlReviewRequestList) Range(f func(index int, item *ExportControlReviewRequest) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*ExportControlReviewRequestList) Slice

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type ExportControlReviewRequestListBuilder

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

ExportControlReviewRequestListBuilder contains the data and logic needed to build 'export_control_review_request' objects.

func NewExportControlReviewRequestList

func NewExportControlReviewRequestList() *ExportControlReviewRequestListBuilder

NewExportControlReviewRequestList creates a new builder of 'export_control_review_request' objects.

func (*ExportControlReviewRequestListBuilder) Build

Build creates a list of 'export_control_review_request' objects using the configuration stored in the builder.

func (*ExportControlReviewRequestListBuilder) Items

Items sets the items of the list.

type ExportControlReviewResponse

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

ExportControlReviewResponse represents the values of the 'export_control_review_response' type.

func UnmarshalExportControlReviewResponse

func UnmarshalExportControlReviewResponse(source interface{}) (object *ExportControlReviewResponse, err error)

UnmarshalExportControlReviewResponse reads a value of the 'export_control_review_response' type from the given source, which can be an slice of bytes, a string, a reader or a JSON decoder.

func (*ExportControlReviewResponse) Empty

func (o *ExportControlReviewResponse) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*ExportControlReviewResponse) GetRestricted

func (o *ExportControlReviewResponse) GetRestricted() (value bool, ok bool)

GetRestricted returns the value of the 'restricted' attribute and a flag indicating if the attribute has a value.

func (*ExportControlReviewResponse) Restricted

func (o *ExportControlReviewResponse) Restricted() bool

Restricted returns the value of the 'restricted' attribute, or the zero value of the type if the attribute doesn't have a value.

type ExportControlReviewResponseBuilder

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

ExportControlReviewResponseBuilder contains the data and logic needed to build 'export_control_review_response' objects.

func NewExportControlReviewResponse

func NewExportControlReviewResponse() *ExportControlReviewResponseBuilder

NewExportControlReviewResponse creates a new builder of 'export_control_review_response' objects.

func (*ExportControlReviewResponseBuilder) Build

Build creates a 'export_control_review_response' object using the configuration stored in the builder.

func (*ExportControlReviewResponseBuilder) Copy

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*ExportControlReviewResponseBuilder) Restricted

Restricted sets the value of the 'restricted' attribute to the given value.

type ExportControlReviewResponseList

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

ExportControlReviewResponseList is a list of values of the 'export_control_review_response' type.

func UnmarshalExportControlReviewResponseList

func UnmarshalExportControlReviewResponseList(source interface{}) (list *ExportControlReviewResponseList, err error)

UnmarshalExportControlReviewResponseList reads a list of values of the 'export_control_review_response' from the given source, which can be a slice of bytes, a string, an io.Reader or a json.Decoder.

func (*ExportControlReviewResponseList) Each

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*ExportControlReviewResponseList) Empty

Empty returns true if the list is empty.

func (*ExportControlReviewResponseList) Get

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*ExportControlReviewResponseList) Len

Len returns the length of the list.

func (*ExportControlReviewResponseList) Range

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*ExportControlReviewResponseList) Slice

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type ExportControlReviewResponseListBuilder

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

ExportControlReviewResponseListBuilder contains the data and logic needed to build 'export_control_review_response' objects.

func NewExportControlReviewResponseList

func NewExportControlReviewResponseList() *ExportControlReviewResponseListBuilder

NewExportControlReviewResponseList creates a new builder of 'export_control_review_response' objects.

func (*ExportControlReviewResponseListBuilder) Build

Build creates a list of 'export_control_review_response' objects using the configuration stored in the builder.

func (*ExportControlReviewResponseListBuilder) Items

Items sets the items of the list.

type ExportControlReviewServer

type ExportControlReviewServer interface {

	// Post handles a request for the 'post' method.
	//
	// Screens a user by account user name.
	Post(ctx context.Context, request *ExportControlReviewPostServerRequest, response *ExportControlReviewPostServerResponse) error
}

ExportControlReviewServer represents the interface the manages the 'export_control_review' resource.

type ExportControlReviewServerAdapter added in v0.1.41

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

ExportControlReviewServerAdapter represents the structs that adapts Requests and Response to internal structs.

func NewExportControlReviewServerAdapter added in v0.1.41

func NewExportControlReviewServerAdapter(server ExportControlReviewServer, router *mux.Router) *ExportControlReviewServerAdapter

func (*ExportControlReviewServerAdapter) ServeHTTP added in v0.1.41

type RootClient added in v0.1.41

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

RootClient is the client of the 'root' resource.

Root of the tree of resources of the authorization service.

func NewRootClient added in v0.1.41

func NewRootClient(transport http.RoundTripper, path string, metric string) *RootClient

NewRootClient creates a new client for the 'root' resource using the given transport to sned the requests and receive the responses.

func (*RootClient) ExportControlReview added in v0.1.41

func (c *RootClient) ExportControlReview() *ExportControlReviewClient

ExportControlReview returns the target 'export_control_review' resource.

Reference to the resource that is used to submit export control review requests.

type RootServer added in v0.1.41

type RootServer interface {

	// ExportControlReview returns the target 'export_control_review' resource.
	//
	// Reference to the resource that is used to submit export control review requests.
	ExportControlReview() ExportControlReviewServer
}

RootServer represents the interface the manages the 'root' resource.

type RootServerAdapter added in v0.1.41

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

RootServerAdapter represents the structs that adapts Requests and Response to internal structs.

func NewRootServerAdapter added in v0.1.41

func NewRootServerAdapter(server RootServer, router *mux.Router) *RootServerAdapter

func (*RootServerAdapter) ServeHTTP added in v0.1.41

func (a *RootServerAdapter) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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