Documentation ¶
Index ¶
- type APIClient
- func (c *APIClient) CallAPI(path string, method string, postBody interface{}, ...) (*resty.Response, error)
- func (c *APIClient) ParameterToString(obj interface{}, collectionFormat string) string
- func (c *APIClient) SelectHeaderAccept(accepts []string) string
- func (c *APIClient) SelectHeaderContentType(contentTypes []string) string
- type APIResponse
- type AdminApi
- func (a AdminApi) AdminDeleteService(id string) (*interface{}, *APIResponse, error)
- func (a AdminApi) AdminGetService(id string) (*AdminService, *APIResponse, error)
- func (a AdminApi) AdminListService(subdomain string) ([]AdminService, *APIResponse, error)
- func (a AdminApi) AdminSaveService(id string, body AdminService) (*AdminService, *APIResponse, error)
- type AdminService
- type AdminServiceResolver
- type AdminServiceStrategy
- type AuthApi
- type ClientApi
- type ClientService
- type Configuration
- type Cors
- type Flash
- type FlashesApi
- type InlineResponse500
- type LoginStatus
- type LongDescriptionLocal
- type LongDescriptionRemote
- type LuaResolver
- type Metadata
- type MetadataLongDescription
- type PortForward
- type Proxy
- type Redirect
- type Secret
- type SecretAuth
- type SecretWrapInfo
- type SecretsApi
- type ServiceCache
- type Space
- type SpaceApi
- type YamlResolver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIClient ¶
type APIClient struct {
// contains filtered or unexported fields
}
func (*APIClient) ParameterToString ¶
func (*APIClient) SelectHeaderAccept ¶
func (*APIClient) SelectHeaderContentType ¶
type APIResponse ¶
type APIResponse struct { *http.Response `json:"-"` Message string `json:"message,omitempty"` // Operation is the name of the swagger operation. Operation string `json:"operation,omitempty"` // RequestURL is the request URL. This value is always available, even if the // embedded *http.Response is nil. RequestURL string `json:"url,omitempty"` // Method is the HTTP method used for the request. This value is always // available, even if the embedded *http.Response is nil. Method string `json:"method,omitempty"` // Payload holds the contents of the response body (which may be nil or empty). // This is provided here as the raw response.Body() reader will have already // been drained. Payload []byte `json:"-"` }
func NewAPIResponse ¶
func NewAPIResponse(r *http.Response) *APIResponse
func NewAPIResponseWithError ¶
func NewAPIResponseWithError(errorMessage string) *APIResponse
type AdminApi ¶
type AdminApi struct {
Configuration *Configuration
}
func NewAdminApi ¶
func NewAdminApi() *AdminApi
func NewAdminApiWithBasePath ¶
func (AdminApi) AdminDeleteService ¶
func (a AdminApi) AdminDeleteService(id string) (*interface{}, *APIResponse, error)
*
* * delete service * * @param id service id * @return *interface{}
func (AdminApi) AdminGetService ¶
func (a AdminApi) AdminGetService(id string) (*AdminService, *APIResponse, error)
*
* * returns all the available information of the service * * @param id service id * @return *AdminService
func (AdminApi) AdminListService ¶
func (a AdminApi) AdminListService(subdomain string) ([]AdminService, *APIResponse, error)
*
* * returns all the available information of the service over all the roles * * @param subdomain subdomain * @return []AdminService
func (AdminApi) AdminSaveService ¶
func (a AdminApi) AdminSaveService(id string, body AdminService) (*AdminService, *APIResponse, error)
*
* * create a new service * * @param id service id * @param body * @return *AdminService
type AdminService ¶
type AdminService struct { Meta Metadata `json:"meta,omitempty"` Strategy AdminServiceStrategy `json:"strategy,omitempty"` Resolver AdminServiceResolver `json:"resolver,omitempty"` Cache *ServiceCache `json:"cache,omitempty"` ImpersonateWithinRole bool `json:"impersonateWithinRole,omitempty"` IsActive bool `json:"isActive,omitempty"` FullUrl string `json:"fullUrl,omitempty"` SecretPaths []string `json:"secretPaths,omitempty"` }
type AdminServiceResolver ¶
type AdminServiceResolver struct { Lua *LuaResolver `json:"lua,omitempty"` Yaml *YamlResolver `json:"yaml,omitempty"` }
type AdminServiceStrategy ¶
type AdminServiceStrategy struct { Proxy *Proxy `json:"proxy,omitempty"` Redirect *Redirect `json:"redirect,omitempty"` PortForward *PortForward `json:"portForward,omitempty"` }
type AuthApi ¶
type AuthApi struct {
Configuration *Configuration
}
func NewAuthApi ¶
func NewAuthApi() *AuthApi
func NewAuthApiWithBasePath ¶
func (AuthApi) LoginStatus ¶
func (a AuthApi) LoginStatus() (*LoginStatus, *APIResponse, error)
*
* * get login status * * @return *LoginStatus
func (AuthApi) Logout ¶
func (a AuthApi) Logout() (*LoginStatus, *APIResponse, error)
*
* * login off * * @return *LoginStatus
type ClientApi ¶
type ClientApi struct {
Configuration *Configuration
}
func NewClientApi ¶
func NewClientApi() *ClientApi
func (ClientApi) ListAvailableServices ¶
func (a ClientApi) ListAvailableServices(subdomain string, role string) ([]ClientService, *APIResponse, error)
*
* * list or search availables services * * @param subdomain filter by subdomain * @param role filter by role * @return []ClientService
type ClientService ¶
type Configuration ¶
type Configuration struct { UserName string `json:"userName,omitempty"` Password string `json:"password,omitempty"` APIKeyPrefix map[string]string `json:"APIKeyPrefix,omitempty"` APIKey map[string]string `json:"APIKey,omitempty"` Debug bool `json:"debug,omitempty"` DebugFile string `json:"debugFile,omitempty"` OAuthToken string `json:"oAuthToken,omitempty"` BasePath string `json:"basePath,omitempty"` Host string `json:"host,omitempty"` Scheme string `json:"scheme,omitempty"` AccessToken string `json:"accessToken,omitempty"` DefaultHeader map[string]string `json:"defaultHeader,omitempty"` UserAgent string `json:"userAgent,omitempty"` APIClient *APIClient Transport *http.Transport Timeout *time.Duration `json:"timeout,omitempty"` }
func NewConfiguration ¶
func NewConfiguration() *Configuration
func (*Configuration) AddDefaultHeader ¶
func (c *Configuration) AddDefaultHeader(key string, value string)
func (*Configuration) GetAPIKeyWithPrefix ¶
func (c *Configuration) GetAPIKeyWithPrefix(APIKeyIdentifier string) string
func (*Configuration) GetBasicAuthEncodedString ¶
func (c *Configuration) GetBasicAuthEncodedString() string
type Cors ¶
type Cors struct { AllowedOrigins []string `json:"allowedOrigins,omitempty"` AllowedMethods []string `json:"allowedMethods,omitempty"` AllowedHeaders []string `json:"allowedHeaders,omitempty"` AllowCredentials bool `json:"allowCredentials,omitempty"` OptionsPassthrough bool `json:"optionsPassthrough,omitempty"` MaxAge int32 `json:"maxAge,omitempty"` ExposedHeaders []string `json:"exposedHeaders,omitempty"` }
type FlashesApi ¶
type FlashesApi struct {
Configuration *Configuration
}
func NewFlashesApi ¶
func NewFlashesApi() *FlashesApi
func NewFlashesApiWithBasePath ¶
func NewFlashesApiWithBasePath(basePath string) *FlashesApi
func (FlashesApi) GetFlashes ¶
func (a FlashesApi) GetFlashes() (*Flash, *APIResponse, error)
*
* * list current flashes (only makes sense in browsers) * * @return *Flash
type InlineResponse500 ¶
type InlineResponse500 struct {
Message string `json:"message,omitempty"`
}
type LoginStatus ¶
type LongDescriptionLocal ¶
type LongDescriptionLocal struct {
Content string `json:"content,omitempty"`
}
type LongDescriptionRemote ¶
type LuaResolver ¶
type Metadata ¶
type Metadata struct { Id string `json:"id,omitempty"` RoleId string `json:"roleId,omitempty"` Logo string `json:"logo,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` SubDomain string `json:"subDomain,omitempty"` Tags []string `json:"tags,omitempty"` LongDescription MetadataLongDescription `json:"longDescription,omitempty"` }
type MetadataLongDescription ¶
type MetadataLongDescription struct { Remote *LongDescriptionRemote `json:"remote,omitempty"` Local *LongDescriptionLocal `json:"local,omitempty"` }
type PortForward ¶
type PortForward struct { }
type Secret ¶
type Secret struct { RequestId string `json:"request_id,omitempty"` LeaseDuration int32 `json:"lease_duration,omitempty"` Renewable bool `json:"renewable,omitempty"` Data interface{} `json:"data,omitempty"` Warnings []string `json:"warnings,omitempty"` WrapInfo SecretWrapInfo `json:"wrap_info,omitempty"` Auth SecretAuth `json:"auth,omitempty"` }
vault secret object
type SecretAuth ¶
type SecretAuth struct { ClientToken string `json:"client_token,omitempty"` Accessor string `json:"accessor,omitempty"` Policies []string `json:"policies,omitempty"` Metadata interface{} `json:"metadata,omitempty"` LeaseDuration int32 `json:"lease_duration,omitempty"` Renewable bool `json:"renewable,omitempty"` }
type SecretWrapInfo ¶
type SecretsApi ¶
type SecretsApi struct {
Configuration *Configuration
}
func NewSecretsApi ¶
func NewSecretsApi() *SecretsApi
func NewSecretsApiWithBasePath ¶
func NewSecretsApiWithBasePath(basePath string) *SecretsApi
func (SecretsApi) ReadSecret ¶
func (a SecretsApi) ReadSecret(id string) (*Secret, *APIResponse, error)
*
* * return secret associate with a service * * @param id secret path * @return *Secret
type ServiceCache ¶
type ServiceCache struct {
Ttl int32 `json:"ttl,omitempty"`
}
type SpaceApi ¶
type SpaceApi struct {
Configuration *Configuration
}
func NewSpaceApi ¶
func NewSpaceApi() *SpaceApi
func NewSpaceApiWithBasePath ¶
type YamlResolver ¶
type YamlResolver struct {
Content string `json:"content,omitempty"`
}
Source Files ¶
- admin_api.go
- admin_service.go
- admin_service_resolver.go
- admin_service_strategy.go
- api_client.go
- api_response.go
- auth_api.go
- client_api.go
- client_service.go
- configuration.go
- cors.go
- flash.go
- flashes_api.go
- inline_response_500.go
- login_status.go
- long_description_local.go
- long_description_remote.go
- lua_resolver.go
- metadata.go
- metadata_long_description.go
- port_forward.go
- proxy.go
- redirect.go
- secret.go
- secret_auth.go
- secret_wrap_info.go
- secrets_api.go
- service_cache.go
- space.go
- space_api.go
- yaml_resolver.go
Click to show internal directories.
Click to hide internal directories.