attachment

package
v0.0.0-...-3ce7580 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() *types.Attachment

func Validate

func Validate(c *types.Attachment) *httptypes.CommonError

func Wrap

func Wrap(c *types.Attachment) mycontent.Data

Types

type Wrapper

type Wrapper struct {
	*types.Attachment
}

wrapped provides functionalities that are required by the usecases

func (*Wrapper) CreatedTime

func (c *Wrapper) CreatedTime() time.Time

func (*Wrapper) EndTime

func (c *Wrapper) EndTime() time.Time

func (*Wrapper) ID

func (c *Wrapper) ID() string

func (*Wrapper) InternalPath

func (c *Wrapper) InternalPath() string

func (*Wrapper) MainRefID

func (c *Wrapper) MainRefID() string

func (*Wrapper) OwnerID

func (c *Wrapper) OwnerID() string

func (*Wrapper) SetInternalPath

func (c *Wrapper) SetInternalPath(path string)

func (*Wrapper) SetSize

func (c *Wrapper) SetSize(size int64)

func (*Wrapper) SetType

func (c *Wrapper) SetType(contentType string)

func (*Wrapper) SetURL

func (c *Wrapper) SetURL(path string)

func (*Wrapper) Size

func (c *Wrapper) Size() int64

func (*Wrapper) StartTime

func (c *Wrapper) StartTime() time.Time

func (*Wrapper) Type

func (c *Wrapper) Type() string

func (*Wrapper) URL

func (c *Wrapper) URL() string

func (*Wrapper) WithCreatedTime

func (c *Wrapper) WithCreatedTime(t time.Time) mycontent.Data

func (*Wrapper) WithEndTime

func (c *Wrapper) WithEndTime(t time.Time) mycontent.Data

func (*Wrapper) WithID

func (c *Wrapper) WithID(id string) mycontent.Data

func (*Wrapper) WithOwnerID

func (c *Wrapper) WithOwnerID(id string) mycontent.Data

func (*Wrapper) WithStartTime

func (c *Wrapper) WithStartTime(t time.Time) mycontent.Data

func (*Wrapper) WithURL

func (c *Wrapper) WithURL(url string) mycontent.Data

Jump to

Keyboard shortcuts

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