Documentation ¶
Index ¶
- func CloneColor(datum *image.Color) *image.Color
- func CloneContentAttributes(datum *image.ContentAttributes) *image.ContentAttributes
- func CloneImage(datum *image.Image) *image.Image
- func CloneImageArray(datum image.ImageArray) image.ImageArray
- func CloneMetadata(datum *image.Metadata) *image.Metadata
- func CloneRendition(datum *image.Rendition) *image.Rendition
- func MatchContentAttributes(datum *image.ContentAttributes) gomegaTypes.GomegaMatcher
- func MatchImage(datum *image.Image) gomegaTypes.GomegaMatcher
- func MatchImageArray(datum image.ImageArray) gomegaTypes.GomegaMatcher
- func NewObjectFromContentAttributes(datum *image.ContentAttributes, objectFormat test.ObjectFormat) map[string]interface{}
- func NewObjectFromFilter(datum *image.Filter, objectFormat test.ObjectFormat) map[string]interface{}
- func NewObjectFromImage(datum *image.Image, objectFormat test.ObjectFormat) map[string]interface{}
- func NewObjectFromMetadata(datum *image.Metadata, objectFormat test.ObjectFormat) map[string]interface{}
- func NewObjectFromRendition(datum *image.Rendition, objectFormat test.ObjectFormat) map[string]interface{}
- func RandomColor() *image.Color
- func RandomContent() *image.Content
- func RandomContentAttributes() *image.ContentAttributes
- func RandomContentBytes() []byte
- func RandomContentBytesFromDimensionsAndMediaType(width int, height int, mediaType string) []byte
- func RandomContentBytesFromMediaType(mediaType string) []byte
- func RandomContentFromDimensions(width int, height int) *image.Content
- func RandomContentID() string
- func RandomContentIntent() string
- func RandomContentIntents() []string
- func RandomFilter() *image.Filter
- func RandomGeneration() int
- func RandomHeight() int
- func RandomID() string
- func RandomImage() *image.Image
- func RandomImageArray(minimumLength int, maximumLength int) image.ImageArray
- func RandomMediaType() string
- func RandomMetadata() *image.Metadata
- func RandomMode() string
- func RandomName() string
- func RandomQuality() int
- func RandomRendition() *image.Rendition
- func RandomRenditionString() string
- func RandomRenditionStrings() []string
- func RandomRenditionsID() string
- func RandomStatus() string
- func RandomStatuses() []string
- func RandomWidth() int
- type Client
- func (c *Client) AssertOutputsEmpty()
- func (c *Client) Create(ctx context.Context, userID string, metadata *image.Metadata, ...) (*image.Image, error)
- func (c *Client) CreateWithContent(ctx context.Context, userID string, contentIntent string, ...) (*image.Image, error)
- func (c *Client) CreateWithMetadata(ctx context.Context, userID string, metadata *image.Metadata) (*image.Image, error)
- func (c *Client) Delete(ctx context.Context, id string, condition *request.Condition) (bool, error)
- func (c *Client) DeleteAll(ctx context.Context, userID string) error
- func (c *Client) Get(ctx context.Context, id string) (*image.Image, error)
- func (c *Client) GetContent(ctx context.Context, id string, mediaType *string) (*image.Content, error)
- func (c *Client) GetMetadata(ctx context.Context, id string) (*image.Metadata, error)
- func (c *Client) GetRenditionContent(ctx context.Context, id string, rendition *image.Rendition) (*image.Content, error)
- func (c *Client) List(ctx context.Context, userID string, filter *image.Filter, ...) (image.ImageArray, error)
- func (c *Client) PutContent(ctx context.Context, id string, condition *request.Condition, ...) (*image.Image, error)
- func (c *Client) PutMetadata(ctx context.Context, id string, condition *request.Condition, ...) (*image.Image, error)
- type CreateInput
- type CreateOutput
- type CreateWithContentInput
- type CreateWithContentOutput
- type CreateWithMetadataInput
- type CreateWithMetadataOutput
- type DeleteInput
- type DeleteOutput
- type GetContentInput
- type GetContentOutput
- type GetMetadataOutput
- type GetOutput
- type GetRenditionContentInput
- type GetRenditionContentOutput
- type ListInput
- type ListOutput
- type PutContentInput
- type PutContentOutput
- type PutMetadataInput
- type PutMetadataOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloneContentAttributes ¶
func CloneContentAttributes(datum *image.ContentAttributes) *image.ContentAttributes
func CloneImageArray ¶
func CloneImageArray(datum image.ImageArray) image.ImageArray
func MatchContentAttributes ¶
func MatchContentAttributes(datum *image.ContentAttributes) gomegaTypes.GomegaMatcher
func MatchImage ¶
func MatchImage(datum *image.Image) gomegaTypes.GomegaMatcher
func MatchImageArray ¶
func MatchImageArray(datum image.ImageArray) gomegaTypes.GomegaMatcher
func NewObjectFromContentAttributes ¶
func NewObjectFromContentAttributes(datum *image.ContentAttributes, objectFormat test.ObjectFormat) map[string]interface{}
func NewObjectFromFilter ¶
func NewObjectFromFilter(datum *image.Filter, objectFormat test.ObjectFormat) map[string]interface{}
func NewObjectFromImage ¶
func NewObjectFromImage(datum *image.Image, objectFormat test.ObjectFormat) map[string]interface{}
func NewObjectFromMetadata ¶
func NewObjectFromMetadata(datum *image.Metadata, objectFormat test.ObjectFormat) map[string]interface{}
func NewObjectFromRendition ¶
func NewObjectFromRendition(datum *image.Rendition, objectFormat test.ObjectFormat) map[string]interface{}
func RandomColor ¶
func RandomContent ¶
func RandomContentAttributes ¶
func RandomContentAttributes() *image.ContentAttributes
func RandomContentBytes ¶
func RandomContentBytes() []byte
func RandomContentID ¶
func RandomContentID() string
func RandomContentIntent ¶
func RandomContentIntent() string
func RandomContentIntents ¶
func RandomContentIntents() []string
func RandomFilter ¶
func RandomGeneration ¶
func RandomGeneration() int
func RandomHeight ¶
func RandomHeight() int
func RandomImage ¶
func RandomImageArray ¶
func RandomImageArray(minimumLength int, maximumLength int) image.ImageArray
func RandomMediaType ¶
func RandomMediaType() string
func RandomMetadata ¶
func RandomMode ¶
func RandomMode() string
func RandomName ¶
func RandomName() string
func RandomQuality ¶
func RandomQuality() int
func RandomRendition ¶
func RandomRenditionString ¶
func RandomRenditionString() string
func RandomRenditionStrings ¶
func RandomRenditionStrings() []string
func RandomRenditionsID ¶
func RandomRenditionsID() string
func RandomStatus ¶
func RandomStatus() string
func RandomStatuses ¶
func RandomStatuses() []string
func RandomWidth ¶
func RandomWidth() int
Types ¶
type Client ¶
type Client struct { ListInvocations int ListInputs []ListInput ListStub func(ctx context.Context, userID string, filter *image.Filter, pagination *page.Pagination) (image.ImageArray, error) ListOutputs []ListOutput ListOutput *ListOutput CreateInvocations int CreateInputs []CreateInput CreateStub func(ctx context.Context, userID string, metadata *image.Metadata, contentIntent string, content *image.Content) (*image.Image, error) CreateOutputs []CreateOutput CreateOutput *CreateOutput CreateWithMetadataInvocations int CreateWithMetadataInputs []CreateWithMetadataInput CreateWithMetadataStub func(ctx context.Context, userID string, metadata *image.Metadata) (*image.Image, error) CreateWithMetadataOutputs []CreateWithMetadataOutput CreateWithMetadataOutput *CreateWithMetadataOutput CreateWithContentInvocations int CreateWithContentInputs []CreateWithContentInput CreateWithContentStub func(ctx context.Context, userID string, contentIntent string, content *image.Content) (*image.Image, error) CreateWithContentOutputs []CreateWithContentOutput CreateWithContentOutput *CreateWithContentOutput DeleteAllInvocations int DeleteAllInputs []string DeleteAllStub func(ctx context.Context, id string) error DeleteAllOutputs []error DeleteAllOutput *error GetInvocations int GetInputs []string GetStub func(ctx context.Context, id string) (*image.Image, error) GetOutputs []GetOutput GetOutput *GetOutput GetMetadataInvocations int GetMetadataInputs []string GetMetadataStub func(ctx context.Context, id string) (*image.Metadata, error) GetMetadataOutputs []GetMetadataOutput GetMetadataOutput *GetMetadataOutput GetContentInvocations int GetContentInputs []GetContentInput GetContentStub func(ctx context.Context, id string, mediaType *string) (*image.Content, error) GetContentOutputs []GetContentOutput GetContentOutput *GetContentOutput GetRenditionContentInvocations int GetRenditionContentInputs []GetRenditionContentInput GetRenditionContentStub func(ctx context.Context, id string, rendition *image.Rendition) (*image.Content, error) GetRenditionContentOutputs []GetRenditionContentOutput GetRenditionContentOutput *GetRenditionContentOutput PutMetadataInvocations int PutMetadataInputs []PutMetadataInput PutMetadataStub func(ctx context.Context, id string, condition *request.Condition, metadata *image.Metadata) (*image.Image, error) PutMetadataOutputs []PutMetadataOutput PutMetadataOutput *PutMetadataOutput PutContentInvocations int PutContentInputs []PutContentInput PutContentStub func(ctx context.Context, id string, condition *request.Condition, contentIntent string, content *image.Content) (*image.Image, error) PutContentOutputs []PutContentOutput PutContentOutput *PutContentOutput DeleteInvocations int DeleteInputs []DeleteInput DeleteStub func(ctx context.Context, id string, condition *request.Condition) (bool, error) DeleteOutputs []DeleteOutput DeleteOutput *DeleteOutput }
func (*Client) AssertOutputsEmpty ¶
func (c *Client) AssertOutputsEmpty()
func (*Client) CreateWithContent ¶
func (*Client) CreateWithMetadata ¶
func (*Client) GetContent ¶
func (*Client) GetMetadata ¶
func (*Client) GetRenditionContent ¶
func (*Client) PutContent ¶
type CreateInput ¶
type CreateOutput ¶
type CreateWithContentInput ¶
type CreateWithContentOutput ¶
type CreateWithMetadataInput ¶
type DeleteInput ¶
type DeleteOutput ¶
type GetContentInput ¶
type GetContentOutput ¶
type GetMetadataOutput ¶
type ListInput ¶
type ListInput struct { UserID string Filter *image.Filter Pagination *page.Pagination }
type ListOutput ¶
type ListOutput struct { ImageArray image.ImageArray Error error }
type PutContentInput ¶
type PutContentOutput ¶
type PutMetadataInput ¶
type PutMetadataOutput ¶
Click to show internal directories.
Click to hide internal directories.