gitiles

package
v0.0.0-...-d60a78d Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2023 License: Apache-2.0 Imports: 33 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Child

type Child struct {
	Suffix               string   `protobuf:"bytes,1,opt,name=suffix,proto3" json:"suffix,omitempty"`
	Sha1                 []byte   `protobuf:"bytes,2,opt,name=sha1,proto3" json:"sha1,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Child is last part and its sha1 tip.

func (*Child) Descriptor

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

func (*Child) GetSha1

func (m *Child) GetSha1() []byte

func (*Child) GetSuffix

func (m *Child) GetSuffix() string

func (*Child) ProtoMessage

func (*Child) ProtoMessage()

func (*Child) Reset

func (m *Child) Reset()

func (*Child) String

func (m *Child) String() string

func (*Child) XXX_DiscardUnknown

func (m *Child) XXX_DiscardUnknown()

func (*Child) XXX_Marshal

func (m *Child) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Child) XXX_Merge

func (m *Child) XXX_Merge(src proto.Message)

func (*Child) XXX_Size

func (m *Child) XXX_Size() int

func (*Child) XXX_Unmarshal

func (m *Child) XXX_Unmarshal(b []byte) error

type RefSpace

type RefSpace struct {
	Prefix               string   `protobuf:"bytes,1,opt,name=prefix,proto3" json:"prefix,omitempty"`
	Children             []*Child `protobuf:"bytes,2,rep,name=children,proto3" json:"children,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

RefSpace is a bunch of children which share the same ref namespace (prefix).

func (*RefSpace) Descriptor

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

func (*RefSpace) GetChildren

func (m *RefSpace) GetChildren() []*Child

func (*RefSpace) GetPrefix

func (m *RefSpace) GetPrefix() string

func (*RefSpace) ProtoMessage

func (*RefSpace) ProtoMessage()

func (*RefSpace) Reset

func (m *RefSpace) Reset()

func (*RefSpace) String

func (m *RefSpace) String() string

func (*RefSpace) XXX_DiscardUnknown

func (m *RefSpace) XXX_DiscardUnknown()

func (*RefSpace) XXX_Marshal

func (m *RefSpace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RefSpace) XXX_Merge

func (m *RefSpace) XXX_Merge(src proto.Message)

func (*RefSpace) XXX_Size

func (m *RefSpace) XXX_Size() int

func (*RefSpace) XXX_Unmarshal

func (m *RefSpace) XXX_Unmarshal(b []byte) error

type Reference

type Reference struct {
	// Name is the reference name.
	Name string `gae:",noindex"`

	// Revision is the ref commit.
	Revision string `gae:",noindex"`
}

Reference [DEPRECATED] is used to store the revision of a ref.

type Repository

type Repository struct {

	// ID is "<job ID>:<repository URL>".
	ID string `gae:"$id"`

	// References is the slice of all the tracked refs within repository.
	// DEPRECATED. Used only for reading data from store. Remains here to recover state
	// TODO(tandrii): remove after Nov 30 2017.
	References []Reference `gae:",noindex"`

	// CompressedState stores gzip-compressed proto-serialized list of watched
	// refs with hashes of their tips.
	CompressedState []byte `gae:",noindex"`
	// contains filtered or unexported fields
}

Repository is used to store the repository status.

type RepositoryState

type RepositoryState struct {
	Spaces               []*RefSpace `protobuf:"bytes,1,rep,name=spaces,proto3" json:"spaces,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

RepositoryState stores tips of all watched refs in a repo.

func (*RepositoryState) Descriptor

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

func (*RepositoryState) GetSpaces

func (m *RepositoryState) GetSpaces() []*RefSpace

func (*RepositoryState) ProtoMessage

func (*RepositoryState) ProtoMessage()

func (*RepositoryState) Reset

func (m *RepositoryState) Reset()

func (*RepositoryState) String

func (m *RepositoryState) String() string

func (*RepositoryState) XXX_DiscardUnknown

func (m *RepositoryState) XXX_DiscardUnknown()

func (*RepositoryState) XXX_Marshal

func (m *RepositoryState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RepositoryState) XXX_Merge

func (m *RepositoryState) XXX_Merge(src proto.Message)

func (*RepositoryState) XXX_Size

func (m *RepositoryState) XXX_Size() int

func (*RepositoryState) XXX_Unmarshal

func (m *RepositoryState) XXX_Unmarshal(b []byte) error

type TaskManager

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

TaskManager implements task.Manager interface for tasks defined with GitilesTask proto message.

func (TaskManager) AbortTask

func (m TaskManager) AbortTask(c context.Context, ctl task.Controller) error

AbortTask is part of Manager interface.

func (TaskManager) HandleNotification

func (m TaskManager) HandleNotification(c context.Context, ctl task.Controller, msg *pubsub.PubsubMessage) error

HandleNotification is part of Manager interface.

func (TaskManager) HandleTimer

func (m TaskManager) HandleTimer(c context.Context, ctl task.Controller, name string, payload []byte) error

HandleTimer is part of Manager interface.

func (TaskManager) LaunchTask

func (m TaskManager) LaunchTask(c context.Context, ctl task.Controller) error

LaunchTask is part of Manager interface.

func (TaskManager) Name

func (m TaskManager) Name() string

Name is part of Manager interface.

func (TaskManager) ProtoMessageType

func (m TaskManager) ProtoMessageType() proto.Message

ProtoMessageType is part of Manager interface.

func (TaskManager) Traits

func (m TaskManager) Traits() task.Traits

Traits is part of Manager interface.

func (TaskManager) ValidateProtoMessage

func (m TaskManager) ValidateProtoMessage(c *validation.Context, msg proto.Message)

ValidateProtoMessage is part of Manager interface.

Jump to

Keyboard shortcuts

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