Documentation ¶
Overview ¶
Package grpc is in charge of storing versions metadata
Index ¶
- Variables
- func InitDefaults(ctx context.Context) error
- func NewChangeLogFromNode(ctx context.Context, node *tree.Node, event *tree.NodeChangeEvent) *tree.ChangeLog
- type Handler
- func (h *Handler) CreateVersion(ctx context.Context, request *tree.CreateVersionRequest, ...) error
- func (h *Handler) HeadVersion(ctx context.Context, request *tree.HeadVersionRequest, ...) error
- func (h *Handler) ListVersions(ctx context.Context, request *tree.ListVersionsRequest, ...) error
- func (h *Handler) PruneVersions(ctx context.Context, request *tree.PruneVersionsRequest, ...) error
- func (h *Handler) StoreVersion(ctx context.Context, request *tree.StoreVersionRequest, ...) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ExposedConfigs = &forms.Form{ I18NBundle: lang.Bundle(), Groups: []*forms.Group{ { Label: "Config.GroupPolicy.Title", Fields: []forms.Field{ &forms.FormField{ Name: "Uuid", Type: forms.ParamHidden, }, &forms.FormField{ Name: "Name", Label: "Config.GroupPolicy.Name.Label", Type: forms.ParamString, Mandatory: true, Description: "Config.GroupPolicy.Name.Description", }, &forms.FormField{ Name: "Description", Label: "Config.GroupPolicy.Description.Label", Type: forms.ParamString, Mandatory: true, Description: "Config.GroupPolicy.Description.Description", }, &forms.FormField{ Name: "VersionsDataSourceName", Label: "Config.GroupPolicy.VersionsDataSourceName.Label", Description: "Config.GroupPolicy.VersionsDataSourceName.Description", Type: forms.ParamString, Mandatory: true, Default: "default", }, &forms.FormField{ Name: "VersionsDataSourceBucket", Label: "Config.GroupPolicy.VersionsDataSourceBucket.Label", Description: "Config.GroupPolicy.VersionsDataSourceBucket.Description", Type: forms.ParamString, Mandatory: true, Default: "versions", }, }, }, { Label: "Config.GroupSizes.Title", Fields: []forms.Field{ &forms.FormField{ Name: "MaxTotalSize", Label: "Config.GroupSizes.MaxTotalSize.Label", Description: "Config.GroupSizes.MaxTotalSize.Description", Type: forms.ParamInteger, Mandatory: false, Default: -1, }, &forms.FormField{ Name: "MaxSizePerFile", Label: "Config.GroupSizes.MaxSizePerFile.Label", Description: "Config.GroupSizes.MaxSizePerFile.Description", Type: forms.ParamInteger, Mandatory: false, Default: -1, }, &forms.FormField{ Name: "IgnoreFilesGreaterThan", Label: "Config.GroupSizes.IgnoreFilesGreaterThan.Label", Description: "Config.GroupSizes.IgnoreFilesGreaterThan.Description", Type: forms.ParamInteger, Mandatory: false, Default: -1, }, }, }, { Label: "Config.GroupRetention.Title", Fields: []forms.Field{ &forms.ReplicableFields{ Id: "periods", Mandatory: true, Title: "Config.GroupRetention.Title", Description: "Config.GroupRetention.Description", Fields: []forms.Field{ &forms.FormField{ Name: "IntervalStart", Label: "Config.GroupRetention.IntervalStart.Name", Description: "Config.GroupRetention.IntervalStart.Description", Type: forms.ParamString, Mandatory: true, }, &forms.FormField{ Name: "MaxNumber", Label: "Config.GroupRetention.MaxNumber.Name", Description: "Config.GroupRetention.MaxNumber.Description", Type: forms.ParamInteger, Mandatory: true, }, }, }, }, }, }, }
View Source
var (
Name = common.ServiceGrpcNamespace_ + common.ServiceVersions
)
Functions ¶
func InitDefaults ¶
func NewChangeLogFromNode ¶
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) CreateVersion ¶
func (h *Handler) CreateVersion(ctx context.Context, request *tree.CreateVersionRequest, resp *tree.CreateVersionResponse) error
func (*Handler) HeadVersion ¶
func (h *Handler) HeadVersion(ctx context.Context, request *tree.HeadVersionRequest, resp *tree.HeadVersionResponse) error
func (*Handler) ListVersions ¶
func (h *Handler) ListVersions(ctx context.Context, request *tree.ListVersionsRequest, versionsStream tree.NodeVersioner_ListVersionsStream) error
func (*Handler) PruneVersions ¶
func (h *Handler) PruneVersions(ctx context.Context, request *tree.PruneVersionsRequest, resp *tree.PruneVersionsResponse) error
func (*Handler) StoreVersion ¶
func (h *Handler) StoreVersion(ctx context.Context, request *tree.StoreVersionRequest, resp *tree.StoreVersionResponse) error
Click to show internal directories.
Click to hide internal directories.