Documentation ¶
Index ¶
- type API
- func (api *API) WithAPISpecURL(specURL string) *API
- func (api *API) WithBasicAndCSRFAuth(username, password, csrfUrl string) *API
- func (api *API) WithBasicAuth(username, password string) *API
- func (api *API) WithBasicAuthSecuredSpec(username, password string) *API
- func (api *API) WithOAuth(url, clientID, clientSecret string) *API
- func (api *API) WithOAuthRequestParameters(requestParameters *RequestParameters) *API
- func (api *API) WithOAuthRequestParametersSecuredSpec(requestParameters *RequestParameters) *API
- func (api *API) WithOAuthSecuredSpec(oauthURL, clientID, clientSecret string) *API
- func (api *API) WithRequestParameters(requestParameters *RequestParameters) *API
- func (api *API) WithRequestParametersSpec(requestParameters *RequestParameters) *API
- type AppRegistryClient
- func (arc *AppRegistryClient) CleanupService(t *testing.T, serviceId string)
- func (arc *AppRegistryClient) CreateAPIWithBasicAuthSecuredSpec(t *testing.T, targetURL, specURL, username, password string) string
- func (arc *AppRegistryClient) CreateAPIWithCustomHeadersSpec(t *testing.T, targetURL, specURL string, headers map[string][]string) string
- func (arc *AppRegistryClient) CreateAPIWithCustomQueryParamsSpec(t *testing.T, targetURL, specURL string, queryParams map[string][]string) string
- func (arc *AppRegistryClient) CreateAPIWithOAuthSecuredSpec(t *testing.T, targetURL, specURL, authURL, clientID, clientSecret string) string
- func (arc *AppRegistryClient) CreateAPIWithOAuthWithCustomHeadersSecuredSpec(t *testing.T, targetURL, specURL, authURL, clientID, clientSecret string, ...) string
- func (arc *AppRegistryClient) CreateAPIWithOAuthWithCustomQueryParamsSecuredSpec(t *testing.T, targetURL, specURL, authURL, clientID, clientSecret string, ...) string
- func (arc *AppRegistryClient) CreateBasicAuthSecuredAPI(t *testing.T, targetURL, username, password string) string
- func (arc *AppRegistryClient) CreateCSRFAndBasicSecuredAPI(t *testing.T, targetURL, username, password, csrfURL string) string
- func (arc *AppRegistryClient) CreateNotSecuredAPI(t *testing.T, targetURL string) string
- func (arc *AppRegistryClient) CreateNotSecuredAPICustomHeaders(t *testing.T, targetURL string, headers map[string][]string) string
- func (arc *AppRegistryClient) CreateNotSecuredAPICustomQueryParams(t *testing.T, targetURL string, queryParams map[string][]string) string
- func (arc *AppRegistryClient) CreateOAuthSecuredAPI(t *testing.T, targetURL, authURL, clientID, clientSecret string) string
- func (arc *AppRegistryClient) CreateOAuthWithCustomHeadersSecuredAPI(t *testing.T, targetURL, authURL, clientID, clientSecret string, ...) string
- func (arc *AppRegistryClient) CreateOAuthWithCustomQueryParamsSecuredAPI(t *testing.T, targetURL, authURL, clientID, clientSecret string, ...) string
- func (arc *AppRegistryClient) GetApiSpecWithRetries(t *testing.T, serviceId string) (json.RawMessage, error)
- type Basic
- type CSRFInfo
- type CertificateGen
- type Credentials
- type CredentialsWithCSRF
- type DocsObject
- type Documentation
- type ErrorResponse
- type Events
- type Oauth
- type PostServiceResponse
- type RequestParameters
- type Service
- type ServiceDetails
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct { TargetUrl string `json:"targetUrl"` Credentials *CredentialsWithCSRF `json:"credentials,omitempty"` Spec json.RawMessage `json:"spec,omitempty"` SpecificationUrl string `json:"specificationUrl,omitempty"` ApiType string `json:"apiType"` RequestParameters *RequestParameters `json:"requestParameters"` SpecificationCredentials *Credentials `json:"specificationCredentials"` SpecificationRequestParameters *RequestParameters `json:"specificationRequestParameters"` }
func (*API) WithAPISpecURL ¶
func (*API) WithBasicAndCSRFAuth ¶
func (*API) WithBasicAuth ¶
func (*API) WithBasicAuthSecuredSpec ¶
func (*API) WithOAuthRequestParameters ¶
func (api *API) WithOAuthRequestParameters(requestParameters *RequestParameters) *API
func (*API) WithOAuthRequestParametersSecuredSpec ¶
func (api *API) WithOAuthRequestParametersSecuredSpec(requestParameters *RequestParameters) *API
func (*API) WithOAuthSecuredSpec ¶
func (*API) WithRequestParameters ¶
func (api *API) WithRequestParameters(requestParameters *RequestParameters) *API
func (*API) WithRequestParametersSpec ¶
func (api *API) WithRequestParametersSpec(requestParameters *RequestParameters) *API
type AppRegistryClient ¶
type AppRegistryClient struct {
// contains filtered or unexported fields
}
func NewAppRegistryClient ¶
func NewAppRegistryClient(registryURL, application string) *AppRegistryClient
func (*AppRegistryClient) CleanupService ¶
func (arc *AppRegistryClient) CleanupService(t *testing.T, serviceId string)
func (*AppRegistryClient) CreateAPIWithBasicAuthSecuredSpec ¶
func (arc *AppRegistryClient) CreateAPIWithBasicAuthSecuredSpec(t *testing.T, targetURL, specURL, username, password string) string
func (*AppRegistryClient) CreateAPIWithCustomHeadersSpec ¶
func (*AppRegistryClient) CreateAPIWithCustomQueryParamsSpec ¶
func (*AppRegistryClient) CreateAPIWithOAuthSecuredSpec ¶
func (arc *AppRegistryClient) CreateAPIWithOAuthSecuredSpec(t *testing.T, targetURL, specURL, authURL, clientID, clientSecret string) string
func (*AppRegistryClient) CreateAPIWithOAuthWithCustomHeadersSecuredSpec ¶
func (*AppRegistryClient) CreateAPIWithOAuthWithCustomQueryParamsSecuredSpec ¶
func (*AppRegistryClient) CreateBasicAuthSecuredAPI ¶
func (arc *AppRegistryClient) CreateBasicAuthSecuredAPI(t *testing.T, targetURL, username, password string) string
func (*AppRegistryClient) CreateCSRFAndBasicSecuredAPI ¶
func (arc *AppRegistryClient) CreateCSRFAndBasicSecuredAPI(t *testing.T, targetURL, username, password, csrfURL string) string
func (*AppRegistryClient) CreateNotSecuredAPI ¶
func (arc *AppRegistryClient) CreateNotSecuredAPI(t *testing.T, targetURL string) string
func (*AppRegistryClient) CreateNotSecuredAPICustomHeaders ¶
func (*AppRegistryClient) CreateNotSecuredAPICustomQueryParams ¶
func (*AppRegistryClient) CreateOAuthSecuredAPI ¶
func (arc *AppRegistryClient) CreateOAuthSecuredAPI(t *testing.T, targetURL, authURL, clientID, clientSecret string) string
func (*AppRegistryClient) CreateOAuthWithCustomHeadersSecuredAPI ¶
func (*AppRegistryClient) CreateOAuthWithCustomQueryParamsSecuredAPI ¶
func (*AppRegistryClient) GetApiSpecWithRetries ¶
func (arc *AppRegistryClient) GetApiSpecWithRetries(t *testing.T, serviceId string) (json.RawMessage, error)
type CSRFInfo ¶
type CSRFInfo struct {
TokenEndpointURL string `json:"tokenEndpointURL" valid:"url,required~tokenEndpointURL field cannot be empty"`
}
type CertificateGen ¶
type Credentials ¶
type CredentialsWithCSRF ¶
type CredentialsWithCSRF struct { Oauth *Oauth `json:"oauth,omitempty"` Basic *Basic `json:"basic,omitempty"` CertificateGen *CertificateGen `json:"certificateGen,omitempty"` }
type DocsObject ¶
type Documentation ¶
type Documentation struct { DisplayName string `json:"displayName"` Description string `json:"description"` Type string `json:"type"` Tags []string `json:"tags,omitempty"` Docs []DocsObject `json:"docs,omitempty"` }
type ErrorResponse ¶
type Events ¶
type Events struct {
Spec json.RawMessage `json:"spec,omitempty"`
}
type Oauth ¶
type Oauth struct { URL string `json:"url"` ClientID string `json:"clientId"` ClientSecret string `json:"clientSecret"` CSRFInfo *CSRFInfo `json:"csrfInfo,omitempty"` RequestParameters *RequestParameters `json:"requestParameters,omitempty"` }
type PostServiceResponse ¶
type PostServiceResponse struct {
ID string `json:"id"`
}
type RequestParameters ¶
type Service ¶
type Service struct { ID string `json:"id"` Provider string `json:"provider"` Name string `json:"name"` Description string `json:"description"` ShortDescription string `json:"shortDescription,omitempty"` Identifier string `json:"identifier,omitempty"` Labels map[string]string `json:"labels,omitempty"` }
type ServiceDetails ¶
type ServiceDetails struct { Provider string `json:"provider"` Name string `json:"name"` Description string `json:"description"` ShortDescription string `json:"shortDescription,omitempty"` Identifier string `json:"identifier,omitempty"` Labels map[string]string `json:"labels,omitempty"` Api *API `json:"api,omitempty"` Events *Events `json:"events,omitempty"` Documentation *Documentation `json:"documentation,omitempty"` }
Click to show internal directories.
Click to hide internal directories.