Documentation ¶
Index ¶
- type Child
- func (*Child) Descriptor() ([]byte, []int)
- func (m *Child) GetSha1() []byte
- func (m *Child) GetSuffix() string
- func (*Child) ProtoMessage()
- func (m *Child) Reset()
- func (m *Child) String() string
- func (m *Child) XXX_DiscardUnknown()
- func (m *Child) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Child) XXX_Merge(src proto.Message)
- func (m *Child) XXX_Size() int
- func (m *Child) XXX_Unmarshal(b []byte) error
- type RefSpace
- func (*RefSpace) Descriptor() ([]byte, []int)
- func (m *RefSpace) GetChildren() []*Child
- func (m *RefSpace) GetPrefix() string
- func (*RefSpace) ProtoMessage()
- func (m *RefSpace) Reset()
- func (m *RefSpace) String() string
- func (m *RefSpace) XXX_DiscardUnknown()
- func (m *RefSpace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RefSpace) XXX_Merge(src proto.Message)
- func (m *RefSpace) XXX_Size() int
- func (m *RefSpace) XXX_Unmarshal(b []byte) error
- type Reference
- type Repository
- type RepositoryState
- func (*RepositoryState) Descriptor() ([]byte, []int)
- func (m *RepositoryState) GetSpaces() []*RefSpace
- func (*RepositoryState) ProtoMessage()
- func (m *RepositoryState) Reset()
- func (m *RepositoryState) String() string
- func (m *RepositoryState) XXX_DiscardUnknown()
- func (m *RepositoryState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RepositoryState) XXX_Merge(src proto.Message)
- func (m *RepositoryState) XXX_Size() int
- func (m *RepositoryState) XXX_Unmarshal(b []byte) error
- type TaskManager
- func (m TaskManager) AbortTask(c context.Context, ctl task.Controller) error
- func (m TaskManager) HandleNotification(c context.Context, ctl task.Controller, msg *pubsub.PubsubMessage) error
- func (m TaskManager) HandleTimer(c context.Context, ctl task.Controller, name string, payload []byte) error
- func (m TaskManager) LaunchTask(c context.Context, ctl task.Controller) error
- func (m TaskManager) Name() string
- func (m TaskManager) ProtoMessageType() proto.Message
- func (m TaskManager) Traits() task.Traits
- func (m TaskManager) ValidateProtoMessage(c *validation.Context, msg proto.Message)
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) ProtoMessage ¶
func (*Child) ProtoMessage()
func (*Child) XXX_DiscardUnknown ¶
func (m *Child) XXX_DiscardUnknown()
func (*Child) XXX_Marshal ¶
func (*Child) XXX_Unmarshal ¶
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) GetChildren ¶
func (*RefSpace) ProtoMessage ¶
func (*RefSpace) ProtoMessage()
func (*RefSpace) XXX_DiscardUnknown ¶
func (m *RefSpace) XXX_DiscardUnknown()
func (*RefSpace) XXX_Marshal ¶
func (*RefSpace) XXX_Unmarshal ¶
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) 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.