Categorygithub.com/konfig-dev/automation-test-submodule-go

# README

automationtestwithsubmodules - 's Go SDK

SDKs (no submodules) to test automation workflows.

Installation

Add to your project:

go get github.com/konfig-dev/automation-test-submodule-go

Getting Started

package main

import (
    "fmt"
    "os"
    automationtestwithsubmodules "github.com/konfig-dev/automation-test-submodule-go"
)

func main() {
    configuration := automationtestwithsubmodules.NewConfiguration()
    client := automationtestwithsubmodules.NewAPIClient(configuration)

    request := client.GreetingsApi.Hello(
    )
    
    resp, httpRes, err := request.Execute()

    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `GreetingsApi.Hello``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", httpRes)
    }
    // response from `Hello`: HelloResponse
    fmt.Fprintf(os.Stdout, "Response from `GreetingsApi.Hello`: %v\n", resp)
    fmt.Fprintf(os.Stdout, "Response from `HelloResponse.Hello.Message`: %v\n", resp.Message)
}

Documentation for API Endpoints

All URIs are relative to http://google.com

ClassMethodHTTP requestDescription
GreetingsApiHelloGet /helloGet a simple greeting!!!

Documentation For Models

# Packages

No description provided by the author

# Functions

CacheExpires helper function to determine remaining time before repeating a request.
NewAPIClient creates a new API client.
NewAPIResponse returns a new APIResponse object.
NewAPIResponseWithError returns a new APIResponse object with the provided error message.
NewConfiguration returns a new Configuration object.
NewHelloResponse instantiates a new HelloResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewHelloResponseWithDefaults instantiates a new HelloResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
PtrBool is a helper routine that returns a pointer to given boolean value.
PtrFloat32 is a helper routine that returns a pointer to given float value.
PtrFloat64 is a helper routine that returns a pointer to given float value.
PtrInt is a helper routine that returns a pointer to given integer value.
PtrInt32 is a helper routine that returns a pointer to given integer value.
PtrInt64 is a helper routine that returns a pointer to given integer value.
PtrString is a helper routine that returns a pointer to given string value.
PtrTime is helper routine that returns a pointer to given Time value.

# Variables

ContextAccessToken takes a string oauth2 access token as authentication for the request.
ContextAPIKeys takes a string apikey as authentication for the request.
ContextBasicAuth takes BasicAuth as authentication for the request.
ContextHttpSignatureAuth takes HttpSignatureAuth as authentication for the request.
ContextOAuth2 takes an oauth2.TokenSource as authentication for the request.
ContextOperationServerIndices uses a server configuration from the index mapping.
ContextOperationServerVariables overrides a server configuration variables using operation specific values.
ContextServerIndex uses a server configuration from the index.
ContextServerVariables overrides a server configuration variables.

# Structs

APIClient manages communication with the Test Automation (No submodules) API v1.0.0 In most cases there should be only one, shared, APIClient.
APIKey provides API key based authentication to a request passed via context using ContextAPIKey.
APIResponse stores the API response returned by the server.
BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth.
Configuration stores the configuration of the API client.
GenericOpenAPIError Provides access to the body, error and model on returned errors.
No description provided by the author
HelloResponse struct for HelloResponse.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ServerConfiguration stores the information about a server.
ServerVariable stores the information about a server variable.

# Type aliases

GreetingsApiService GreetingsApi service.
ServerConfigurations stores multiple ServerConfiguration items.