commonmodels

package
v0.1.8-alpha Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Right_name = map[int32]string{
		0: "Read",
		1: "Write",
	}
	Right_value = map[string]int32{
		"Read":  0,
		"Write": 1,
	}
)

Enum value maps for Right.

View Source
var (
	Resource_name = map[int32]string{
		0: "Project",
		1: "Dataset",
		2: "DatasetVersion",
		3: "DatasetObject",
		4: "DatasetObjectGroupResource",
	}
	Resource_value = map[string]int32{
		"Project":                    0,
		"Dataset":                    1,
		"DatasetVersion":             2,
		"DatasetObject":              3,
		"DatasetObjectGroupResource": 4,
	}
)

Enum value maps for Resource.

View Source
var (
	Stage_name = map[int32]string{
		0: "Stable",
		1: "Beta",
		2: "Alpha",
	}
	Stage_value = map[string]int32{
		"Stable": 0,
		"Beta":   1,
		"Alpha":  2,
	}
)

Enum value maps for Stage.

View Source
var (
	Origin_OriginTypeEnum_name = map[int32]string{
		0: "ObjectStorage",
		1: "OriginLink",
	}
	Origin_OriginTypeEnum_value = map[string]int32{
		"ObjectStorage": 0,
		"OriginLink":    1,
	}
)

Enum value maps for Origin_OriginTypeEnum.

View Source
var (
	Version_VersionStage_name = map[int32]string{
		0: "Stable",
		1: "ReleaseCandidate",
		2: "Beta",
		3: "Alpha",
	}
	Version_VersionStage_value = map[string]int32{
		"Stable":           0,
		"ReleaseCandidate": 1,
		"Beta":             2,
		"Alpha":            3,
	}
)

Enum value maps for Version_VersionStage.

View Source
var File_proto_CommonModels_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Empty

type Empty struct {
	// contains filtered or unexported fields
}

func (*Empty) Descriptor deprecated

func (*Empty) Descriptor() ([]byte, []int)

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

func (x *Empty) ProtoReflect() protoreflect.Message

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type ID

