Help us shape the future of Go! Take the 2026 Go Developer Survey

adminpb

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2026 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Origin_name = map[int32]string{
		0: "ORIGIN_UNSPECIFIED",
		1: "ORIGIN_CONFIG",
		2: "ORIGIN_API",
	}
	Origin_value = map[string]int32{
		"ORIGIN_UNSPECIFIED": 0,
		"ORIGIN_CONFIG":      1,
		"ORIGIN_API":         2,
	}
)

Enum value maps for Origin.

View Source
var (
	Access_name = map[int32]string{
		0: "ACCESS_UNSPECIFIED",
		1: "ACCESS_READ",
		2: "ACCESS_WRITE",
	}
	Access_value = map[string]int32{
		"ACCESS_UNSPECIFIED": 0,
		"ACCESS_READ":        1,
		"ACCESS_WRITE":       2,
	}
)

Enum value maps for Access.

View Source
var (
	VolumeKind_name = map[int32]string{
		0: "VOLUME_KIND_UNSPECIFIED",
		1: "VOLUME_KIND_ZFS",
		2: "VOLUME_KIND_BTRFS",
		3: "VOLUME_KIND_XFS",
		4: "VOLUME_KIND_EXT4",
	}
	VolumeKind_value = map[string]int32{
		"VOLUME_KIND_UNSPECIFIED": 0,
		"VOLUME_KIND_ZFS":         1,
		"VOLUME_KIND_BTRFS":       2,
		"VOLUME_KIND_XFS":         3,
		"VOLUME_KIND_EXT4":        4,
	}
)

Enum value maps for VolumeKind.

View Source
var File_fileshare_admin_v1_admin_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Access

type Access int32
const (
	Access_ACCESS_UNSPECIFIED Access = 0
	Access_ACCESS_READ        Access = 1
	Access_ACCESS_WRITE       Access = 2
)

func (Access) Descriptor

func (Access) Descriptor() protoreflect.EnumDescriptor

func (Access) Enum

func (x Access) Enum() *Access

func (Access) EnumDescriptor deprecated

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

Deprecated: Use Access.Descriptor instead.

func (Access) Number

func (x Access) Number() protoreflect.EnumNumber

func (Access) String

func (x Access) String() string

func (Access) Type

func (Access) Type() protoreflect.EnumType

type Applied

type Applied struct {

	// The generation now being served; see ServerInfo.generation.
	Generation uint64 `protobuf:"varint,1,opt,name=generation,proto3" json:"generation,omitempty"`
	// How many connections the previous generation had open, and closed.
	ConnectionsClosed uint64 `protobuf:"varint,2,opt,name=connections_closed,json=connectionsClosed,proto3" json:"connections_closed,omitempty"`
	// contains filtered or unexported fields
}

Applied is what serving a change did.

func (*Applied) Descriptor deprecated

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

Deprecated: Use Applied.ProtoReflect.Descriptor instead.

func (*Applied) GetConnectionsClosed

func (x *Applied) GetConnectionsClosed() uint64

func (*Applied) GetGeneration

func (x *Applied) GetGeneration() uint64

func (*Applied) ProtoMessage

func (*Applied) ProtoMessage()

func (*Applied) ProtoReflect

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

func (*Applied) Reset

func (x *Applied) Reset()

func (*Applied) String

func (x *Applied) String() string

type CreateShareRequest

type CreateShareRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Each must lie under one of the admin block's source_roots: an image or a
	// directory as given, a volume at the path the provisioner answers with.
	//
	// Types that are valid to be assigned to Source:
	//
	//	*CreateShareRequest_Image
	//	*CreateShareRequest_Directory
	//	*CreateShareRequest_Volume
	Source   isCreateShareRequest_Source `protobuf_oneof:"source"`
	ReadOnly bool                        `protobuf:"varint,4,opt,name=read_only,json=readOnly,proto3" json:"read_only,omitempty"`
	// For an image only: the same fields as a share block.
	Filesystem     string   `protobuf:"bytes,5,opt,name=filesystem,proto3" json:"filesystem,omitempty"`
	Partition      *int32   `protobuf:"varint,6,opt,name=partition,proto3,oneof" json:"partition,omitempty"`
	PartitionLabel string   `protobuf:"bytes,7,opt,name=partition_label,json=partitionLabel,proto3" json:"partition_label,omitempty"`
	PartitionUuid  string   `protobuf:"bytes,8,opt,name=partition_uuid,json=partitionUuid,proto3" json:"partition_uuid,omitempty"`
	Protocols      []string `protobuf:"bytes,9,rep,name=protocols,proto3" json:"protocols,omitempty"`
	Grants         []*Grant `protobuf:"bytes,10,rep,name=grants,proto3" json:"grants,omitempty"`
	// Create it disabled: defined, checked, and not served until EnableShare.
	Disabled bool `protobuf:"varint,11,opt,name=disabled,proto3" json:"disabled,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateShareRequest) Descriptor deprecated

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

Deprecated: Use CreateShareRequest.ProtoReflect.Descriptor instead.

func (*CreateShareRequest) GetDirectory

func (x *CreateShareRequest) GetDirectory() string

func (*CreateShareRequest) GetDisabled

func (x *CreateShareRequest) GetDisabled() bool

func (*CreateShareRequest) GetFilesystem

func (x *CreateShareRequest) GetFilesystem() string

func (*CreateShareRequest) GetGrants

func (x *CreateShareRequest) GetGrants() []*Grant

func (*CreateShareRequest) GetImage

func (x *CreateShareRequest) GetImage() string

func (*CreateShareRequest) GetName

func (x *CreateShareRequest) GetName() string

func (*CreateShareRequest) GetPartition

func (x *CreateShareRequest) GetPartition() int32

func (*CreateShareRequest) GetPartitionLabel

func (x *CreateShareRequest) GetPartitionLabel() string

func (*CreateShareRequest) GetPartitionUuid

func (x *CreateShareRequest) GetPartitionUuid() string

func (*CreateShareRequest) GetProtocols

func (x *CreateShareRequest) GetProtocols() []string

func (*CreateShareRequest) GetReadOnly

func (x *CreateShareRequest) GetReadOnly() bool

func (*CreateShareRequest) GetSource

func (x *CreateShareRequest) GetSource() isCreateShareRequest_Source

func (*CreateShareRequest) GetVolume

func (x *CreateShareRequest) GetVolume() *VolumeRef

func (*CreateShareRequest) ProtoMessage

func (*CreateShareRequest) ProtoMessage()

func (*CreateShareRequest) ProtoReflect

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

func (*CreateShareRequest) Reset

func (x *CreateShareRequest) Reset()

func (*CreateShareRequest) String

func (x *CreateShareRequest) String() string

type CreateShareRequest_Directory

type CreateShareRequest_Directory struct {
	Directory string `protobuf:"bytes,3,opt,name=directory,proto3,oneof"`
}

type CreateShareRequest_Image

type CreateShareRequest_Image struct {
	Image string `protobuf:"bytes,2,opt,name=image,proto3,oneof"`
}

type CreateShareRequest_Volume

type CreateShareRequest_Volume struct {
	// A volume, served as a directory once these hold: its path is absolute,
	// under source_roots, a directory, on the filesystem its kind says
	// (statfs), and -- ZFS -- a mount point; btrfs, a subvolume's root;
	// XFS and ext4, under a project id that its new files inherit. Refused
	// while this server runs as root or holds CAP_SYS_RESOURCE, which ext4
	// lets write past a project quota.
	Volume *VolumeRef `protobuf:"bytes,12,opt,name=volume,proto3,oneof"`
}

type CreateShareResponse

type CreateShareResponse struct {
	Share   *Share   `protobuf:"bytes,1,opt,name=share,proto3" json:"share,omitempty"`
	Applied *Applied `protobuf:"bytes,2,opt,name=applied,proto3" json:"applied,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateShareResponse) Descriptor deprecated

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

