helper

package
v0.0.0-...-8c4078a Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteFileWithDirectory

func WriteFileWithDirectory(path string, data []byte, perm os.FileMode) error

func WriteToml

func WriteToml(dest string, input interface{}) error

Types

type AuthProvider

type AuthProvider interface {
	GetRepositoryURL(reponame string) string
	AuthMethod() transport.AuthMethod
}

func NewAuthProvider

func NewAuthProvider(pemFile, password string) AuthProvider

type AuthProviderHTTPS

type AuthProviderHTTPS struct {
}

func (*AuthProviderHTTPS) AuthMethod

func (p *AuthProviderHTTPS) AuthMethod() transport.AuthMethod

func (*AuthProviderHTTPS) GetRepositoryURL

func (p *AuthProviderHTTPS) GetRepositoryURL(reponame string) string

type AuthProviderWithSSH

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

func (*AuthProviderWithSSH) AuthMethod

func (p *AuthProviderWithSSH) AuthMethod() transport.AuthMethod

func (*AuthProviderWithSSH) GetRepositoryURL

func (p *AuthProviderWithSSH) GetRepositoryURL(reponame string) string

type MockAuthProvider

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

Mock of AuthProvider interface

func NewMockAuthProvider

func NewMockAuthProvider(ctrl *gomock.Controller) *MockAuthProvider

func (*MockAuthProvider) AuthMethod

func (_m *MockAuthProvider) AuthMethod() transport.AuthMethod

func (*MockAuthProvider) EXPECT

func (_m *MockAuthProvider) EXPECT() *_MockAuthProviderRecorder

func (*MockAuthProvider) GetRepositoryURL

func (_m *MockAuthProvider) GetRepositoryURL(reponame string) string

Jump to

Keyboard shortcuts

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