luci: go.chromium.org/luci/scheduler/appengine/task/gitiles Index | Files

package gitiles

import "go.chromium.org/luci/scheduler/appengine/task/gitiles"

Index

Package Files

gen.go gitiles.go messsages.pb.go state.go

type Child Uses

type Child struct {
    Suffix               string   `protobuf:"bytes,1,opt,name=suffix" 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 Uses

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

func (*Child) GetSha1 Uses

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

func (*Child) GetSuffix Uses

func (m *Child) GetSuffix() string

func (*Child) ProtoMessage Uses

func (*Child) ProtoMessage()

func (*Child) Reset Uses

func (m *Child) Reset()

func (*Child) String Uses

func (m *Child) String() string

func (*Child) XXX_DiscardUnknown Uses

func (m *Child) XXX_DiscardUnknown()

func (*Child) XXX_Marshal Uses

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

func (*Child) XXX_Merge Uses

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

func (*Child) XXX_Size Uses

func (m *Child) XXX_Size() int

func (*Child) XXX_Unmarshal Uses

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

type RefSpace Uses

type RefSpace struct {
    Prefix               string   `protobuf:"bytes,1,opt,name=prefix" json:"prefix,omitempty"`
    Children             []*Child `protobuf:"bytes,2,rep,name=children" 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 Uses

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

func (*RefSpace) GetChildren Uses

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

func (*RefSpace) GetPrefix Uses

func (m *RefSpace) GetPrefix() string

func (*RefSpace) ProtoMessage Uses

func (*RefSpace) ProtoMessage()

func (*RefSpace) Reset Uses

func (m *RefSpace) Reset()

func (*RefSpace) String Uses

func (m *RefSpace) String() string

func (*RefSpace) XXX_DiscardUnknown Uses

func (m *RefSpace) XXX_DiscardUnknown()

func (*RefSpace) XXX_Marshal Uses

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

func (*RefSpace) XXX_Merge Uses

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

func (*RefSpace) XXX_Size Uses

func (m *RefSpace) XXX_Size() int

func (*RefSpace) XXX_Unmarshal Uses

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

type Reference Uses

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 Uses

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 Uses

type RepositoryState struct {
    Spaces               []*RefSpace `protobuf:"bytes,1,rep,name=spaces" 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 Uses

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

func (*RepositoryState) GetSpaces Uses

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

func (*RepositoryState) ProtoMessage Uses

func (*RepositoryState) ProtoMessage()

func (*RepositoryState) Reset Uses

func (m *RepositoryState) Reset()

func (*RepositoryState) String Uses

func (m *RepositoryState) String() string

func (*RepositoryState) XXX_DiscardUnknown Uses

func (m *RepositoryState) XXX_DiscardUnknown()

func (*RepositoryState) XXX_Marshal Uses

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

func (*RepositoryState) XXX_Merge Uses

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

func (*RepositoryState) XXX_Size Uses

func (m *RepositoryState) XXX_Size() int

func (*RepositoryState) XXX_Unmarshal Uses

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

type TaskManager Uses

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

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

func (TaskManager) AbortTask Uses

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

AbortTask is part of Manager interface.

func (TaskManager) HandleNotification Uses

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

HandleNotification is part of Manager interface.

func (TaskManager) HandleTimer Uses

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

HandleTimer is part of Manager interface.

func (TaskManager) LaunchTask Uses

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

LaunchTask is part of Manager interface.

func (TaskManager) Name Uses

func (m TaskManager) Name() string

Name is part of Manager interface.

func (TaskManager) ProtoMessageType Uses

func (m TaskManager) ProtoMessageType() proto.Message

ProtoMessageType is part of Manager interface.

func (TaskManager) Traits Uses

func (m TaskManager) Traits() task.Traits

Traits is part of Manager interface.

func (TaskManager) ValidateProtoMessage Uses

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

ValidateProtoMessage is part of Manager interface.

Package gitiles imports 33 packages (graph) and is imported by 2 packages. Updated 2018-08-20. Refresh now. Tools for package owners.