generator

package
Version: v0.0.0-...-75e4ba9 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package generator is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockService

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

MockService is a mock of Service interface

func NewMockService

func NewMockService(ctrl *gomock.Controller) *MockService

NewMockService creates a new mock instance

func (*MockService) AddEnvironmentVariableIfNotSet

func (m *MockService) AddEnvironmentVariableIfNotSet(environmentVariables map[string]interface{}, name, value string) map[string]interface{}

AddEnvironmentVariableIfNotSet mocks base method

func (*MockService) BuildSidecar

func (m *MockService) BuildSidecar(sidecar *api.SidecarParams, params api.Params) api.SidecarData

BuildSidecar mocks base method

func (*MockService) EXPECT

func (m *MockService) EXPECT() *MockServiceMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockService) GenerateTemplateData

func (m *MockService) GenerateTemplateData(params api.Params, currentReplicas int, gitSource, gitOwner, gitName, gitBranch, gitRevision, releaseID, triggeredBy string) api.TemplateData

GenerateTemplateData mocks base method

func (*MockService) IsSimpleEnvvarValue

func (m *MockService) IsSimpleEnvvarValue(i interface{}) bool

IsSimpleEnvvarValue mocks base method

func (*MockService) RenderToYAML

func (m *MockService) RenderToYAML(v, data interface{}) string

RenderToYAML mocks base method

func (*MockService) ToYAML

func (m *MockService) ToYAML(v interface{}) string

ToYAML mocks base method

type MockServiceMockRecorder

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

MockServiceMockRecorder is the mock recorder for MockService

func (*MockServiceMockRecorder) AddEnvironmentVariableIfNotSet

func (mr *MockServiceMockRecorder) AddEnvironmentVariableIfNotSet(environmentVariables, name, value interface{}) *gomock.Call

AddEnvironmentVariableIfNotSet indicates an expected call of AddEnvironmentVariableIfNotSet

func (*MockServiceMockRecorder) BuildSidecar

func (mr *MockServiceMockRecorder) BuildSidecar(sidecar, params interface{}) *gomock.Call

BuildSidecar indicates an expected call of BuildSidecar

func (*MockServiceMockRecorder) GenerateTemplateData

func (mr *MockServiceMockRecorder) GenerateTemplateData(params, currentReplicas, gitSource, gitOwner, gitName, gitBranch, gitRevision, releaseID, triggeredBy interface{}) *gomock.Call

GenerateTemplateData indicates an expected call of GenerateTemplateData

func (*MockServiceMockRecorder) IsSimpleEnvvarValue

func (mr *MockServiceMockRecorder) IsSimpleEnvvarValue(i interface{}) *gomock.Call

IsSimpleEnvvarValue indicates an expected call of IsSimpleEnvvarValue

func (*MockServiceMockRecorder) RenderToYAML

func (mr *MockServiceMockRecorder) RenderToYAML(v, data interface{}) *gomock.Call

RenderToYAML indicates an expected call of RenderToYAML

func (*MockServiceMockRecorder) ToYAML

func (mr *MockServiceMockRecorder) ToYAML(v interface{}) *gomock.Call

ToYAML indicates an expected call of ToYAML

type Service

type Service interface {
	GenerateTemplateData(params api.Params, currentReplicas int, gitSource, gitOwner, gitName, gitBranch, gitRevision, releaseID, triggeredBy string) api.TemplateData
	BuildSidecar(sidecar *api.SidecarParams, params api.Params) api.SidecarData
	AddEnvironmentVariableIfNotSet(environmentVariables map[string]interface{}, name, value string) map[string]interface{}
	IsSimpleEnvvarValue(i interface{}) bool
	ToYAML(v interface{}) string
	RenderToYAML(v interface{}, data interface{}) string
}

func NewService

func NewService(ctx context.Context) (Service, error)

NewService returns a new extension.Service

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL