script

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package script provides the client and types for making API requests to script.

See https://pfs.nifcloud.com/api/script/ for more information on this service.

See script package documentation for more information. https://godoc.org/github.com/nifcloud/nifcloud-sdk-go/service/script/

Using the Client

To use script with the SDK use the New function to create a new service client. With that client you can make API requests to the service. These clients are safe to use concurrently.

See the SDK's documentation for more information on how to use the SDK. https://godoc.org/github.com/nifcloud/nifcloud-sdk-go/

See aws.Config documentation for more information on configuring SDK clients. https://godoc.org/github.com/nifcloud/nifcloud-sdk-go/nifcloud/#Config

See the script client for more information on creating client for this service. https://godoc.org/github.com/nifcloud/nifcloud-sdk-go/service/script/#New

Index

Constants

View Source
const (
	ServiceName = "script" // Service's name
	ServiceID   = "Script" // Service's identifier
	EndpointsID = "script" // Service's Endpoint identifier
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*aws.Client
}

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

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

func New

func New(config nifcloud.Config) *Client

New creates a new instance of the client from the provided Config.

Example:

// Create a client from just a config.
svc := script.New(myConfig)

func (*Client) ExecuteScriptRequest

func (c *Client) ExecuteScriptRequest(input *ExecuteScriptInput) ExecuteScriptRequest

ExecuteScriptRequest returns a request value for making API operation for NIFCLOUD Script.

// Example sending a request using ExecuteScriptRequest.
req := client.ExecuteScriptRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://pfs.nifcloud.com/api/script/ExecuteScript.htm

type ExecuteScriptInput

type ExecuteScriptInput struct {
	Body *string `locationName:"Body" type:"string"`

	Header *string `locationName:"Header" type:"string"`

	Method *string `locationName:"Method" type:"string"`

	Query *string `locationName:"Query" type:"string"`

	ScriptIdentifier *string `locationName:"ScriptIdentifier" type:"string"`
	// contains filtered or unexported fields
}

func (ExecuteScriptInput) String

func (s ExecuteScriptInput) String() string

String returns the string representation

type ExecuteScriptOutput

type ExecuteScriptOutput struct {
	Result *Result `type:"structure"`
	// contains filtered or unexported fields
}

func (ExecuteScriptOutput) String

func (s ExecuteScriptOutput) String() string

String returns the string representation

type ExecuteScriptRequest

type ExecuteScriptRequest struct {
	*aws.Request
	Input *ExecuteScriptInput
	Copy  func(*ExecuteScriptInput) ExecuteScriptRequest
}

ExecuteScriptRequest is the request type for the ExecuteScript API operation.

func (ExecuteScriptRequest) Send

Send marshals and sends the ExecuteScript API request.

type ExecuteScriptResponse

type ExecuteScriptResponse struct {
	*ExecuteScriptOutput
	// contains filtered or unexported fields
}

ExecuteScriptResponse is the response type for the ExecuteScript API operation.

func (*ExecuteScriptResponse) SDKResponseMetdata

func (r *ExecuteScriptResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ExecuteScript request.

type Result

type Result struct {
	RequestBody *string `type:"string"`

	RequestHeader *string `type:"string"`

	RequestQuery *string `type:"string"`

	ResponseData *string `type:"string"`

	ResponseHeader *string `type:"string"`

	ResponseStatus *int64 `type:"integer"`

	ScriptIdentifier *string `type:"string"`
	// contains filtered or unexported fields
}

func (Result) String

func (s Result) String() string

String returns the string representation

Directories

Path Synopsis
Package scriptiface provides an interface to enable mocking the NIFCLOUD Script service client for testing your code.
Package scriptiface provides an interface to enable mocking the NIFCLOUD Script service client for testing your code.

Jump to

Keyboard shortcuts

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