Back to godoc.org

Package storagev1

v0.20.5
Latest Go to latest

The latest major version is .

Published: Jul 24, 2020 | License: Apache-2.0 | Module: github.com/bufbuild/buf

Index

Variables

var File_buf_storage_v1_storage_proto protoreflect.FileDescriptor

type File

type File struct {

	// path is the relative path of the file.
	// Path can only use '/' as the separator character, and includes no ".." components.
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// content is the content of the file.
	Content []byte `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

File is a file within a FileSet.

func (*File) Descriptor

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

Deprecated: Use File.ProtoReflect.Descriptor instead.

func (*File) GetContent

func (x *File) GetContent() []byte

func (*File) GetPath

func (x *File) GetPath() string

func (*File) ProtoMessage

func (*File) ProtoMessage()

func (*File) ProtoReflect

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

func (*File) Reset

func (x *File) Reset()

func (*File) String

func (x *File) String() string

func (*File) Validate

func (m *File) Validate() error

Validate checks the field values on File with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type FileSet

type FileSet struct {

	// files are the files that make up the set.
	//
	// Sorted by path.
	// Path must be unique.
	Files []*File `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"`
	// contains filtered or unexported fields
}

FileSet is a the set of files for a module.

func (*FileSet) Descriptor

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

Deprecated: Use FileSet.ProtoReflect.Descriptor instead.

func (*FileSet) GetFiles

func (x *FileSet) GetFiles() []*File

func (*FileSet) ProtoMessage

func (*FileSet) ProtoMessage()

func (*FileSet) ProtoReflect

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

func (*FileSet) Reset

func (x *FileSet) Reset()

func (*FileSet) String

func (x *FileSet) String() string

func (*FileSet) Validate

func (m *FileSet) Validate() error

Validate checks the field values on FileSet with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type FileSetValidationError

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

FileSetValidationError is the validation error returned by FileSet.Validate if the designated constraints aren't met.

func (FileSetValidationError) Cause

func (e FileSetValidationError) Cause() error

Cause function returns cause value.

func (FileSetValidationError) Error

func (e FileSetValidationError) Error() string

Error satisfies the builtin error interface

func (FileSetValidationError) ErrorName

func (e FileSetValidationError) ErrorName() string

ErrorName returns error name.

func (FileSetValidationError) Field

func (e FileSetValidationError) Field() string

Field function returns field value.

func (FileSetValidationError) Key

func (e FileSetValidationError) Key() bool

Key function returns key value.

func (FileSetValidationError) Reason

func (e FileSetValidationError) Reason() string

Reason function returns reason value.

type FileValidationError

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

FileValidationError is the validation error returned by File.Validate if the designated constraints aren't met.

func (FileValidationError) Cause

func (e FileValidationError) Cause() error

Cause function returns cause value.

func (FileValidationError) Error

func (e FileValidationError) Error() string

Error satisfies the builtin error interface

func (FileValidationError) ErrorName

func (e FileValidationError) ErrorName() string

ErrorName returns error name.

func (FileValidationError) Field

func (e FileValidationError) Field() string

Field function returns field value.

func (FileValidationError) Key

func (e FileValidationError) Key() bool

Key function returns key value.

func (FileValidationError) Reason

func (e FileValidationError) Reason() string

Reason function returns reason value.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier