cdnv2

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceName = "cdn"       // Name of service.
	EndpointsID = ServiceName // ID to lookup a service endpoint with.
	ServiceID   = "cdn"       // ServiceID is a unique identifer of a specific service.
)

Service information constants

Variables

This section is empty.

Functions

This section is empty.

Types

type Cdnv2

type Cdnv2 struct {
	*client.Client
}

Cdnv2 provides the API operation methods for making requests to cdnv2. See this package's package overview docs for details on the service.

Cdnv2 methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.

func ExtraNew

func ExtraNew(info *utils.UrlInfo, p client.ConfigProvider, cfgs ...*aws.Config) *Cdnv2

extraNew create int can support ssl or region locate set

func New

func New(p client.ConfigProvider, cfgs ...*aws.Config) *Cdnv2

New creates a new instance of the Cdnv2 client with a session. If additional configuration is needed for the client instance use the optional ksc.Config parameter to add your extra config.

Example:

// Create a Cdnv2 client from just a session.
svc := cdnv2.New(mySession)

// Create a Cdnv2 client with additional configuration
svc := cdnv2.New(mySession, aws.NewConfig().WithRegion("us-west-2"))

func SdkNew

func SdkNew(p client.ConfigProvider, cfgs *ksc.Config, info ...*utils.UrlInfo) *Cdnv2

SdkNew create int can support ssl or region locate set

func (*Cdnv2) GetClientRequestDataGet

func (c *Cdnv2) GetClientRequestDataGet(input *map[string]interface{}) (*map[string]interface{}, error)

GetClientRequestDataGet API operation for cdnv2.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the KSC API reference guide for cdnv2's API operation GetClientRequestDataGet for usage and error information. See also, https://docs.aws.amazon.com/goto/WebAPI/cdn-2020-06-30/GetClientRequestDataGet

func (*Cdnv2) GetClientRequestDataGetRequest

func (c *Cdnv2) GetClientRequestDataGetRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})

GetClientRequestDataGetRequest generates a "ksc/request.Request" representing the client's request for the GetClientRequestDataGet operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetClientRequestDataGet for more information on using the GetClientRequestDataGet API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetClientRequestDataGetRequest method.
req, resp := client.GetClientRequestDataGetRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/cdn-2020-06-30/GetClientRequestDataGet

func (*Cdnv2) GetClientRequestDataGetWithContext

func (c *Cdnv2) GetClientRequestDataGetWithContext(ctx aws.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)

GetClientRequestDataGetWithContext is the same as GetClientRequestDataGet with the addition of the ability to pass a context and additional request options.

See GetClientRequestDataGet for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Cdnv2) GetClientRequestDataPost

func (c *Cdnv2) GetClientRequestDataPost(input *map[string]interface{}) (*map[string]interface{}, error)

GetClientRequestDataPost API operation for cdnv2.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the KSC API reference guide for cdnv2's API operation GetClientRequestDataPost for usage and error information. See also, https://docs.aws.amazon.com/goto/WebAPI/cdn-2020-06-30/GetClientRequestDataPost

func (*Cdnv2) GetClientRequestDataPostRequest

func (c *Cdnv2) GetClientRequestDataPostRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})

GetClientRequestDataPostRequest generates a "ksc/request.Request" representing the client's request for the GetClientRequestDataPost operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetClientRequestDataPost for more information on using the GetClientRequestDataPost API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetClientRequestDataPostRequest method.
req, resp := client.GetClientRequestDataPostRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/cdn-2020-06-30/GetClientRequestDataPost

func (*Cdnv2) GetClientRequestDataPostWithContext

func (c *Cdnv2) GetClientRequestDataPostWithContext(ctx aws.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)

GetClientRequestDataPostWithContext is the same as GetClientRequestDataPost with the addition of the ability to pass a context and additional request options.

See GetClientRequestDataPost for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Cdnv2) GetServerDataGet

func (c *Cdnv2) GetServerDataGet(input *map[string]interface{}) (*map[string]interface{}, error)

GetServerDataGet API operation for cdnv2.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the KSC API reference guide for cdnv2's API operation GetServerDataGet for usage and error information. See also, https://docs.aws.amazon.com/goto/WebAPI/cdn-2020-06-30/GetServerDataGet

func (*Cdnv2) GetServerDataGetRequest

func (c *Cdnv2) GetServerDataGetRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})

GetServerDataGetRequest generates a "ksc/request.Request" representing the client's request for the GetServerDataGet operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetServerDataGet for more information on using the GetServerDataGet API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetServerDataGetRequest method.
req, resp := client.GetServerDataGetRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/cdn-2020-06-30/GetServerDataGet

func (*Cdnv2) GetServerDataGetWithContext

func (c *Cdnv2) GetServerDataGetWithContext(ctx aws.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)

GetServerDataGetWithContext is the same as GetServerDataGet with the addition of the ability to pass a context and additional request options.

See GetServerDataGet for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Cdnv2) GetServerDataPost

func (c *Cdnv2) GetServerDataPost(input *map[string]interface{}) (*map[string]interface{}, error)

GetServerDataPost API operation for cdnv2.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the KSC API reference guide for cdnv2's API operation GetServerDataPost for usage and error information. See also, https://docs.aws.amazon.com/goto/WebAPI/cdn-2020-06-30/GetServerDataPost

func (*Cdnv2) GetServerDataPostRequest

func (c *Cdnv2) GetServerDataPostRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})

GetServerDataPostRequest generates a "ksc/request.Request" representing the client's request for the GetServerDataPost operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetServerDataPost for more information on using the GetServerDataPost API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetServerDataPostRequest method.
req, resp := client.GetServerDataPostRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/cdn-2020-06-30/GetServerDataPost

func (*Cdnv2) GetServerDataPostWithContext

func (c *Cdnv2) GetServerDataPostWithContext(ctx aws.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)

GetServerDataPostWithContext is the same as GetServerDataPost with the addition of the ability to pass a context and additional request options.

See GetServerDataPost for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

Directories

Path Synopsis
Package cdnv2iface provides an interface to enable mocking the cdnv2 service client for testing your code.
Package cdnv2iface provides an interface to enable mocking the cdnv2 service client for testing your code.

Jump to

Keyboard shortcuts

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