client

package
v0.0.0-...-0490640 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	RequestTrialLicense(ctx context.Context,
		firstname, lastname, email string, gdprAgree bool,
		deploymentID, automateVersion string) (string, error)
}

Client is the interface fulfilled by a trial-license-service client

func New

func New(endpoint *url.URL) Client

New returns a Client struct pointing at the passed endpoint for trial-license-service

type UnexpectedStatusError

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

UnexpectedStatusError is returned when the trial-license-service responds with a non-200 status code

func (*UnexpectedStatusError) Code

func (e *UnexpectedStatusError) Code() int

Code returns the status code returned by the upstream service

func (*UnexpectedStatusError) Error

func (e *UnexpectedStatusError) Error() string

Jump to

Keyboard shortcuts

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