director

package
v0.0.0-...-0640eb1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2021 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsGQLNotFoundError

func IsGQLNotFoundError(err error) bool

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 BundleInstanceCredentialsInput

type BundleInstanceCredentialsInput struct {
	BundleID    string `valid:"required"`
	AuthID      string `valid:"required"`
	Context     Values
	InputSchema Values
}

type BundleInstanceCredentialsOutput

type BundleInstanceCredentialsOutput struct {
	InstanceAuth *schema.BundleInstanceAuth
	TargetURLs   map[string]string
}

type BundleInstanceInput

type BundleInstanceInput struct {
	InstanceAuthID string `valid:"required"`
	Context        map[string]string
}

type BundleSpecificationInput

type BundleSpecificationInput struct {
	ApplicationID string `valid:"required"`
	BundleID      string `valid:"required"`
	DefinitionID  string `valid:"required"`
}

type BundleSpecificationOutput

type BundleSpecificationOutput struct {
	Name        string  `json:"name"`
	Description *string `json:"description,omitempty"`

	Data    *schema.CLOB      `json:"data,omitempty"`
	Format  schema.SpecFormat `json:"format"`
	Type    string            `json:"type"`
	Version *schema.Version   `json:"version,omitempty"`
}

type Client

type Client interface {
	Do(ctx context.Context, req *gcli.Request, res interface{}) error
}

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 (*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

type Values

type Values map[string]interface{}

func (*Values) MarshalToQGLJSON

func (r *Values) MarshalToQGLJSON() (string, error)

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL