Documentation
¶
Index ¶
- Variables
- func AsGallery[StackID, ImageID gallery.ID](g *Gallery, toStackID func(string) StackID, toImageID func(string) ImageID) gallery.DTO[StackID, ImageID]
- func AsImage[ID gallery.ID](img *Image, toImageID func(string) ID) gallery.Image[ID]
- func AsStack[StackID, ImageID gallery.ID](s *Stack, toStackID func(string) StackID, toImageID func(string) ImageID) gallery.Stack[StackID, ImageID]
- type Gallery
- func (g *Gallery) AsGallery() gallery.DTO[StringID, StringID]
- func (*Gallery) Descriptor() ([]byte, []int)deprecated
- func (x *Gallery) GetStacks() []*Stack
- func (*Gallery) ProtoMessage()
- func (x *Gallery) ProtoReflect() protoreflect.Message
- func (x *Gallery) Reset()
- func (x *Gallery) String() string
- type Image
- func (img *Image) AsImage() gallery.Image[StringID]
- func (*Image) Descriptor() ([]byte, []int)deprecated
- func (x *Image) GetId() string
- func (x *Image) GetImage() *v0.Image
- func (x *Image) GetOriginal() bool
- func (*Image) ProtoMessage()
- func (x *Image) ProtoReflect() protoreflect.Message
- func (x *Image) Reset()
- func (x *Image) String() string
- type Stack
- func (s *Stack) AsStack() gallery.Stack[StringID, StringID]
- func (*Stack) Descriptor() ([]byte, []int)deprecated
- func (x *Stack) GetId() string
- func (x *Stack) GetTags() []string
- func (x *Stack) GetVariants() []*Image
- func (*Stack) ProtoMessage()
- func (x *Stack) ProtoReflect() protoreflect.Message
- func (x *Stack) Reset()
- func (x *Stack) String() string
- type StringID
Constants ¶
This section is empty.
Variables ¶
View Source
var File_mediaentity_gallery_v0_gallery_proto protoreflect.FileDescriptor
Functions ¶
Types ¶
type Gallery ¶
type Gallery struct {
Stacks []*Stack `protobuf:"bytes,1,rep,name=stacks,proto3" json:"stacks,omitempty"`
// contains filtered or unexported fields
}
Gallery is an image gallery.
func (*Gallery) Descriptor
deprecated
func (*Gallery) ProtoMessage ¶
func (*Gallery) ProtoMessage()
func (*Gallery) ProtoReflect ¶
func (x *Gallery) ProtoReflect() protoreflect.Message
type Image ¶
type Image struct {
Image *v0.Image `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"`
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
Original bool `protobuf:"varint,3,opt,name=original,proto3" json:"original,omitempty"`
// contains filtered or unexported fields
}
Image is an image/variant of a stack.
func (*Image) Descriptor
deprecated
func (*Image) GetOriginal ¶
func (*Image) ProtoMessage ¶
func (*Image) ProtoMessage()
func (*Image) ProtoReflect ¶
func (x *Image) ProtoReflect() protoreflect.Message
type Stack ¶
type Stack struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Variants []*Image `protobuf:"bytes,2,rep,name=variants,proto3" json:"variants,omitempty"`
Tags []string `protobuf:"bytes,3,rep,name=tags,proto3" json:"tags,omitempty"`
// contains filtered or unexported fields
}
Stack represents an image of a gallery that may have multiple variants of the same image.
func (*Stack) Descriptor
deprecated
func (*Stack) GetVariants ¶
func (*Stack) ProtoMessage ¶
func (*Stack) ProtoMessage()
func (*Stack) ProtoReflect ¶
func (x *Stack) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.