Deprecated: Use CreateShareResponse.ProtoReflect.Descriptor instead.

func (*CreateShareResponse) GetApplied

func (x *CreateShareResponse) GetApplied() *Applied

func (*CreateShareResponse) GetShare

func (x *CreateShareResponse) GetShare() *Share

func (*CreateShareResponse) ProtoMessage

func (*CreateShareResponse) ProtoMessage()

func (*CreateShareResponse) ProtoReflect

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

func (*CreateShareResponse) Reset

func (x *CreateShareResponse) Reset()

func (*CreateShareResponse) String

func (x *CreateShareResponse) String() string

type CreateVolumeRequest

type CreateVolumeRequest struct {
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// ^[a-z0-9][a-z0-9_-]{0,62}$
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// 0 is refused: an unbounded volume is a configuration mistake.
	QuotaBytes uint64 `protobuf:"varint,3,opt,name=quota_bytes,json=quotaBytes,proto3" json:"quota_bytes,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateVolumeRequest) Descriptor deprecated

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

Deprecated: Use CreateVolumeRequest.ProtoReflect.Descriptor instead.

func (*CreateVolumeRequest) GetName

func (x *CreateVolumeRequest) GetName() string

func (*CreateVolumeRequest) GetParent

func (x *CreateVolumeRequest) GetParent() string

func (*CreateVolumeRequest) GetQuotaBytes

func (x *CreateVolumeRequest) GetQuotaBytes() uint64

func (*CreateVolumeRequest) ProtoMessage

func (*CreateVolumeRequest) ProtoMessage()

func (*CreateVolumeRequest) ProtoReflect

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

func (*CreateVolumeRequest) Reset

func (x *CreateVolumeRequest) Reset()

func (*CreateVolumeRequest) String

func (x *CreateVolumeRequest) String() string

type CreateVolumeResponse

type CreateVolumeResponse struct {
	Volume *Volume `protobuf:"bytes,1,opt,name=volume,proto3" json:"volume,omitempty"`
	// False when it already existed with this quota.
	Created bool `protobuf:"varint,2,opt,name=created,proto3" json:"created,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateVolumeResponse) Descriptor deprecated

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

Deprecated: Use CreateVolumeResponse.ProtoReflect.Descriptor instead.

func (*CreateVolumeResponse) GetCreated

func (x *CreateVolumeResponse) GetCreated() bool

func (*CreateVolumeResponse) GetVolume

func (x *CreateVolumeResponse) GetVolume() *Volume

func (*CreateVolumeResponse) ProtoMessage

func (*CreateVolumeResponse) ProtoMessage()

func (*CreateVolumeResponse) ProtoReflect

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

func (*CreateVolumeResponse) Reset

func (x *CreateVolumeResponse) Reset()

func (*CreateVolumeResponse) String

func (x *CreateVolumeResponse) String() string

type DeleteShareRequest

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

func (*DeleteShareRequest) Descriptor deprecated

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

Deprecated: Use DeleteShareRequest.ProtoReflect.Descriptor instead.

func (*DeleteShareRequest) GetName

func (x *DeleteShareRequest) GetName() string

func (*DeleteShareRequest) ProtoMessage

func (*DeleteShareRequest) ProtoMessage()

func (*DeleteShareRequest) ProtoReflect

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

func (*DeleteShareRequest) Reset

func (x *DeleteShareRequest) Reset()

func (*DeleteShareRequest) String

func (x *DeleteShareRequest) String() string

type DeleteShareResponse

type DeleteShareResponse struct {
	Applied *Applied `protobuf:"bytes,1,opt,name=applied,proto3" json:"applied,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteShareResponse) Descriptor deprecated

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

Deprecated: Use DeleteShareResponse.ProtoReflect.Descriptor instead.

func (*DeleteShareResponse) GetApplied

func (x *DeleteShareResponse) GetApplied() *Applied

func (*DeleteShareResponse) ProtoMessage

func (*DeleteShareResponse) ProtoMessage()

func (*DeleteShareResponse) ProtoReflect

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

func (*DeleteShareResponse) Reset

func (x *DeleteShareResponse) Reset()

func (*DeleteShareResponse) String

func (x *DeleteShareResponse) String() string

type DeleteVolumeRequest

type DeleteVolumeRequest struct {
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	Name   string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Destroy its data and its snapshots too; without it a volume holding
	// either is FAILED_PRECONDITION.
	DestroyData bool `protobuf:"varint,3,opt,name=destroy_data,json=destroyData,proto3" json:"destroy_data,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteVolumeRequest) Descriptor deprecated

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

Deprecated: Use DeleteVolumeRequest.ProtoReflect.Descriptor instead.

func (*DeleteVolumeRequest) GetDestroyData

func (x *DeleteVolumeRequest) GetDestroyData() bool

func (*DeleteVolumeRequest) GetName

func (x *DeleteVolumeRequest) GetName() string

func (*DeleteVolumeRequest) GetParent

func (x *DeleteVolumeRequest) GetParent() string

func (*DeleteVolumeRequest) ProtoMessage

func (*DeleteVolumeRequest) ProtoMessage()

func (*DeleteVolumeRequest) ProtoReflect

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

func (*DeleteVolumeRequest) Reset

func (x *DeleteVolumeRequest) Reset()

func (*DeleteVolumeRequest) String

func (x *DeleteVolumeRequest) String() string

type DeleteVolumeResponse

type DeleteVolumeResponse struct {

	// False when there was nothing to delete.
	Deleted bool `protobuf:"varint,1,opt,name=deleted,proto3" json:"deleted,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteVolumeResponse) Descriptor deprecated

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

Deprecated: Use DeleteVolumeResponse.ProtoReflect.Descriptor instead.

func (*DeleteVolumeResponse) GetDeleted

func (x *DeleteVolumeResponse) GetDeleted() bool

func (*DeleteVolumeResponse) ProtoMessage

func (*DeleteVolumeResponse) ProtoMessage()

func (*DeleteVolumeResponse) ProtoReflect

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

func (*DeleteVolumeResponse) Reset

func (x *DeleteVolumeResponse) Reset()

func (*DeleteVolumeResponse) String

func (x *DeleteVolumeResponse) String() string

type DisableShareRequest

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

func (*DisableShareRequest) Descriptor deprecated

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

Deprecated: Use DisableShareRequest.ProtoReflect.Descriptor instead.

func (*DisableShareRequest) GetName

func (x *DisableShareRequest) GetName() string

func (*DisableShareRequest) ProtoMessage

func (*DisableShareRequest) ProtoMessage()

func (*DisableShareRequest) ProtoReflect

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

func (*DisableShareRequest) Reset

func (x *DisableShareRequest) Reset()

func (*DisableShareRequest) String

func (x *DisableShareRequest) String() string

type DisableShareResponse

type DisableShareResponse struct {
	Share   *Share   `protobuf:"bytes,1,opt,name=share,proto3" json:"share,omitempty"`
	Applied *Applied `protobuf:"bytes,2,opt,name=applied,proto3" json:"applied,omitempty"`
	// contains filtered or unexported fields
}

func (*DisableShareResponse) Descriptor deprecated

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

Deprecated: Use DisableShareResponse.ProtoReflect.Descriptor instead.

func (*DisableShareResponse) GetApplied

func (x *DisableShareResponse) GetApplied() *Applied

func (*DisableShareResponse) GetShare

func (x *DisableShareResponse) GetShare() *Share

func (*DisableShareResponse) ProtoMessage

func (*DisableShareResponse) ProtoMessage()

func (*DisableShareResponse) ProtoReflect

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

func (*DisableShareResponse) Reset

func (x *DisableShareResponse) Reset()

func (*DisableShareResponse) String

func (x *DisableShareResponse) String() string

type EnableShareRequest

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

func (*EnableShareRequest) Descriptor deprecated

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

Deprecated: Use EnableShareRequest.ProtoReflect.Descriptor instead.

func (*EnableShareRequest) GetName

func (x *EnableShareRequest) GetName() string

func (*EnableShareRequest) ProtoMessage

func (*EnableShareRequest) ProtoMessage()

func (*EnableShareRequest) ProtoReflect

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

func (*EnableShareRequest) Reset

func (x *EnableShareRequest) Reset()

func (*EnableShareRequest) String

func (x *EnableShareRequest) String() string

type EnableShareResponse

type EnableShareResponse struct {
	Share   *Share   `protobuf:"bytes,1,opt,name=share,proto3" json:"share,omitempty"`
	Applied *Applied `protobuf:"bytes,2,opt,name=applied,proto3" json:"applied,omitempty"`
	// contains filtered or unexported fields
}

func (*EnableShareResponse) Descriptor deprecated

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

Deprecated: Use EnableShareResponse.ProtoReflect.Descriptor instead.

func (*EnableShareResponse) GetApplied

func (x *EnableShareResponse) GetApplied() *Applied

func (*EnableShareResponse) GetShare

func (x *EnableShareResponse) GetShare() *Share

func (*EnableShareResponse) ProtoMessage

func (*EnableShareResponse) ProtoMessage()

func (*EnableShareResponse) ProtoReflect

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

func (*EnableShareResponse) Reset

func (x *EnableShareResponse) Reset()

func (*EnableShareResponse) String

func (x *EnableShareResponse) String() string

type GetServerInfoRequest

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

func (*GetServerInfoRequest) Descriptor deprecated

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

Deprecated: Use GetServerInfoRequest.ProtoReflect.Descriptor instead.

func (*GetServerInfoRequest) ProtoMessage

func (*GetServerInfoRequest) ProtoMessage()

func (*GetServerInfoRequest) ProtoReflect

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

func (*GetServerInfoRequest) Reset

func (x *GetServerInfoRequest) Reset()

func (*GetServerInfoRequest) String

func (x *GetServerInfoRequest) String() string

type GetServerInfoResponse

type GetServerInfoResponse struct {
	Info *ServerInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
	// contains filtered or unexported fields
}

func (*GetServerInfoResponse) Descriptor deprecated

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

Deprecated: Use GetServerInfoResponse.ProtoReflect.Descriptor instead.

func (*GetServerInfoResponse) GetInfo

func (x *GetServerInfoResponse) GetInfo() *ServerInfo

func (*GetServerInfoResponse) ProtoMessage

func (*GetServerInfoResponse) ProtoMessage()

func (*GetServerInfoResponse) ProtoReflect

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

func (*GetServerInfoResponse) Reset

func (x *GetServerInfoResponse) Reset()

func (*GetServerInfoResponse) String

func (x *GetServerInfoResponse) String() string

type GetShareRequest

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

func (*GetShareRequest) Descriptor deprecated

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

Deprecated: Use GetShareRequest.ProtoReflect.Descriptor instead.

func (*GetShareRequest) GetName

func (x *GetShareRequest) GetName() string

func (*GetShareRequest) ProtoMessage

func (*GetShareRequest) ProtoMessage()

func (*GetShareRequest) ProtoReflect

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

func (*GetShareRequest) Reset

func (x *GetShareRequest) Reset()

func (*GetShareRequest) String

func (x *GetShareRequest) String() string

type GetShareResponse

type GetShareResponse struct {
	Share *Share `protobuf:"bytes,1,opt,name=share,proto3" json:"share,omitempty"`
	// contains filtered or unexported fields
}

func (*GetShareResponse) Descriptor deprecated

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

Deprecated: Use GetShareResponse.ProtoReflect.Descriptor instead.

func (*GetShareResponse) GetShare

func (x *GetShareResponse) GetShare() *Share

func (*GetShareResponse) ProtoMessage

func (*GetShareResponse) ProtoMessage()

func (*GetShareResponse) ProtoReflect

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

func (*GetShareResponse) Reset

func (x *GetShareResponse) Reset()

func (*GetShareResponse) String

func (x *GetShareResponse) String() string

type GetVolumeRequest

type GetVolumeRequest struct {
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	Name   string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*GetVolumeRequest) Descriptor deprecated

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

Deprecated: Use GetVolumeRequest.ProtoReflect.Descriptor instead.

func (*GetVolumeRequest) GetName

func (x *GetVolumeRequest) GetName() string

func (*GetVolumeRequest) GetParent

func (x *GetVolumeRequest) GetParent() string

func (*GetVolumeRequest) ProtoMessage

func (*GetVolumeRequest) ProtoMessage()

func (*GetVolumeRequest) ProtoReflect

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

func (*GetVolumeRequest) Reset

func (x *GetVolumeRequest) Reset()

func (*GetVolumeRequest) String

func (x *GetVolumeRequest) String() string

type GetVolumeResponse

type GetVolumeResponse struct {
	Volume *Volume `protobuf:"bytes,1,opt,name=volume,proto3" json:"volume,omitempty"`
	// contains filtered or unexported fields
}

func (*GetVolumeResponse) Descriptor deprecated

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

Deprecated: Use GetVolumeResponse.ProtoReflect.Descriptor instead.

func (*GetVolumeResponse) GetVolume

func (x *GetVolumeResponse) GetVolume() *Volume

func (*GetVolumeResponse) ProtoMessage

func (*GetVolumeResponse) ProtoMessage()

func (*GetVolumeResponse) ProtoReflect

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

func (*GetVolumeResponse) Reset

func (x *GetVolumeResponse) Reset()

func (*GetVolumeResponse) String

func (x *GetVolumeResponse) String() string

type Grant

type Grant struct {
	Subject *Subject `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"`
	Access  Access   `protobuf:"varint,2,opt,name=access,proto3,enum=fileshare.admin.v1.Access" json:"access,omitempty"`
	// contains filtered or unexported fields
}

func (*Grant) Descriptor deprecated

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

Deprecated: Use Grant.ProtoReflect.Descriptor instead.

func (*Grant) GetAccess

func (x *Grant) GetAccess() Access

func (*Grant) GetSubject

func (x *Grant) GetSubject() *Subject

func (*Grant) ProtoMessage

func (*Grant) ProtoMessage()

func (*Grant) ProtoReflect

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

func (*Grant) Reset

func (x *Grant) Reset()

func (*Grant) String

func (x *Grant) String() string

type GrantRequest

type GrantRequest struct {
	Share string `protobuf:"bytes,1,opt,name=share,proto3" json:"share,omitempty"`
	Grant *Grant `protobuf:"bytes,2,opt,name=grant,proto3" json:"grant,omitempty"`
	// contains filtered or unexported fields
}

func (*GrantRequest) Descriptor deprecated

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

Deprecated: Use GrantRequest.ProtoReflect.Descriptor instead.

func (*GrantRequest) GetGrant

func (x *GrantRequest) GetGrant() *Grant

func (*GrantRequest) GetShare

func (x *GrantRequest) GetShare() string

func (*GrantRequest) ProtoMessage

func (*GrantRequest) ProtoMessage()

func (*GrantRequest) ProtoReflect

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

func (*GrantRequest) Reset

func (x *GrantRequest) Reset()

func (*GrantRequest) String

func (x *GrantRequest) String() string

type GrantResponse

type GrantResponse struct {
	Share   *Share   `protobuf:"bytes,1,opt,name=share,proto3" json:"share,omitempty"`
	Applied *Applied `protobuf:"bytes,2,opt,name=applied,proto3" json:"applied,omitempty"`
	// contains filtered or unexported fields
}

func (*GrantResponse) Descriptor deprecated

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

Deprecated: Use GrantResponse.ProtoReflect.Descriptor instead.

func (*GrantResponse) GetApplied

func (x *GrantResponse) GetApplied() *Applied

func (*GrantResponse) GetShare

func (x *GrantResponse) GetShare() *Share

func (*GrantResponse) ProtoMessage

func (*GrantResponse) ProtoMessage()

func (*GrantResponse) ProtoReflect

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

func (*GrantResponse) Reset

func (x *GrantResponse) Reset()

func (*GrantResponse) String

func (x *GrantResponse) String() string

type Group

type Group struct {
	Name    string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Members []string `protobuf:"bytes,2,rep,name=members,proto3" json:"members,omitempty"`
	// contains filtered or unexported fields
}

func (*Group) Descriptor deprecated

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

Deprecated: Use Group.ProtoReflect.Descriptor instead.

func (*Group) GetMembers

func (x *Group) GetMembers() []string

func (*Group) GetName

func (x *Group) GetName() string

func (*Group) ProtoMessage

func (*Group) ProtoMessage()

func (*Group) ProtoReflect

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

func (*Group) Reset

func (x *Group) Reset()

func (*Group) String

func (x *Group) String() string

type ListGroupsRequest

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

func (*ListGroupsRequest) Descriptor deprecated

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

Deprecated: Use ListGroupsRequest.ProtoReflect.Descriptor instead.

func (*ListGroupsRequest) ProtoMessage

func (*ListGroupsRequest) ProtoMessage()

func (*ListGroupsRequest) ProtoReflect

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

func (*ListGroupsRequest) Reset

func (x *ListGroupsRequest) Reset()

func (*ListGroupsRequest) String

func (x *ListGroupsRequest) String() string

type ListGroupsResponse

type ListGroupsResponse struct {
	Groups []*Group `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty"`
	// contains filtered or unexported fields
}

func (*ListGroupsResponse) Descriptor deprecated

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

Deprecated: Use ListGroupsResponse.ProtoReflect.Descriptor instead.

func (*ListGroupsResponse) GetGroups

func (x *ListGroupsResponse) GetGroups() []*Group

func (*ListGroupsResponse) ProtoMessage

func (*ListGroupsResponse) ProtoMessage()

func (*ListGroupsResponse) ProtoReflect

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

func (*ListGroupsResponse) Reset

func (x *ListGroupsResponse) Reset()

func (*ListGroupsResponse) String

func (x *ListGroupsResponse) String() string

type ListParentsRequest

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

func (*ListParentsRequest) Descriptor deprecated

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

Deprecated: Use ListParentsRequest.ProtoReflect.Descriptor instead.

func (*ListParentsRequest) ProtoMessage

func (*ListParentsRequest) ProtoMessage()

func (*ListParentsRequest) ProtoReflect

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

func (*ListParentsRequest) Reset

func (x *ListParentsRequest) Reset()

func (*ListParentsRequest) String

func (x *ListParentsRequest) String() string

type ListParentsResponse

type ListParentsResponse struct {
	Parents []*Parent `protobuf:"bytes,1,rep,name=parents,proto3" json:"parents,omitempty"`
	// The largest quota one volume may have.
	MaxVolumeBytes uint64 `protobuf:"varint,2,opt,name=max_volume_bytes,json=maxVolumeBytes,proto3" json:"max_volume_bytes,omitempty"`
	// contains filtered or unexported fields
}

func (*ListParentsResponse) Descriptor deprecated

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

Deprecated: Use ListParentsResponse.ProtoReflect.Descriptor instead.

func (*ListParentsResponse) GetMaxVolumeBytes

func (x *ListParentsResponse) GetMaxVolumeBytes() uint64

func (*ListParentsResponse) GetParents

func (x *ListParentsResponse) GetParents() []*Parent

func (*ListParentsResponse) ProtoMessage

func (*ListParentsResponse) ProtoMessage()

func (*ListParentsResponse) ProtoReflect

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

func (*ListParentsResponse) Reset

func (x *ListParentsResponse) Reset()

func (*ListParentsResponse) String

func (x *ListParentsResponse) String() string

type ListSharesRequest

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

func (*ListSharesRequest) Descriptor deprecated

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

Deprecated: Use ListSharesRequest.ProtoReflect.Descriptor instead.

func (*ListSharesRequest) ProtoMessage

func (*ListSharesRequest) ProtoMessage()

func (*ListSharesRequest) ProtoReflect

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

func (*ListSharesRequest) Reset

func (x *ListSharesRequest) Reset()

func (*ListSharesRequest) String

func (x *ListSharesRequest) String() string

type ListSharesResponse

type ListSharesResponse struct {
	Shares []*Share `protobuf:"bytes,1,rep,name=shares,proto3" json:"shares,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSharesResponse) Descriptor deprecated

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

Deprecated: Use ListSharesResponse.ProtoReflect.Descriptor instead.

func (*ListSharesResponse) GetShares

func (x *ListSharesResponse) GetShares() []*Share

func (*ListSharesResponse) ProtoMessage

func (*ListSharesResponse) ProtoMessage()

func (*ListSharesResponse) ProtoReflect

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

func (*ListSharesResponse) Reset

func (x *ListSharesResponse) Reset()

func (*ListSharesResponse) String

func (x *ListSharesResponse) String() string

type ListUsersRequest

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

func (*ListUsersRequest) Descriptor deprecated

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

Deprecated: Use ListUsersRequest.ProtoReflect.Descriptor instead.

func (*ListUsersRequest) ProtoMessage

func (*ListUsersRequest) ProtoMessage()

func (*ListUsersRequest) ProtoReflect

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

func (*ListUsersRequest) Reset

func (x *ListUsersRequest) Reset()

func (*ListUsersRequest) String

func (x *ListUsersRequest) String() string

type ListUsersResponse

type ListUsersResponse struct {
	Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUsersResponse) Descriptor deprecated

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

Deprecated: Use ListUsersResponse.ProtoReflect.Descriptor instead.

func (*ListUsersResponse) GetUsers

func (x *ListUsersResponse) GetUsers() []*User

func (*ListUsersResponse) ProtoMessage

func (*ListUsersResponse) ProtoMessage()

func (*ListUsersResponse) ProtoReflect

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

func (*ListUsersResponse) Reset

func (x *ListUsersResponse) Reset()

func (*ListUsersResponse) String

func (x *ListUsersResponse) String() string

type ListVolumesRequest

type ListVolumesRequest struct {

	// Only this parent's; empty for every parent.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// contains filtered or unexported fields
}

func (*ListVolumesRequest) Descriptor deprecated

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

Deprecated: Use ListVolumesRequest.ProtoReflect.Descriptor instead.

func (*ListVolumesRequest) GetParent

func (x *ListVolumesRequest) GetParent() string

func (*ListVolumesRequest) ProtoMessage

func (*ListVolumesRequest) ProtoMessage()

func (*ListVolumesRequest) ProtoReflect

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

func (*ListVolumesRequest) Reset

func (x *ListVolumesRequest) Reset()

func (*ListVolumesRequest) String

func (x *ListVolumesRequest) String() string

type ListVolumesResponse

type ListVolumesResponse struct {
	Volumes []*Volume `protobuf:"bytes,1,rep,name=volumes,proto3" json:"volumes,omitempty"`
	// contains filtered or unexported fields
}

func (*ListVolumesResponse) Descriptor deprecated

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

Deprecated: Use ListVolumesResponse.ProtoReflect.Descriptor instead.

func (*ListVolumesResponse) GetVolumes

func (x *ListVolumesResponse) GetVolumes() []*Volume

func (*ListVolumesResponse) ProtoMessage

func (*ListVolumesResponse) ProtoMessage()

func (*ListVolumesResponse) ProtoReflect

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

func (*ListVolumesResponse) Reset

func (x *ListVolumesResponse) Reset()

func (*ListVolumesResponse) String

func (x *ListVolumesResponse) String() string

type Listener

type Listener struct {
	Protocol string `protobuf:"bytes,1,opt,name=protocol,proto3" json:"protocol,omitempty"`
	Address  string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

func (*Listener) Descriptor deprecated

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

Deprecated: Use Listener.ProtoReflect.Descriptor instead.

func (*Listener) GetAddress

func (x *Listener) GetAddress() string

func (*Listener) GetProtocol

func (x *Listener) GetProtocol() string

func (*Listener) ProtoMessage

func (*Listener) ProtoMessage()

func (*Listener) ProtoReflect

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

func (*Listener) Reset

func (x *Listener) Reset()

func (*Listener) String

func (x *Listener) String() string

type Origin

type Origin int32
const (
	Origin_ORIGIN_UNSPECIFIED Origin = 0
	// Written in a configuration file; read-only through this API.
	Origin_ORIGIN_CONFIG Origin = 1
	// Created through this API, and kept in its state file.
	Origin_ORIGIN_API Origin = 2
)

func (Origin) Descriptor

func (Origin) Descriptor() protoreflect.EnumDescriptor

func (Origin) Enum

func (x Origin) Enum() *Origin

func (Origin) EnumDescriptor deprecated

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

Deprecated: Use Origin.Descriptor instead.

func (Origin) Number

func (x Origin) Number() protoreflect.EnumNumber

func (Origin) String

func (x Origin) String() string

func (Origin) Type

func (Origin) Type() protoreflect.EnumType

type Parent

type Parent struct {
	Id   string     `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Kind VolumeKind `protobuf:"varint,2,opt,name=kind,proto3,enum=fileshare.admin.v1.VolumeKind" json:"kind,omitempty"`
	// Where its volumes are: <root>/<name>.
	Root string `protobuf:"bytes,3,opt,name=root,proto3" json:"root,omitempty"`
	// Free and total space of what the volumes come from; 0 when unknown.
	FreeBytes  uint64 `protobuf:"varint,4,opt,name=free_bytes,json=freeBytes,proto3" json:"free_bytes,omitempty"`
	TotalBytes uint64 `protobuf:"varint,5,opt,name=total_bytes,json=totalBytes,proto3" json:"total_bytes,omitempty"`
	// Whether SnapshotVolume works on its volumes.
	Snapshots bool `protobuf:"varint,6,opt,name=snapshots,proto3" json:"snapshots,omitempty"`
	// contains filtered or unexported fields
}

func (*Parent) Descriptor deprecated

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

Deprecated: Use Parent.ProtoReflect.Descriptor instead.

func (*Parent) GetFreeBytes

func (x *Parent) GetFreeBytes() uint64

func (*Parent) GetId

func (x *Parent) GetId() string

func (*Parent) GetKind

func (x *Parent) GetKind() VolumeKind

func (*Parent) GetRoot

func (x *Parent) GetRoot() string

func (*Parent) GetSnapshots

func (x *Parent) GetSnapshots() bool

func (*Parent) GetTotalBytes

func (x *Parent) GetTotalBytes() uint64

func (*Parent) ProtoMessage

func (*Parent) ProtoMessage()

func (*Parent) ProtoReflect

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

func (*Parent) Reset

func (x *Parent) Reset()

func (*Parent) String

func (x *Parent) String() string

type ProtocolList

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

func (*ProtocolList) Descriptor deprecated

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

Deprecated: Use ProtocolList.ProtoReflect.Descriptor instead.

func (*ProtocolList) GetNames

func (x *ProtocolList) GetNames() []string

func (*ProtocolList) ProtoMessage

func (*ProtocolList) ProtoMessage()

func (*ProtocolList) ProtoReflect

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

func (*ProtocolList) Reset

func (x *ProtocolList) Reset()

func (*ProtocolList) String

func (x *ProtocolList) String() string

type Refusal

type Refusal struct {
	Protocol string `protobuf:"bytes,1,opt,name=protocol,proto3" json:"protocol,omitempty"`
	Reason   string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"`
	// contains filtered or unexported fields
}

func (*Refusal) Descriptor deprecated

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

Deprecated: Use Refusal.ProtoReflect.Descriptor instead.

func (*Refusal) GetProtocol

func (x *Refusal) GetProtocol() string

func (*Refusal) GetReason

func (x *Refusal) GetReason() string

func (*Refusal) ProtoMessage

func (*Refusal) ProtoMessage()

func (*Refusal) ProtoReflect

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

func (*Refusal) Reset

func (x *Refusal) Reset()

func (*Refusal) String

func (x *Refusal) String() string

type ReloadDirectoryRequest

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

func (*ReloadDirectoryRequest) Descriptor deprecated

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

Deprecated: Use ReloadDirectoryRequest.ProtoReflect.Descriptor instead.

func (*ReloadDirectoryRequest) ProtoMessage

func (*ReloadDirectoryRequest) ProtoMessage()

func (*ReloadDirectoryRequest) ProtoReflect

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

func (*ReloadDirectoryRequest) Reset

func (x *ReloadDirectoryRequest) Reset()

func (*ReloadDirectoryRequest) String

func (x *ReloadDirectoryRequest) String() string

type ReloadDirectoryResponse

type ReloadDirectoryResponse struct {
	Added   []string `protobuf:"bytes,1,rep,name=added,proto3" json:"added,omitempty"`
	Removed []string `protobuf:"bytes,2,rep,name=removed,proto3" json:"removed,omitempty"`
	Changed []string `protobuf:"bytes,3,rep,name=changed,proto3" json:"changed,omitempty"`
	// True when a new generation was started; applied then says how many
	// connections were closed.
	NewGeneration bool     `protobuf:"varint,4,opt,name=new_generation,json=newGeneration,proto3" json:"new_generation,omitempty"`
	Applied       *Applied `protobuf:"bytes,5,opt,name=applied,proto3" json:"applied,omitempty"`
	// Things a person should know: a group that no longer exists, somebody a
	// share names who is no longer in the directory.
	Notes []string `protobuf:"bytes,6,rep,name=notes,proto3" json:"notes,omitempty"`
	// contains filtered or unexported fields
}

func (*ReloadDirectoryResponse) Descriptor deprecated

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

Deprecated: Use ReloadDirectoryResponse.ProtoReflect.Descriptor instead.

func (*ReloadDirectoryResponse) GetAdded

func (x *ReloadDirectoryResponse) GetAdded() []string

func (*ReloadDirectoryResponse) GetApplied

func (x *ReloadDirectoryResponse) GetApplied() *Applied

func (*ReloadDirectoryResponse) GetChanged

func (x *ReloadDirectoryResponse) GetChanged() []string

func (*ReloadDirectoryResponse) GetNewGeneration

func (x *ReloadDirectoryResponse) GetNewGeneration() bool

func (*ReloadDirectoryResponse) GetNotes

func (x *ReloadDirectoryResponse) GetNotes() []string

func (*ReloadDirectoryResponse) GetRemoved

func (x *ReloadDirectoryResponse) GetRemoved() []string

func (*ReloadDirectoryResponse) ProtoMessage

func (*ReloadDirectoryResponse) ProtoMessage()

func (*ReloadDirectoryResponse) ProtoReflect

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

func (*ReloadDirectoryResponse) Reset

func (x *ReloadDirectoryResponse) Reset()

func (*ReloadDirectoryResponse) String

func (x *ReloadDirectoryResponse) String() string

type ResizeVolumeRequest

type ResizeVolumeRequest struct {
	Parent     string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	Name       string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	QuotaBytes uint64 `protobuf:"varint,3,opt,name=quota_bytes,json=quotaBytes,proto3" json:"quota_bytes,omitempty"`
	// contains filtered or unexported fields
}

func (*ResizeVolumeRequest) Descriptor deprecated

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

Deprecated: Use ResizeVolumeRequest.ProtoReflect.Descriptor instead.

func (*ResizeVolumeRequest) GetName

func (x *ResizeVolumeRequest) GetName() string

func (*ResizeVolumeRequest) GetParent

func (x *ResizeVolumeRequest) GetParent() string

func (*ResizeVolumeRequest) GetQuotaBytes

func (x *ResizeVolumeRequest) GetQuotaBytes() uint64

func (*ResizeVolumeRequest) ProtoMessage

func (*ResizeVolumeRequest) ProtoMessage()

func (*ResizeVolumeRequest) ProtoReflect

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

func (*ResizeVolumeRequest) Reset

func (x *ResizeVolumeRequest) Reset()

func (*ResizeVolumeRequest) String

func (x *ResizeVolumeRequest) String() string

type ResizeVolumeResponse

type ResizeVolumeResponse struct {
	Volume *Volume `protobuf:"bytes,1,opt,name=volume,proto3" json:"volume,omitempty"`
	// contains filtered or unexported fields
}

func (*ResizeVolumeResponse) Descriptor deprecated

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

Deprecated: Use ResizeVolumeResponse.ProtoReflect.Descriptor instead.

func (*ResizeVolumeResponse) GetVolume

func (x *ResizeVolumeResponse) GetVolume() *Volume

func (*ResizeVolumeResponse) ProtoMessage

func (*ResizeVolumeResponse) ProtoMessage()

func (*ResizeVolumeResponse) ProtoReflect

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

func (*ResizeVolumeResponse) Reset

func (x *ResizeVolumeResponse) Reset()

func (*ResizeVolumeResponse) String

func (x *ResizeVolumeResponse) String() string

type RevokeRequest

type RevokeRequest struct {
	Share   string   `protobuf:"bytes,1,opt,name=share,proto3" json:"share,omitempty"`
	Subject *Subject `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"`
	// contains filtered or unexported fields
}

func (*RevokeRequest) Descriptor deprecated

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

Deprecated: Use RevokeRequest.ProtoReflect.Descriptor instead.

func (*RevokeRequest) GetShare

func (x *RevokeRequest) GetShare() string

func (*RevokeRequest) GetSubject

func (x *RevokeRequest) GetSubject() *Subject

func (*RevokeRequest) ProtoMessage

func (*RevokeRequest) ProtoMessage()

func (*RevokeRequest) ProtoReflect

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

func (*RevokeRequest) Reset

func (x *RevokeRequest) Reset()

func (*RevokeRequest) String

func (x *RevokeRequest) String() string

type RevokeResponse

type RevokeResponse struct {
	Share   *Share   `protobuf:"bytes,1,opt,name=share,proto3" json:"share,omitempty"`
	Applied *Applied `protobuf:"bytes,2,opt,name=applied,proto3" json:"applied,omitempty"`
	// contains filtered or unexported fields
}

func (*RevokeResponse) Descriptor deprecated

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

Deprecated: Use RevokeResponse.ProtoReflect.Descriptor instead.

func (*RevokeResponse) GetApplied

func (x *RevokeResponse) GetApplied() *Applied

func (*RevokeResponse) GetShare

func (x *RevokeResponse) GetShare() *Share

func (*RevokeResponse) ProtoMessage

func (*RevokeResponse) ProtoMessage()

func (*RevokeResponse) ProtoReflect

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

func (*RevokeResponse) Reset

func (x *RevokeResponse) Reset()

func (*RevokeResponse) String

func (x *RevokeResponse) String() string

type ServerInfo

type ServerInfo struct {

	// What the server calls itself to a client.
	Name    string                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Version string                 `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	Started *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=started,proto3" json:"started,omitempty"`
	// How many lists of shares have been served since the start; it goes up by
	// one with every change applied.
	Generation uint64      `protobuf:"varint,4,opt,name=generation,proto3" json:"generation,omitempty"`
	Listeners  []*Listener `protobuf:"bytes,5,rep,name=listeners,proto3" json:"listeners,omitempty"`
	// contains filtered or unexported fields
}

func (*ServerInfo) Descriptor deprecated

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

Deprecated: Use ServerInfo.ProtoReflect.Descriptor instead.

func (*ServerInfo) GetGeneration

func (x *ServerInfo) GetGeneration() uint64

func (*ServerInfo) GetListeners

func (x *ServerInfo) GetListeners() []*Listener

func (*ServerInfo) GetName

func (x *ServerInfo) GetName() string

func (*ServerInfo) GetStarted

func (x *ServerInfo) GetStarted() *timestamppb.Timestamp

func (*ServerInfo) GetVersion

func (x *ServerInfo) GetVersion() string

func (*ServerInfo) ProtoMessage

func (*ServerInfo) ProtoMessage()

func (*ServerInfo) ProtoReflect

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

func (*ServerInfo) Reset

func (x *ServerInfo) Reset()

func (*ServerInfo) String

func (x *ServerInfo) String() string

type Share

type Share struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Types that are valid to be assigned to Source:
	//
	//	*Share_Image
	//	*Share_Directory
	//	*Share_Volume
	Source isShare_Source `protobuf_oneof:"source"`
	Origin Origin         `protobuf:"varint,4,opt,name=origin,proto3,enum=fileshare.admin.v1.Origin" json:"origin,omitempty"`
	// What was asked.
	ReadOnly bool `protobuf:"varint,5,opt,name=read_only,json=readOnly,proto3" json:"read_only,omitempty"`
	// What is served: read-only as asked, or because the source cannot take a
	// write -- a device, a chosen partition, a file that would not open for
	// writing -- or because nobody was granted ACCESS_WRITE.
	EffectiveReadOnly bool `protobuf:"varint,6,opt,name=effective_read_only,json=effectiveReadOnly,proto3" json:"effective_read_only,omitempty"`
	// The filesystem found or named in an image, or "directory".
	Filesystem string `protobuf:"bytes,7,opt,name=filesystem,proto3" json:"filesystem,omitempty"`
	// Which protocols may carry it; empty means every one that can honour it.
	Protocols []string `protobuf:"bytes,8,rep,name=protocols,proto3" json:"protocols,omitempty"`
	// For a configuration share, what its allow and writers lists mean.
	Grants []*Grant `protobuf:"bytes,9,rep,name=grants,proto3" json:"grants,omitempty"`
	// Which protocols serve it now, and why the others do not.
	ServedOver []string   `protobuf:"bytes,10,rep,name=served_over,json=servedOver,proto3" json:"served_over,omitempty"`
	Refusals   []*Refusal `protobuf:"bytes,11,rep,name=refusals,proto3" json:"refusals,omitempty"`
	SizeBytes  uint64     `protobuf:"varint,12,opt,name=size_bytes,json=sizeBytes,proto3" json:"size_bytes,omitempty"`
	// False when DisableShare took it offline. A disabled share is listed with
	// what it would serve, and serves nothing.
	Enabled bool `protobuf:"varint,13,opt,name=enabled,proto3" json:"enabled,omitempty"`
	// Why a share that is not disabled is not served at all: its volume is
	// gone, or failed a check before serving. Empty when it is served.
	// EnableShare tries it again.
	Unavailable string `protobuf:"bytes,15,opt,name=unavailable,proto3" json:"unavailable,omitempty"`
	// contains filtered or unexported fields
}

func (*Share) Descriptor deprecated

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

Deprecated: Use Share.ProtoReflect.Descriptor instead.

func (*Share) GetDirectory

func (x *Share) GetDirectory() string

func (*Share) GetEffectiveReadOnly

func (x *Share) GetEffectiveReadOnly() bool

func (*Share) GetEnabled

func (x *Share) GetEnabled() bool

func (*Share) GetFilesystem

func (x *Share) GetFilesystem() string

func (*Share) GetGrants

func (x *Share) GetGrants() []*Grant

func (*Share) GetImage

func (x *Share) GetImage() string

func (*Share) GetName

func (x *Share) GetName() string

func (*Share) GetOrigin

func (x *Share) GetOrigin() Origin

func (*Share) GetProtocols

func (x *Share) GetProtocols() []string

func (*Share) GetReadOnly

func (x *Share) GetReadOnly() bool

func (*Share) GetRefusals

func (x *Share) GetRefusals() []*Refusal

func (*Share) GetServedOver

func (x *Share) GetServedOver() []string

func (*Share) GetSizeBytes

func (x *Share) GetSizeBytes() uint64

func (*Share) GetSource

func (x *Share) GetSource() isShare_Source

func (*Share) GetUnavailable

func (x *Share) GetUnavailable() string

func (*Share) GetVolume

func (x *Share) GetVolume() *VolumeRef

func (*Share) ProtoMessage

func (*Share) ProtoMessage()

func (*Share) ProtoReflect

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

func (*Share) Reset

func (x *Share) Reset()

func (*Share) String

func (x *Share) String() string

type Share_Directory

type Share_Directory struct {
	// A directory tree of the host.
	Directory string `protobuf:"bytes,3,opt,name=directory,proto3,oneof"`
}

type Share_Image

type Share_Image struct {
	// A disk image, or a device.
	Image string `protobuf:"bytes,2,opt,name=image,proto3,oneof"`
}

type Share_Volume

type Share_Volume struct {
	// A volume the provisioner made; served as a directory.
	Volume *VolumeRef `protobuf:"bytes,14,opt,name=volume,proto3,oneof"`
}

type SnapshotVolumeRequest

type SnapshotVolumeRequest struct {
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	Name   string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// In the same grammar as a volume's name.
	Snapshot string `protobuf:"bytes,3,opt,name=snapshot,proto3" json:"snapshot,omitempty"`
	// contains filtered or unexported fields
}

func (*SnapshotVolumeRequest) Descriptor deprecated

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

Deprecated: Use SnapshotVolumeRequest.ProtoReflect.Descriptor instead.

func (*SnapshotVolumeRequest) GetName

func (x *SnapshotVolumeRequest) GetName() string

func (*SnapshotVolumeRequest) GetParent

func (x *SnapshotVolumeRequest) GetParent() string

func (*SnapshotVolumeRequest) GetSnapshot

func (x *SnapshotVolumeRequest) GetSnapshot() string

func (*SnapshotVolumeRequest) ProtoMessage

func (*SnapshotVolumeRequest) ProtoMessage()

func (*SnapshotVolumeRequest) ProtoReflect

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

func (*SnapshotVolumeRequest) Reset

func (x *SnapshotVolumeRequest) Reset()

func (*SnapshotVolumeRequest) String

func (x *SnapshotVolumeRequest) String() string

type SnapshotVolumeResponse

type SnapshotVolumeResponse struct {
	Volume *Volume `protobuf:"bytes,1,opt,name=volume,proto3" json:"volume,omitempty"`
	// False when the snapshot already existed.
	Created bool `protobuf:"varint,2,opt,name=created,proto3" json:"created,omitempty"`
	// contains filtered or unexported fields
}

func (*SnapshotVolumeResponse) Descriptor deprecated

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

Deprecated: Use SnapshotVolumeResponse.ProtoReflect.Descriptor instead.

func (*SnapshotVolumeResponse) GetCreated

func (x *SnapshotVolumeResponse) GetCreated() bool

func (*SnapshotVolumeResponse) GetVolume

func (x *SnapshotVolumeResponse) GetVolume() *Volume

func (*SnapshotVolumeResponse) ProtoMessage

func (*SnapshotVolumeResponse) ProtoMessage()

func (*SnapshotVolumeResponse) ProtoReflect

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

func (*SnapshotVolumeResponse) Reset

func (x *SnapshotVolumeResponse) Reset()

func (*SnapshotVolumeResponse) String

func (x *SnapshotVolumeResponse) String() string

type Subject

type Subject struct {

	// Types that are valid to be assigned to Kind:
	//
	//	*Subject_User
	//	*Subject_Group
	//	*Subject_OidcGroup
	//	*Subject_OidcUser
	Kind isSubject_Kind `protobuf_oneof:"kind"`
	// contains filtered or unexported fields
}

A Subject is who a grant is for, in the vocabulary the configuration file uses: a person, @group, oidc:groups:<value> or oidc:user:<name>.

func (*Subject) Descriptor deprecated

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

Deprecated: Use Subject.ProtoReflect.Descriptor instead.

func (*Subject) GetGroup

func (x *Subject) GetGroup() string

func (*Subject) GetKind

func (x *Subject) GetKind() isSubject_Kind

func (*Subject) GetOidcGroup

func (x *Subject) GetOidcGroup() string

func (*Subject) GetOidcUser

func (x *Subject) GetOidcUser() string

func (*Subject) GetUser

func (x *Subject) GetUser() string

func (*Subject) ProtoMessage

func (*Subject) ProtoMessage()

func (*Subject) ProtoReflect

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

func (*Subject) Reset

func (x *Subject) Reset()

func (*Subject) String

func (x *Subject) String() string

type Subject_Group

type Subject_Group struct {
	// A group of the directory, without the @.
	Group string `protobuf:"bytes,2,opt,name=group,proto3,oneof"`
}

type Subject_OidcGroup

type Subject_OidcGroup struct {
	// A value of the identity provider's groups claim.
	OidcGroup string `protobuf:"bytes,3,opt,name=oidc_group,json=oidcGroup,proto3,oneof"`
}

type Subject_OidcUser

type Subject_OidcUser struct {
	// A name the identity provider vouches for.
	OidcUser string `protobuf:"bytes,4,opt,name=oidc_user,json=oidcUser,proto3,oneof"`
}

type Subject_User

type Subject_User struct {
	// Somebody in the directory.
	User string `protobuf:"bytes,1,opt,name=user,proto3,oneof"`
}

type UpdateShareRequest

type UpdateShareRequest struct {
	Name     string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	ReadOnly *bool  `protobuf:"varint,2,opt,name=read_only,json=readOnly,proto3,oneof" json:"read_only,omitempty"`
	// Replaces the list when present; an empty list means every protocol.
	Protocols *ProtocolList `protobuf:"bytes,3,opt,name=protocols,proto3" json:"protocols,omitempty"`
	// contains filtered or unexported fields
}

The fields of a share that can change without it becoming another share. Its source cannot: delete it and create another.

func (*UpdateShareRequest) Descriptor deprecated

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

Deprecated: Use UpdateShareRequest.ProtoReflect.Descriptor instead.

func (*UpdateShareRequest) GetName

func (x *UpdateShareRequest) GetName() string

func (*UpdateShareRequest) GetProtocols

func (x *UpdateShareRequest) GetProtocols() *ProtocolList

func (*UpdateShareRequest) GetReadOnly

func (x *UpdateShareRequest) GetReadOnly() bool

func (*UpdateShareRequest) ProtoMessage

func (*UpdateShareRequest) ProtoMessage()

func (*UpdateShareRequest) ProtoReflect

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

func (*UpdateShareRequest) Reset

func (x *UpdateShareRequest) Reset()

func (*UpdateShareRequest) String

func (x *UpdateShareRequest) String() string

type UpdateShareResponse

type UpdateShareResponse struct {
	Share   *Share   `protobuf:"bytes,1,opt,name=share,proto3" json:"share,omitempty"`
	Applied *Applied `protobuf:"bytes,2,opt,name=applied,proto3" json:"applied,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateShareResponse) Descriptor deprecated

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

Deprecated: Use UpdateShareResponse.ProtoReflect.Descriptor instead.

func (*UpdateShareResponse) GetApplied

func (x *UpdateShareResponse) GetApplied() *Applied

func (*UpdateShareResponse) GetShare

func (x *UpdateShareResponse) GetShare() *Share

func (*UpdateShareResponse) ProtoMessage

func (*UpdateShareResponse) ProtoMessage()

func (*UpdateShareResponse) ProtoReflect

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

func (*UpdateShareResponse) Reset

func (x *UpdateShareResponse) Reset()

func (*UpdateShareResponse) String

func (x *UpdateShareResponse) String() string

type User

type User struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Which source knows them.
	Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`
	// The served protocols their credentials can answer.
	CanUse []string `protobuf:"bytes,3,rep,name=can_use,json=canUse,proto3" json:"can_use,omitempty"`
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetCanUse

func (x *User) GetCanUse() []string

func (*User) GetName

func (x *User) GetName() string

func (*User) GetSource

func (x *User) GetSource() 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 Volume

type Volume struct {
	Parent string     `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	Name   string     `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Kind   VolumeKind `protobuf:"varint,3,opt,name=kind,proto3,enum=fileshare.admin.v1.VolumeKind" json:"kind,omitempty"`
	// <parent root>/<name>.
	Path       string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"`
	QuotaBytes uint64 `protobuf:"varint,5,opt,name=quota_bytes,json=quotaBytes,proto3" json:"quota_bytes,omitempty"`
	// What the filesystem charges to it, as the provisioner read it; 0 when it
	// could not.
	UsedBytes uint64                 `protobuf:"varint,6,opt,name=used_bytes,json=usedBytes,proto3" json:"used_bytes,omitempty"`
	Created   *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created,proto3" json:"created,omitempty"`
	Snapshots []string               `protobuf:"bytes,8,rep,name=snapshots,proto3" json:"snapshots,omitempty"`
	// The shares that use it: made from it, or with a directory inside it.
	Shares []string `protobuf:"bytes,9,rep,name=shares,proto3" json:"shares,omitempty"`
	// contains filtered or unexported fields
}

func (*Volume) Descriptor deprecated

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

Deprecated: Use Volume.ProtoReflect.Descriptor instead.

func (*Volume) GetCreated

func (x *Volume) GetCreated() *timestamppb.Timestamp

func (*Volume) GetKind

func (x *Volume) GetKind() VolumeKind

func (*Volume) GetName

func (x *Volume) GetName() string

func (*Volume) GetParent

func (x *Volume) GetParent() string

func (*Volume) GetPath

func (x *Volume) GetPath() string

func (*Volume) GetQuotaBytes

func (x *Volume) GetQuotaBytes() uint64

func (*Volume) GetShares

func (x *Volume) GetShares() []string

func (*Volume) GetSnapshots

func (x *Volume) GetSnapshots() []string

func (*Volume) GetUsedBytes

func (x *Volume) GetUsedBytes() uint64

func (*Volume) ProtoMessage

func (*Volume) ProtoMessage()

func (*Volume) ProtoReflect

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

func (*Volume) Reset

func (x *Volume) Reset()

func (*Volume) String

func (x *Volume) String() string

type VolumeKind

type VolumeKind int32
const (
	VolumeKind_VOLUME_KIND_UNSPECIFIED VolumeKind = 0
	VolumeKind_VOLUME_KIND_ZFS         VolumeKind = 1
	VolumeKind_VOLUME_KIND_BTRFS       VolumeKind = 2
	VolumeKind_VOLUME_KIND_XFS         VolumeKind = 3
	VolumeKind_VOLUME_KIND_EXT4        VolumeKind = 4
)

func (VolumeKind) Descriptor

func (VolumeKind) Descriptor() protoreflect.EnumDescriptor

func (VolumeKind) Enum

func (x VolumeKind) Enum() *VolumeKind

func (VolumeKind) EnumDescriptor deprecated

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

Deprecated: Use VolumeKind.Descriptor instead.

func (VolumeKind) Number

func (x VolumeKind) Number() protoreflect.EnumNumber

func (VolumeKind) String

func (x VolumeKind) String() string

func (VolumeKind) Type

type VolumeRef

type VolumeRef struct {
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	Name   string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

A VolumeRef names a volume the way the provisioner does: a parent from its configuration, and a name.

func (*VolumeRef) Descriptor deprecated

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

Deprecated: Use VolumeRef.ProtoReflect.Descriptor instead.

func (*VolumeRef) GetName

func (x *VolumeRef) GetName() string

func (*VolumeRef) GetParent

func (x *VolumeRef) GetParent() string

func (*VolumeRef) ProtoMessage

func (*VolumeRef) ProtoMessage()

func (*VolumeRef) ProtoReflect

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

func (*VolumeRef) Reset

func (x *VolumeRef) Reset()

func (*VolumeRef) String

func (x *VolumeRef) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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