gitcontext

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitBuildContext

type GitBuildContext struct {
	// context contains build context
	context.GitBuildContext
}

GitBuildContext defines a build context from a git repository

func NewGitBuildContext

func NewGitBuildContext() *GitBuildContext

NewGitBuildContext creates a new git build context

func (*GitBuildContext) WithAuth

func (c *GitBuildContext) WithAuth(auth gitauth.GitAuther)

WithAuth sets the authentication

func (*GitBuildContext) WithPath

func (c *GitBuildContext) WithPath(path string)

WithPath sets the path inside the repository where is located the context

func (*GitBuildContext) WithReference

func (c *GitBuildContext) WithReference(reference string)

WithReference sets the reference

func (*GitBuildContext) WithRepository

func (c *GitBuildContext) WithRepository(repository string)

WithRepository sets the repository

type MockGitBuildContext

type MockGitBuildContext struct {
	mock.Mock
}

MockGitBuildContext defines a build context from a git repository

func NewMockGitBuildContext

func NewMockGitBuildContext() *MockGitBuildContext

NewMockGitBuildContext creates a new git build context

func (*MockGitBuildContext) WithAuth

func (c *MockGitBuildContext) WithAuth(auth gitauth.GitAuther)

WithAuth sets the authentication

func (*MockGitBuildContext) WithPath

func (c *MockGitBuildContext) WithPath(path string)

WithPath sets the path inside the repository where is located the context

func (*MockGitBuildContext) WithReference

func (c *MockGitBuildContext) WithReference(reference string)

WithReference sets the reference

func (*MockGitBuildContext) WithRepository

func (c *MockGitBuildContext) WithRepository(repository string)

WithRepository sets the repository

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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