Documentation ¶
Index ¶
- type ApiError
- type ApiParameter
- type AuthMethod
- type BasicAuth
- type BearerToken
- type Client
- func (client *Client) ActivateDebug()
- func (client *Client) Apply(resource *resource.Resource, dryMode bool) (string, error)
- func (client *Client) CreateAdminToken(name string) (CreatedToken, error)
- func (client *Client) CreateApplicationInstanceToken(applicationInstanceName, name string) (CreatedToken, error)
- func (client *Client) Delete(kind *schema.Kind, parentPathValue []string, parentQueryValue []string, ...) error
- func (client *Client) DeleteResource(resource *resource.Resource) error
- func (client *Client) DeleteToken(uuid string) error
- func (client *Client) Describe(kind *schema.Kind, parentPathValue []string, parentQueryValue []string, ...) (resource.Resource, error)
- func (client *Client) ExecuteSql(maxLine int, sql string) (SqlResult, error)
- func (client *Client) Get(kind *schema.Kind, parentPathValue []string, parentQueryValue []string, ...) ([]resource.Resource, error)
- func (client *Client) GetKinds() schema.KindCatalog
- func (client *Client) GetOpenApi() ([]byte, error)
- func (c *Client) IgnoreUntrustedCertificate()
- func (client *Client) ListAdminToken() ([]Token, error)
- func (client *Client) ListApplicationInstanceToken(applicationInstanceName string) ([]Token, error)
- func (client *Client) Login(username, password string) (LoginResult, error)
- func (c *Client) SetApiKey(apiKey string)
- type CreatedToken
- type DeleteInterceptorPayload
- type GatewayApiParameter
- type GatewayClient
- func (client *GatewayClient) ActivateDebug()
- func (client *GatewayClient) Apply(resource *resource.Resource, dryMode bool) (string, error)
- func (client *GatewayClient) Delete(kind *schema.Kind, parentPathValue []string, parentQueryValue []string, ...) error
- func (client *GatewayClient) DeleteInterceptor(kind *schema.Kind, name string, param map[string]string) error
- func (client *GatewayClient) DeleteKindByNameAndVCluster(kind *schema.Kind, param map[string]string) error
- func (client *GatewayClient) DeleteResourceByName(resource *resource.Resource) error
- func (client *GatewayClient) DeleteResourceByNameAndVCluster(resource *resource.Resource) error
- func (client *GatewayClient) DeleteResourceInterceptors(resource *resource.Resource) error
- func (client *GatewayClient) Describe(kind *schema.Kind, parentPathValue []string, parentQueryValue []string, ...) (resource.Resource, error)
- func (client *GatewayClient) Get(kind *schema.Kind, parentPathValue []string, parentQueryValue []string, ...) ([]resource.Resource, error)
- func (client *GatewayClient) GetKinds() schema.KindCatalog
- func (client *GatewayClient) GetOpenApi() ([]byte, error)
- type LoginResult
- type SqlResult
- type Token
- type UpsertResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiParameter ¶ added in v0.2.7
type AuthMethod ¶ added in v0.3.3
type AuthMethod interface {
AuthorizationHeader() string
}
type BasicAuth ¶ added in v0.3.3
func (BasicAuth) AuthorizationHeader ¶ added in v0.3.3
type BearerToken ¶ added in v0.3.3
type BearerToken struct {
Token string
}
func (BearerToken) AuthorizationHeader ¶ added in v0.3.3
func (t BearerToken) AuthorizationHeader() string
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func Make ¶
func Make(apiParameter ApiParameter) (*Client, error)
func MakeFromEnv ¶
func (*Client) ActivateDebug ¶
func (client *Client) ActivateDebug()
func (*Client) CreateAdminToken ¶ added in v0.2.7
func (client *Client) CreateAdminToken(name string) (CreatedToken, error)
func (*Client) CreateApplicationInstanceToken ¶ added in v0.2.7
func (client *Client) CreateApplicationInstanceToken(applicationInstanceName, name string) (CreatedToken, error)
func (*Client) DeleteResource ¶ added in v0.2.7
func (*Client) DeleteToken ¶ added in v0.2.7
func (*Client) ExecuteSql ¶ added in v0.3.1
func (*Client) GetKinds ¶
func (client *Client) GetKinds() schema.KindCatalog
func (*Client) GetOpenApi ¶
func (*Client) IgnoreUntrustedCertificate ¶
func (c *Client) IgnoreUntrustedCertificate()
func (*Client) ListAdminToken ¶ added in v0.2.7
func (*Client) ListApplicationInstanceToken ¶ added in v0.2.7
type CreatedToken ¶ added in v0.2.7
type DeleteInterceptorPayload ¶ added in v0.3.0
type GatewayApiParameter ¶ added in v0.3.0
type GatewayClient ¶ added in v0.3.0
type GatewayClient struct {
// contains filtered or unexported fields
}
func MakeGateway ¶ added in v0.3.0
func MakeGateway(apiParameter GatewayApiParameter) (*GatewayClient, error)
func MakeGatewayClientFromEnv ¶ added in v0.3.0
func MakeGatewayClientFromEnv() (*GatewayClient, error)
func (*GatewayClient) ActivateDebug ¶ added in v0.3.0
func (client *GatewayClient) ActivateDebug()
func (*GatewayClient) DeleteInterceptor ¶ added in v0.3.0
func (*GatewayClient) DeleteKindByNameAndVCluster ¶ added in v0.3.0
func (*GatewayClient) DeleteResourceByName ¶ added in v0.3.0
func (client *GatewayClient) DeleteResourceByName(resource *resource.Resource) error
func (*GatewayClient) DeleteResourceByNameAndVCluster ¶ added in v0.3.0
func (client *GatewayClient) DeleteResourceByNameAndVCluster(resource *resource.Resource) error
func (*GatewayClient) DeleteResourceInterceptors ¶ added in v0.3.0
func (client *GatewayClient) DeleteResourceInterceptors(resource *resource.Resource) error
func (*GatewayClient) GetKinds ¶ added in v0.3.0
func (client *GatewayClient) GetKinds() schema.KindCatalog
func (*GatewayClient) GetOpenApi ¶ added in v0.3.0
func (client *GatewayClient) GetOpenApi() ([]byte, error)
type LoginResult ¶ added in v0.2.7
type SqlResult ¶ added in v0.3.1
type SqlResult struct { Header []string `json:"header"` Row [][]interface{} `json:"row"` }
type UpsertResponse ¶
type UpsertResponse struct {
UpsertResult string
}
Click to show internal directories.
Click to hide internal directories.