util

package
v0.0.0-...-6f7a839 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Suite

type Suite struct {
	suite.Suite
	// contains filtered or unexported fields
}

func (*Suite) BaseURL

func (suite *Suite) BaseURL(baseURL string)

func (*Suite) Convert

func (suite *Suite) Convert(from interface{}, to interface{})

func (*Suite) Delete

func (suite *Suite) Delete(path string) *http.Response

func (*Suite) Do

func (suite *Suite) Do(req *http.Request) *http.Response

func (*Suite) ForEachMap

func (suite *Suite) ForEachMap(i interface{}, f func(map[string]interface{}))

func (*Suite) Get

func (suite *Suite) Get(path string) *http.Response

func (*Suite) GetBool

func (suite *Suite) GetBool(name string, mapData map[string]interface{}) bool

func (*Suite) GetFloat64

func (suite *Suite) GetFloat64(name string, mapData map[string]interface{}) float64

func (*Suite) GetInt

func (suite *Suite) GetInt(name string, mapData map[string]interface{}) int

func (*Suite) GetInt64

func (suite *Suite) GetInt64(name string, mapData map[string]interface{}) int64

func (*Suite) GetMap

func (suite *Suite) GetMap(name string, mapData map[string]interface{}) map[string]interface{}

func (*Suite) GetOk

func (suite *Suite) GetOk(path string) *http.Response

func (*Suite) GetSlice

func (suite *Suite) GetSlice(name string, mapData map[string]interface{}) []interface{}

func (*Suite) GetSliceOfString

func (suite *Suite) GetSliceOfString(name string, mapData map[string]interface{}) []string

func (*Suite) GetString

func (suite *Suite) GetString(name string, mapData map[string]interface{}) string

func (*Suite) IsMap

func (suite *Suite) IsMap(i interface{}) map[string]interface{}

func (*Suite) IsSchema

func (suite *Suite) IsSchema(resource map[string]interface{}) schema.Schema

func (*Suite) IsSlice

func (suite *Suite) IsSlice(i interface{}) []interface{}

func (*Suite) IsString

func (suite *Suite) IsString(i interface{}) string

func (*Suite) IsValidAttributeName

func (suite *Suite) IsValidAttributeName(name string) bool

func (*Suite) Middleware

func (suite *Suite) Middleware(callback func(req *http.Request) *http.Request)

func (*Suite) Patch

func (suite *Suite) Patch(path string, body io.Reader) *http.Response

func (*Suite) Post

func (suite *Suite) Post(path string, body io.Reader) *http.Response

func (*Suite) Put

func (suite *Suite) Put(path string, body io.Reader) *http.Response

func (*Suite) ReadAll

func (suite *Suite) ReadAll(resp *http.Response) []byte

func (*Suite) ReadAllToListResponse

func (suite *Suite) ReadAllToListResponse(resp *http.Response) schema.ListResponse

func (*Suite) ReadAllToMap

func (suite *Suite) ReadAllToMap(resp *http.Response) map[string]interface{}

func (*Suite) ReadAllToSPConfig

func (suite *Suite) ReadAllToSPConfig(resp *http.Response) schema.ServiceProviderConfig

func (*Suite) SPConfig

func (suite *Suite) SPConfig() schema.ServiceProviderConfig

func (*Suite) SetupSuite

func (suite *Suite) SetupSuite()

func (*Suite) StatusBadRequest

func (suite *Suite) StatusBadRequest(status int)

func (*Suite) StatusConflict

func (suite *Suite) StatusConflict(status int)

func (*Suite) StatusCreated

func (suite *Suite) StatusCreated(status int)

func (*Suite) StatusForbidden

func (suite *Suite) StatusForbidden(status int)

func (*Suite) StatusNoContent

func (suite *Suite) StatusNoContent(status int)

func (*Suite) StatusNotFound

func (suite *Suite) StatusNotFound(status int)

func (*Suite) StatusNotImplemented

func (suite *Suite) StatusNotImplemented(status int)

func (*Suite) StatusOK

func (suite *Suite) StatusOK(status int)

func (*Suite) Unmarshal

func (suite *Suite) Unmarshal(raw []byte, i interface{})

Jump to

Keyboard shortcuts

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