modulev1

package
v0.24.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_buf_module_v1_module_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Module

type Module struct {

	// files are the files that make up the set.
	//
	// Sorted by path.
	// Path must be unique.
	// Only the target files. No imports.
	//
	// Maximum total size of all content: 32MB.
	Files []*ModuleFile `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"`
	// dependencies are the dependencies.
	//
	// These must be resolved.
	Dependencies []*ModuleName `protobuf:"bytes,2,rep,name=dependencies,proto3" json:"dependencies,omitempty"`
	// contains filtered or unexported fields
}

Module is a module.

func (*Module) Descriptor deprecated

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

Deprecated: Use Module.ProtoReflect.Descriptor instead.

func (*Module) GetDependencies

func (x *Module) GetDependencies() []*ModuleName

func (*Module) GetFiles

func (x *Module) GetFiles() []*ModuleFile

func (*Module) ProtoMessage

func (*Module) ProtoMessage()

func (*Module) ProtoReflect

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

func (*Module) Reset

func (x *Module) Reset()

func (*Module) String

func (x *Module) String() string

func (*Module) Validate

func (m *Module) Validate() error

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

type ModuleFile

type ModuleFile 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
}

ModuleFile is a file within a FileSet.

func (*ModuleFile) Descriptor deprecated

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

Deprecated: Use ModuleFile.ProtoReflect.Descriptor instead.

func (*ModuleFile) GetContent

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

func (*ModuleFile) GetPath

func (x *ModuleFile) GetPath() string

func (*ModuleFile) ProtoMessage

func (*ModuleFile) ProtoMessage()

func (*ModuleFile) ProtoReflect

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

func (*ModuleFile) Reset

func (x *ModuleFile) Reset()

func (*ModuleFile) String

func (x *ModuleFile) String() string

func (*ModuleFile) Validate

func (m *ModuleFile) Validate() error

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

type ModuleFileValidationError

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

ModuleFileValidationError is the validation error returned by ModuleFile.Validate if the designated constraints aren't met.

func (ModuleFileValidationError) Cause

func (e ModuleFileValidationError) Cause() error

Cause function returns cause value.

func (ModuleFileValidationError) Error

Error satisfies the builtin error interface

func (ModuleFileValidationError) ErrorName

func (e ModuleFileValidationError) ErrorName() string

ErrorName returns error name.

func (ModuleFileValidationError) Field

Field function returns field value.

func (ModuleFileValidationError) Key

Key function returns key value.

func (ModuleFileValidationError) Reason

func (e ModuleFileValidationError) Reason() string

Reason function returns reason value.

type ModuleName

type ModuleName struct {

	// The DNS name or IP address of the server that hosts the module.
	Remote string `protobuf:"bytes,1,opt,name=remote,proto3" json:"remote,omitempty"`
	// The users username or organization name
	Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
	// The repository name
	Repository string `protobuf:"bytes,3,opt,name=repository,proto3" json:"repository,omitempty"`
	// The repository version
	// Required
	Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"`
	// The repository commit digest
	Digest string `protobuf:"bytes,5,opt,name=digest,proto3" json:"digest,omitempty"`
	// contains filtered or unexported fields
}

func (*ModuleName) Descriptor deprecated

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

Deprecated: Use ModuleName.ProtoReflect.Descriptor instead.

func (*ModuleName) GetDigest

func (x *ModuleName) GetDigest() string

func (*ModuleName) GetOwner

func (x *ModuleName) GetOwner() string

func (*ModuleName) GetRemote added in v0.23.0

func (x *ModuleName) GetRemote() string

func (*ModuleName) GetRepository

func (x *ModuleName) GetRepository() string

func (*ModuleName) GetVersion

func (x *ModuleName) GetVersion() string

func (*ModuleName) ProtoMessage

func (*ModuleName) ProtoMessage()

func (*ModuleName) ProtoReflect

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

func (*ModuleName) Reset

func (x *ModuleName) Reset()

func (*ModuleName) String

func (x *ModuleName) String() string

func (*ModuleName) Validate

func (m *ModuleName) Validate() error

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

type ModuleNameValidationError

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

ModuleNameValidationError is the validation error returned by ModuleName.Validate if the designated constraints aren't met.

func (ModuleNameValidationError) Cause

func (e ModuleNameValidationError) Cause() error

Cause function returns cause value.

func (ModuleNameValidationError) Error

Error satisfies the builtin error interface

func (ModuleNameValidationError) ErrorName

func (e ModuleNameValidationError) ErrorName() string

ErrorName returns error name.

func (ModuleNameValidationError) Field

Field function returns field value.

func (ModuleNameValidationError) Key

Key function returns key value.

func (ModuleNameValidationError) Reason

func (e ModuleNameValidationError) Reason() string

Reason function returns reason value.

type ModuleValidationError

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

ModuleValidationError is the validation error returned by Module.Validate if the designated constraints aren't met.

func (ModuleValidationError) Cause

func (e ModuleValidationError) Cause() error

Cause function returns cause value.

func (ModuleValidationError) Error

func (e ModuleValidationError) Error() string

Error satisfies the builtin error interface

func (ModuleValidationError) ErrorName

func (e ModuleValidationError) ErrorName() string

ErrorName returns error name.

func (ModuleValidationError) Field

func (e ModuleValidationError) Field() string

Field function returns field value.

func (ModuleValidationError) Key

func (e ModuleValidationError) Key() bool

Key function returns key value.

func (ModuleValidationError) Reason

func (e ModuleValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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