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, diffMode bool) (Result, 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, ignoreMissing bool) 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) GetCatalog() *schema.Catalog
- func (client *Client) GetFromResource(res *resource.Resource) (resource.Resource, error)
- func (client *Client) GetKinds() schema.KindCatalog
- func (client *Client) GetOpenAPI() ([]byte, error)
- func (client *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 (client *Client) Run(run schema.Run, pathValue []string, queryParams map[string]string, ...) ([]byte, error)
- func (client *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, diffMode bool) (Result, 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, ignoreMissing bool) error
- func (client *GatewayClient) DeleteKindByNameAndVCluster(kind *schema.Kind, param map[string]string, ignoreMissing bool) error
- func (client *GatewayClient) DeleteResourceByName(resource *resource.Resource, ignoreMissing bool) error
- func (client *GatewayClient) DeleteResourceByNameAndVCluster(resource *resource.Resource, ignoreMissing bool) error
- func (client *GatewayClient) DeleteResourceInterceptors(resource *resource.Resource, ignoreMissing bool) 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) GetCatalog() *schema.Catalog
- func (client *GatewayClient) GetFromResource(res *resource.Resource) (resource.Resource, error)
- func (client *GatewayClient) GetKinds() schema.KindCatalog
- func (client *GatewayClient) GetOpenAPI() ([]byte, error)
- func (client *GatewayClient) Run(run schema.Run, pathValue []string, queryParams map[string]string, ...) ([]byte, error)
- type LoginResult
- type Result
- type SQLResult
- type Token
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIError ¶
type APIParameter ¶
type AuthMethod ¶
type AuthMethod interface {
AuthorizationHeader() string
}
type BasicAuth ¶
func (BasicAuth) AuthorizationHeader ¶
type BearerToken ¶
type BearerToken struct {
Token string
}
func (BearerToken) AuthorizationHeader ¶
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 ¶
func (client *Client) CreateAdminToken(name string) (CreatedToken, error)
func (*Client) CreateApplicationInstanceToken ¶
func (client *Client) CreateApplicationInstanceToken(applicationInstanceName, name string) (CreatedToken, error)
func (*Client) DeleteResource ¶
func (*Client) DeleteToken ¶
func (*Client) ExecuteSQL ¶
func (*Client) GetCatalog ¶
func (*Client) GetFromResource ¶
GetFromResource fetches the current version of a resource from the server by name and kind. It builds the appropriate URL and query parameters based on the resource's kind configuration.
func (*Client) GetKinds ¶
func (client *Client) GetKinds() schema.KindCatalog
func (*Client) GetOpenAPI ¶
func (*Client) IgnoreUntrustedCertificate ¶
func (client *Client) IgnoreUntrustedCertificate()
func (*Client) ListAdminToken ¶
func (*Client) ListApplicationInstanceToken ¶
type CreatedToken ¶
type GatewayAPIParameter ¶
type GatewayClient ¶
type GatewayClient struct {
// contains filtered or unexported fields
}
func MakeGateway ¶
func MakeGateway(apiParameter GatewayAPIParameter) (*GatewayClient, error)
func MakeGatewayClientFromEnv ¶
func MakeGatewayClientFromEnv() (*GatewayClient, error)
func (*GatewayClient) ActivateDebug ¶
func (client *GatewayClient) ActivateDebug()
func (*GatewayClient) DeleteInterceptor ¶
func (*GatewayClient) DeleteKindByNameAndVCluster ¶
func (*GatewayClient) DeleteResourceByName ¶
func (client *GatewayClient) DeleteResourceByName(resource *resource.Resource, ignoreMissing bool) error
func (*GatewayClient) DeleteResourceByNameAndVCluster ¶
func (client *GatewayClient) DeleteResourceByNameAndVCluster(resource *resource.Resource, ignoreMissing bool) error
func (*GatewayClient) DeleteResourceInterceptors ¶
func (client *GatewayClient) DeleteResourceInterceptors(resource *resource.Resource, ignoreMissing bool) error
func (*GatewayClient) GetCatalog ¶
func (client *GatewayClient) GetCatalog() *schema.Catalog
func (*GatewayClient) GetFromResource ¶
func (*GatewayClient) GetKinds ¶
func (client *GatewayClient) GetKinds() schema.KindCatalog
func (*GatewayClient) GetOpenAPI ¶
func (client *GatewayClient) GetOpenAPI() ([]byte, error)
type LoginResult ¶
Click to show internal directories.
Click to hide internal directories.