render

package
v0.11.4 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageRender

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

ImageRender contains the information to render an image from template

func NewImageRender

func NewImageRender(n Nower) *ImageRender

NewImageRender returns a new instance of the ImageRender

func (*ImageRender) Render

func (r *ImageRender) Render(name, version string, i *image.Image) (*image.Image, error)

Render renders template image into incomming object

type MockImageRender

type MockImageRender struct {
	mock.Mock
}

MockImageRender is a mock implementation of the ImageRender interface

func NewMockImageRender

func NewMockImageRender() *MockImageRender

NewMockImageRender creates a new mock image render

func (*MockImageRender) Render

func (m *MockImageRender) Render(name, version string, i *image.Image) (*image.Image, error)

Render is a mock implementation of the Render method

type Nower

type Nower interface {
	NowFunc() func(layout string) string
}

Nower is the interface to the timer that generates formated types

Jump to

Keyboard shortcuts

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