Documentation
¶
Index ¶
- func GraphqlAPI[T any](ctx context.Context, client *CfClient, query string, variables any) (T, error)
- type ApiError
- type CfClient
- func (c *CfClient) AppProxyClient(host string, insecure bool) *CfClient
- func (c *CfClient) GraphqlAPI(ctx context.Context, query string, variables any, result any) error
- func (c *CfClient) NativeRestAPI(ctx context.Context, opt *RequestOptions) (*http.Response, error)
- func (c *CfClient) RestAPI(ctx context.Context, opt *RequestOptions) ([]byte, error)
- type ClientOptions
- type GraphqlBaseResponse
- type GraphqlError
- type GraphqlErrorResponse
- type GraphqlResponse
- type GraphqlVoidResponse
- type RequestOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CfClient ¶
type CfClient struct {
// contains filtered or unexported fields
}
func NewCfClient ¶
func (*CfClient) AppProxyClient ¶
func (*CfClient) GraphqlAPI ¶
func (*CfClient) NativeRestAPI ¶ added in v1.4.12
type ClientOptions ¶
type GraphqlBaseResponse ¶
type GraphqlBaseResponse struct {
Errors []GraphqlError
}
func (GraphqlBaseResponse) HasErrors ¶
func (e GraphqlBaseResponse) HasErrors() bool
type GraphqlError ¶
type GraphqlErrorResponse ¶
type GraphqlErrorResponse struct { Errors []GraphqlError // contains filtered or unexported fields }
func (GraphqlErrorResponse) Error ¶
func (e GraphqlErrorResponse) Error() string
type GraphqlResponse ¶
type GraphqlResponse interface {
HasErrors() bool
}
type GraphqlVoidResponse ¶
type GraphqlVoidResponse struct{}
Click to show internal directories.
Click to hide internal directories.