luci: go.chromium.org/luci/dm/api/template Index | Files

package dmTemplate

import "go.chromium.org/luci/dm/api/template"

Index

Package Files

gen.go loader.go normalize.go template.pb.go

type File Uses

type File struct {
    Template             map[string]*File_Template `protobuf:"bytes,1,rep,name=template,proto3" json:"template,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    XXX_NoUnkeyedLiteral struct{}                  `json:"-"`
    XXX_unrecognized     []byte                    `json:"-"`
    XXX_sizecache        int32                     `json:"-"`
}

File represents a file full of DM template definitions.

func LoadFile Uses

func LoadFile(c context.Context, project, ref string) (file *File, vers string, err error)

LoadFile loads a File by configSet and path.

func (*File) Descriptor Uses

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

func (*File) GetTemplate Uses

func (m *File) GetTemplate() map[string]*File_Template

func (*File) Normalize Uses

func (f *File) Normalize() error

Normalize will normalize all of the Templates in this message, returning an error if any are invalid.

func (*File) ProtoMessage Uses

func (*File) ProtoMessage()

func (*File) Render Uses

func (f *File) Render(spec *templateproto.Specifier) (*dm.Quest_Desc, error)

Render renders the specified template with the given parameters.

func (*File) Reset Uses

func (m *File) Reset()

func (*File) String Uses

func (m *File) String() string

func (*File) XXX_DiscardUnknown Uses

func (m *File) XXX_DiscardUnknown()

func (*File) XXX_Marshal Uses

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

func (*File) XXX_Merge Uses

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

func (*File) XXX_Size Uses

func (m *File) XXX_Size() int

func (*File) XXX_Unmarshal Uses

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

type File_Template Uses

type File_Template struct {
    DistributorConfigName string                       `protobuf:"bytes,1,opt,name=distributor_config_name,json=distributorConfigName,proto3" json:"distributor_config_name,omitempty"`
    Parameters            *templateproto.File_Template `protobuf:"bytes,2,opt,name=parameters,proto3" json:"parameters,omitempty"`
    DistributorParameters *templateproto.File_Template `protobuf:"bytes,3,opt,name=distributor_parameters,json=distributorParameters,proto3" json:"distributor_parameters,omitempty"`
    Meta                  *v1.Quest_Desc_Meta          `protobuf:"bytes,4,opt,name=meta,proto3" json:"meta,omitempty"`
    XXX_NoUnkeyedLiteral  struct{}                     `json:"-"`
    XXX_unrecognized      []byte                       `json:"-"`
    XXX_sizecache         int32                        `json:"-"`
}

Template defines a single template.

func (*File_Template) Descriptor Uses

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

func (*File_Template) GetDistributorConfigName Uses

func (m *File_Template) GetDistributorConfigName() string

func (*File_Template) GetDistributorParameters Uses

func (m *File_Template) GetDistributorParameters() *templateproto.File_Template

func (*File_Template) GetMeta Uses

func (m *File_Template) GetMeta() *v1.Quest_Desc_Meta

func (*File_Template) GetParameters Uses

func (m *File_Template) GetParameters() *templateproto.File_Template

func (*File_Template) Normalize Uses

func (t *File_Template) Normalize() error

Normalize will normalize this Template, returning an error if it is invalid.

func (*File_Template) ProtoMessage Uses

func (*File_Template) ProtoMessage()

func (*File_Template) Reset Uses

func (m *File_Template) Reset()

func (*File_Template) String Uses

func (m *File_Template) String() string

func (*File_Template) XXX_DiscardUnknown Uses

func (m *File_Template) XXX_DiscardUnknown()

func (*File_Template) XXX_Marshal Uses

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

func (*File_Template) XXX_Merge Uses

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

func (*File_Template) XXX_Size Uses

func (m *File_Template) XXX_Size() int

func (*File_Template) XXX_Unmarshal Uses

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

Package dmTemplate imports 9 packages (graph) and is imported by 2 packages. Updated 2018-12-14. Refresh now. Tools for package owners.