model

package
v0.0.0-...-64402aa Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidVersionDirectory = errors.New(
		"expected to find only directories in api model directory but found non-directory",
	)
	ErrNoValidVersionDirectory = errors.New(
		"no valid version directories found",
	)
	ErrServiceNotFound = errors.New(
		"no such service",
	)
)

Functions

This section is empty.

Types

type SDKHelper

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

SDKHelper is a helper struct that helps work with the aws-sdk-go models and API model loader

func NewSDKHelper

func NewSDKHelper(basePath string) *SDKHelper

NewSDKHelper returns a new SDKHelper object

func (*SDKHelper) API

func (h *SDKHelper) API(serviceAlias string) (*sdkmodelapi.API, error)

API returns the aws-sdk-go API model for a supplied service alias

func (*SDKHelper) APIVersion

func (h *SDKHelper) APIVersion(serviceAlias string) (string, error)

APIVersion returns the API version (e.g. "2012-10-03") for a service API

func (*SDKHelper) ModelAndDocsPath

func (h *SDKHelper) ModelAndDocsPath(
	serviceAlias string,
) (string, string, error)

ModelAndDocsPath returns two string paths to the supplied service alias' model and doc JSON files

Jump to

Keyboard shortcuts

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