Documentation ¶
Index ¶
- func IsGQLNotFoundError(err error) bool
- type ApplicationOutput
- type ApplicationsOutput
- type BundleInstanceAuthDeletionInput
- type BundleInstanceAuthDeletionOutput
- type BundleInstanceAuthOutput
- type BundleInstanceCredentialsInput
- type BundleInstanceCredentialsOutput
- type BundleInstanceInput
- type BundleSpecificationInput
- type BundleSpecificationOutput
- type Client
- type GqlFieldsProvider
- type GraphQLClient
- func (c *GraphQLClient) FetchApplication(ctx context.Context, id string) (*ApplicationOutput, error)
- func (c *GraphQLClient) FetchApplications(ctx context.Context) (*ApplicationsOutput, error)
- func (c *GraphQLClient) FetchBundleInstanceAuth(ctx context.Context, in *BundleInstanceInput) (*BundleInstanceAuthOutput, error)
- func (c *GraphQLClient) FetchBundleInstanceCredentials(ctx context.Context, in *BundleInstanceInput) (*BundleInstanceCredentialsOutput, error)
- func (c *GraphQLClient) FindSpecification(ctx context.Context, in *BundleSpecificationInput) (*BundleSpecificationOutput, error)
- func (c *GraphQLClient) RequestBundleInstanceCredentialsCreation(ctx context.Context, in *BundleInstanceCredentialsInput) (*BundleInstanceAuthOutput, error)
- func (c *GraphQLClient) RequestBundleInstanceCredentialsDeletion(ctx context.Context, in *BundleInstanceAuthDeletionInput) (*BundleInstanceAuthDeletionOutput, error)
- type GraphQLizer
- type NotFoundError
- type Values
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsGQLNotFoundError ¶
Types ¶
type ApplicationOutput ¶
type ApplicationOutput struct {
Result *schema.ApplicationExt `json:"result"`
}
type ApplicationsOutput ¶
type ApplicationsOutput struct {
Result *schema.ApplicationPageExt `json:"result"`
}
type BundleInstanceAuthDeletionInput ¶
type BundleInstanceAuthDeletionInput struct {
InstanceAuthID string `valid:"required"`
}
type BundleInstanceAuthDeletionOutput ¶
type BundleInstanceAuthDeletionOutput struct { ID string `json:"id"` Status schema.BundleInstanceAuthStatus `json:"status"` }
type BundleInstanceAuthOutput ¶
type BundleInstanceAuthOutput struct {
InstanceAuth *schema.BundleInstanceAuth `json:"result"`
}
type BundleInstanceCredentialsOutput ¶
type BundleInstanceCredentialsOutput struct { InstanceAuth *schema.BundleInstanceAuth TargetURLs map[string]string }
type BundleInstanceInput ¶
type GqlFieldsProvider ¶
type GqlFieldsProvider interface { OmitForApplication(omit []string) string ForApplication(ctx ...graphqlizer.FieldCtx) string ForAPIDefinition(ctx ...graphqlizer.FieldCtx) string ForDocument() string ForEventDefinition() string ForLabel() string ForBundle(ctx ...graphqlizer.FieldCtx) string ForBundleInstanceAuth() string ForBundleInstanceAuthStatus() string Page(item string) string }
type GraphQLClient ¶
type GraphQLClient struct {
// contains filtered or unexported fields
}
func NewGraphQLClient ¶
func NewGraphQLClient(gqlClient Client, gqlizer GraphQLizer, gqlFieldsProvider GqlFieldsProvider) *GraphQLClient
func (*GraphQLClient) FetchApplication ¶
func (c *GraphQLClient) FetchApplication(ctx context.Context, id string) (*ApplicationOutput, error)
func (*GraphQLClient) FetchApplications ¶
func (c *GraphQLClient) FetchApplications(ctx context.Context) (*ApplicationsOutput, error)
func (*GraphQLClient) FetchBundleInstanceAuth ¶
func (c *GraphQLClient) FetchBundleInstanceAuth(ctx context.Context, in *BundleInstanceInput) (*BundleInstanceAuthOutput, error)
func (*GraphQLClient) FetchBundleInstanceCredentials ¶
func (c *GraphQLClient) FetchBundleInstanceCredentials(ctx context.Context, in *BundleInstanceInput) (*BundleInstanceCredentialsOutput, error)
func (*GraphQLClient) FindSpecification ¶
func (c *GraphQLClient) FindSpecification(ctx context.Context, in *BundleSpecificationInput) (*BundleSpecificationOutput, error)
func (*GraphQLClient) RequestBundleInstanceCredentialsCreation ¶
func (c *GraphQLClient) RequestBundleInstanceCredentialsCreation(ctx context.Context, in *BundleInstanceCredentialsInput) (*BundleInstanceAuthOutput, error)
func (*GraphQLClient) RequestBundleInstanceCredentialsDeletion ¶
func (c *GraphQLClient) RequestBundleInstanceCredentialsDeletion(ctx context.Context, in *BundleInstanceAuthDeletionInput) (*BundleInstanceAuthDeletionOutput, error)
type GraphQLizer ¶
type GraphQLizer interface {
BundleInstanceAuthRequestInputToGQL(in schema.BundleInstanceAuthRequestInput) (string, error)
}
type NotFoundError ¶
type NotFoundError struct { }
func (*NotFoundError) Error ¶
func (fe *NotFoundError) Error() string
func (*NotFoundError) NotFound ¶
func (fe *NotFoundError) NotFound() bool
Click to show internal directories.
Click to hide internal directories.