- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for newTemplate (0.17 sec)
-
pkg/bootstrap/instance.go
return &instance{ Config: cfg, } } type instance struct { Config } func (i *instance) WriteTo(templateFile string, w io.Writer) error { // Get the input bootstrap template. t, err := newTemplate(templateFile) if err != nil { return err } // Create the parameters for the template. templateParams, err := i.toTemplateParams() if err != nil { return err } // Execute the template.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Mar 28 20:38:02 UTC 2024 - 3.9K bytes - Viewed (0) -
src/text/template/parse/parse.go
var end Node block.Root, end = block.itemList() if end.Type() != nodeEnd { t.errorf("unexpected %s in %s", end, context) } block.add() block.stopParse() return t.newTemplate(token.pos, token.line, name, pipe) } // Template: // // {{template stringValue pipeline}} // // Template keyword is past. The name must be something that can evaluate // to a string.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 20:57:51 UTC 2024 - 21.3K bytes - Viewed (0) -
src/text/template/parse/node.go
Name string // The name of the template (unquoted). Pipe *PipeNode // The command to evaluate as dot for the template. } func (t *Tree) newTemplate(pos Pos, line int, name string, pipe *PipeNode) *TemplateNode { return &TemplateNode{tr: t, NodeType: NodeTemplate, Pos: pos, Line: line, Name: name, Pipe: pipe} } func (t *TemplateNode) String() string {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 20:57:51 UTC 2024 - 24.2K bytes - Viewed (0) -
pkg/kubelet/kuberuntime/kuberuntime_manager_test.go
sandbox := makeFakePodSandbox(t, m, sandboxTemplate{ pod: pod, createdAt: fakeCreatedAt, state: runtimeapi.PodSandboxState_SANDBOX_READY, }) var containers []*apitest.FakeContainer newTemplate := func(c *v1.Container) containerTemplate { return containerTemplate{ pod: pod, container: c, createdAt: fakeCreatedAt, state: runtimeapi.ContainerState_CONTAINER_RUNNING, } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 14 16:09:17 UTC 2024 - 96K bytes - Viewed (0)