Documentation ¶
Index ¶
Constants ¶
View Source
const (
ValidClientAuthToken = "valid-client-auth-token"
)
Variables ¶
View Source
var (
TestTokenSource = oauth2.StaticTokenSource(&oauth2.Token{AccessToken: validServerAuthToken})
)
Functions ¶
func TestRequestAuthorizer ¶
Types ¶
type GitRepo ¶
type GitRepo string
func NewLocalBareGitRepo ¶
func NewLocalBareGitRepo() GitRepo
func NewLocalGitRepo ¶
func NewLocalGitRepo() GitRepo
func (GitRepo) CreateRandomCommit ¶
type TestServer ¶
type TestServer struct { UpstreamGitRepo GitRepo UpstreamServerURL string ProxyServerURL string // contains filtered or unexported fields }
func NewTestServer ¶
func NewTestServer(config *TestServerConfig) *TestServer
func (*TestServer) Close ¶
func (s *TestServer) Close()
func (*TestServer) CreateRandomCommitUpstream ¶
func (s *TestServer) CreateRandomCommitUpstream() (string, error)
Click to show internal directories.
Click to hide internal directories.