type ID struct {
	ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` // An arbitrary ID
	// contains filtered or unexported fields
}

func (*ID) Descriptor deprecated

func (*ID) Descriptor() ([]byte, []int)

Deprecated: Use ID.ProtoReflect.Descriptor instead.

func (*ID) GetID

func (x *ID) GetID() string

func (*ID) ProtoMessage

func (*ID) ProtoMessage()

func (*ID) ProtoReflect

func (x *ID) ProtoReflect() protoreflect.Message

func (*ID) Reset

func (x *ID) Reset()

func (*ID) String

func (x *ID) String() string

type IDList

type IDList struct {
	IDs []string `protobuf:"bytes,1,rep,name=IDs,proto3" json:"IDs,omitempty"`
	// contains filtered or unexported fields
}

func (*IDList) Descriptor deprecated

func (*IDList) Descriptor() ([]byte, []int)

Deprecated: Use IDList.ProtoReflect.Descriptor instead.

func (*IDList) GetIDs

func (x *IDList) GetIDs() []string

func (*IDList) ProtoMessage

func (*IDList) ProtoMessage()

func (*IDList) ProtoReflect

func (x *IDList) ProtoReflect() protoreflect.Message

func (*IDList) Reset

func (x *IDList) Reset()

func (*IDList) String

func (x *IDList) String() string

type Int64Wrapper

type Int64Wrapper struct {
	Value int64 `protobuf:"varint,1,opt,name=Value,proto3" json:"Value,omitempty"`
	// contains filtered or unexported fields
}

func (*Int64Wrapper) Descriptor deprecated

func (*Int64Wrapper) Descriptor() ([]byte, []int)

Deprecated: Use Int64Wrapper.ProtoReflect.Descriptor instead.

func (*Int64Wrapper) GetValue

func (x *Int64Wrapper) GetValue() int64

func (*Int64Wrapper) ProtoMessage

func (*Int64Wrapper) ProtoMessage()

func (*Int64Wrapper) ProtoReflect

func (x *Int64Wrapper) ProtoReflect() protoreflect.Message

func (*Int64Wrapper) Reset

func (x *Int64Wrapper) Reset()

func (*Int64Wrapper) String

func (x *Int64Wrapper) String() string

type Location

type Location struct {
	Bucket string `protobuf:"bytes,1,opt,name=Bucket,proto3" json:"Bucket,omitempty"`
	Key    string `protobuf:"bytes,2,opt,name=Key,proto3" json:"Key,omitempty"`
	URL    string `protobuf:"bytes,3,opt,name=URL,proto3" json:"URL,omitempty"` // Object storage endpoint
	// contains filtered or unexported fields
}

A location in S3

func (*Location) Descriptor deprecated

func (*Location) Descriptor() ([]byte, []int)

Deprecated: Use Location.ProtoReflect.Descriptor instead.

func (*Location) GetBucket

func (x *Location) GetBucket() string

func (*Location) GetKey

func (x *Location) GetKey() string

func (*Location) GetURL

func (x *Location) GetURL() string

func (*Location) ProtoMessage

func (*Location) ProtoMessage()

func (*Location) ProtoReflect

func (x *Location) ProtoReflect() protoreflect.Message

func (*Location) Reset

func (x *Location) Reset()

func (*Location) String

func (x *Location) String() string

type Origin

type Origin struct {
	Link                 string                `protobuf:"bytes,1,opt,name=Link,proto3" json:"Link,omitempty"`
	ObjectStorageLocatio *Location             `protobuf:"bytes,2,opt,name=ObjectStorageLocatio,proto3" json:"ObjectStorageLocatio,omitempty"`
	OriginType           Origin_OriginTypeEnum `protobuf:"varint,4,opt,name=OriginType,proto3,enum=Origin_OriginTypeEnum" json:"OriginType,omitempty"`
	// contains filtered or unexported fields
}

func (*Origin) Descriptor deprecated

func (*Origin) Descriptor() ([]byte, []int)

Deprecated: Use Origin.ProtoReflect.Descriptor instead.

func (x *Origin) GetLink() string

func (*Origin) GetObjectStorageLocatio

func (x *Origin) GetObjectStorageLocatio() *Location

func (*Origin) GetOriginType

func (x *Origin) GetOriginType() Origin_OriginTypeEnum

func (*Origin) ProtoMessage

func (*Origin) ProtoMessage()

func (*Origin) ProtoReflect

func (x *Origin) ProtoReflect() protoreflect.Message

func (*Origin) Reset

func (x *Origin) Reset()

func (*Origin) String

func (x *Origin) String() string

type Origin_OriginTypeEnum

type Origin_OriginTypeEnum int32
const (
	Origin_ObjectStorage Origin_OriginTypeEnum = 0
	Origin_OriginLink    Origin_OriginTypeEnum = 1
)

func (Origin_OriginTypeEnum) Descriptor

func (Origin_OriginTypeEnum) Enum

func (Origin_OriginTypeEnum) EnumDescriptor deprecated

func (Origin_OriginTypeEnum) EnumDescriptor() ([]byte, []int)

Deprecated: Use Origin_OriginTypeEnum.Descriptor instead.

func (Origin_OriginTypeEnum) Number

func (Origin_OriginTypeEnum) String

func (x Origin_OriginTypeEnum) String() string

func (Origin_OriginTypeEnum) Type

type Resource

type Resource int32
const (
	Resource_Project                    Resource = 0
	Resource_Dataset                    Resource = 1
	Resource_DatasetVersion             Resource = 2
	Resource_DatasetObject              Resource = 3
	Resource_DatasetObjectGroupResource Resource = 4
)

func (Resource) Descriptor

func (Resource) Descriptor() protoreflect.EnumDescriptor

func (Resource) Enum

func (x Resource) Enum() *Resource

func (Resource) EnumDescriptor deprecated

func (Resource) EnumDescriptor() ([]byte, []int)

Deprecated: Use Resource.Descriptor instead.

func (Resource) Number

func (x Resource) Number() protoreflect.EnumNumber

func (Resource) String

func (x Resource) String() string

func (Resource) Type

type Right int32
const (
	Right_Read  Right = 0
	Right_Write Right = 1
)

func (Right) Descriptor

func (Right) Descriptor() protoreflect.EnumDescriptor

func (Right) Enum

func (x Right) Enum() *Right

func (Right) EnumDescriptor deprecated

func (Right) EnumDescriptor() ([]byte, []int)

Deprecated: Use Right.Descriptor instead.

func (Right) Number

func (x Right) Number() protoreflect.EnumNumber

func (Right) String

func (x Right) String() string

func (Right) Type

func (Right) Type() protoreflect.EnumType

type Stage

type Stage int32
const (
	Stage_Stable Stage = 0
	Stage_Beta   Stage = 1
	Stage_Alpha  Stage = 2
)

func (Stage) Descriptor

func (Stage) Descriptor() protoreflect.EnumDescriptor

func (Stage) Enum

func (x Stage) Enum() *Stage

func (Stage) EnumDescriptor deprecated

func (Stage) EnumDescriptor() ([]byte, []int)

Deprecated: Use Stage.Descriptor instead.

func (Stage) Number

func (x Stage) Number() protoreflect.EnumNumber

func (Stage) String

func (x Stage) String() string

func (Stage) Type

func (Stage) Type() protoreflect.EnumType

type User

type User struct {
	UserID   string   `protobuf:"bytes,1,opt,name=UserID,proto3" json:"UserID,omitempty"`
	Rights   []Right  `protobuf:"varint,2,rep,packed,name=Rights,proto3,enum=Right" json:"Rights,omitempty"`
	Resource Resource `protobuf:"varint,3,opt,name=Resource,proto3,enum=Resource" json:"Resource,omitempty"`
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

func (*User) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetResource

func (x *User) GetResource() Resource

func (*User) GetRights

func (x *User) GetRights() []Right

func (*User) GetUserID

func (x *User) GetUserID() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

func (x *User) ProtoReflect() protoreflect.Message

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

type Version

type Version struct {
	Major    int32                `protobuf:"varint,1,opt,name=Major,proto3" json:"Major,omitempty"`
	Minor    int32                `protobuf:"varint,2,opt,name=Minor,proto3" json:"Minor,omitempty"`
	Patch    int32                `protobuf:"varint,3,opt,name=Patch,proto3" json:"Patch,omitempty"`
	Revision int32                `protobuf:"varint,4,opt,name=Revision,proto3" json:"Revision,omitempty"`
	Stage    Version_VersionStage `protobuf:"varint,5,opt,name=Stage,proto3,enum=Version_VersionStage" json:"Stage,omitempty"`
	// contains filtered or unexported fields
}

func (*Version) Descriptor deprecated

func (*Version) Descriptor() ([]byte, []int)

Deprecated: Use Version.ProtoReflect.Descriptor instead.

func (*Version) GetMajor

func (x *Version) GetMajor() int32

func (*Version) GetMinor

func (x *Version) GetMinor() int32

func (*Version) GetPatch

func (x *Version) GetPatch() int32

func (*Version) GetRevision

func (x *Version) GetRevision() int32

func (*Version) GetStage

func (x *Version) GetStage() Version_VersionStage

func (*Version) ProtoMessage

func (*Version) ProtoMessage()

func (*Version) ProtoReflect

func (x *Version) ProtoReflect() protoreflect.Message

func (*Version) Reset

func (x *Version) Reset()

func (*Version) String

func (x *Version) String() string

type Version_VersionStage

type Version_VersionStage int32
const (
	Version_Stable           Version_VersionStage = 0
	Version_ReleaseCandidate Version_VersionStage = 1
	Version_Beta             Version_VersionStage = 2
	Version_Alpha            Version_VersionStage = 3
)

func (Version_VersionStage) Descriptor

func (Version_VersionStage) Enum

func (Version_VersionStage) EnumDescriptor deprecated

func (Version_VersionStage) EnumDescriptor() ([]byte, []int)

Deprecated: Use Version_VersionStage.Descriptor instead.

func (Version_VersionStage) Number

func (Version_VersionStage) String

func (x Version_VersionStage) String() string

func (Version_VersionStage) Type

Jump to

Keyboard shortcuts

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