cli

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package cli is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cli

type Cli interface {
	Login(email, password string) error
	Commit(repoId, message string) error
	Stage(repoId string, files []*ggs.AppFile) error
	GetRepo(repoId string) (*ggs.GetRepoResponse, error)
	GetBlob(sha1 string) (*ggs.GetBlobResponse, error)
	GetAssignmentByInviteCode(inviteCode string) (*gas.Assignment, error)
	SignUp(email string, fullName string, confirmPassword string, password string) error
	JoinAssignment(id string) (*gas.JoinAssignmentResponse, error)
	UnStage(repoId string, paths []string) error
	GetCommitFiles(commitId string) (*ggs.GetCommitFilesResponse, error)
	Push(assignmentId string) (*gas.Submission, error)
	GetUserAssignments(assignmentId string) (*gas.UserAssignments, error)
}

type GitversityCli

type GitversityCli struct{}

func NewGitversityCli

func NewGitversityCli() *GitversityCli

func (*GitversityCli) Commit

func (cli *GitversityCli) Commit(repoId, message string) error

func (*GitversityCli) GetAssignmentByInviteCode

func (cli *GitversityCli) GetAssignmentByInviteCode(inviteCode string) (*gas.Assignment, error)

func (*GitversityCli) GetBlob

func (cli *GitversityCli) GetBlob(sha1 string) (*ggs.GetBlobResponse, error)

func (*GitversityCli) GetCommitFiles

func (cli *GitversityCli) GetCommitFiles(commitId string) (*ggs.GetCommitFilesResponse, error)

func (*GitversityCli) GetRepo

func (cli *GitversityCli) GetRepo(repoId string) (*ggs.GetRepoResponse, error)

func (*GitversityCli) GetUserAssignments

func (cli *GitversityCli) GetUserAssignments(assignmentId string) (*gas.UserAssignments, error)

func (*GitversityCli) JoinAssignment

func (cli *GitversityCli) JoinAssignment(id string) (*gas.JoinAssignmentResponse, error)

func (*GitversityCli) Login

func (cli *GitversityCli) Login(email, password string) error

func (*GitversityCli) Push

func (cli *GitversityCli) Push(assignmentId string) (*gas.Submission, error)

func (*GitversityCli) SignUp

func (cli *GitversityCli) SignUp(email string, fullName string, confirmPassword string, password string) error

func (*GitversityCli) Stage

func (cli *GitversityCli) Stage(repoId string, files []*ggs.AppFile) error

func (*GitversityCli) UnStage

func (cli *GitversityCli) UnStage(repoId string, paths []string) error

type MockCli

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

MockCli is a mock of Cli interface.

func NewMockCli

func NewMockCli(ctrl *gomock.Controller) *MockCli

NewMockCli creates a new mock instance.

func (*MockCli) Commit

func (m *MockCli) Commit(arg0, arg1 string) error

Commit mocks base method.

func (*MockCli) EXPECT

func (m *MockCli) EXPECT() *MockCliMockRecorder

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

func (*MockCli) GetAssignmentByInviteCode

func (m *MockCli) GetAssignmentByInviteCode(arg0 string) (*gas.Assignment, error)

GetAssignmentByInviteCode mocks base method.

func (*MockCli) GetBlob

func (m *MockCli) GetBlob(arg0 string) (*ggs.GetBlobResponse, error)

GetBlob mocks base method.

func (*MockCli) GetCommitFiles

func (m *MockCli) GetCommitFiles(arg0 string) (*ggs.GetCommitFilesResponse, error)

GetCommitFiles mocks base method.

func (*MockCli) GetRepo

func (m *MockCli) GetRepo(arg0 string) (*ggs.GetRepoResponse, error)

GetRepo mocks base method.

func (*MockCli) JoinAssignment

func (m *MockCli) JoinAssignment(arg0 string) (*gas.JoinAssignmentResponse, error)

JoinAssignment mocks base method.

func (*MockCli) Login

func (m *MockCli) Login(arg0, arg1 string) error

Login mocks base method.

func (*MockCli) SignUp

func (m *MockCli) SignUp(arg0, arg1, arg2, arg3 string) error

SignUp mocks base method.

func (*MockCli) Stage

func (m *MockCli) Stage(arg0 string, arg1 []*ggs.AppFile) error

Stage mocks base method.

func (*MockCli) UnStage

func (m *MockCli) UnStage(arg0 string, arg1 []string) error

UnStage mocks base method.

type MockCliMockRecorder

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

MockCliMockRecorder is the mock recorder for MockCli.

func (*MockCliMockRecorder) Commit

func (mr *MockCliMockRecorder) Commit(arg0, arg1 interface{}) *gomock.Call

Commit indicates an expected call of Commit.

func (*MockCliMockRecorder) GetAssignmentByInviteCode

func (mr *MockCliMockRecorder) GetAssignmentByInviteCode(arg0 interface{}) *gomock.Call

GetAssignmentByInviteCode indicates an expected call of GetAssignmentByInviteCode.

func (*MockCliMockRecorder) GetBlob

func (mr *MockCliMockRecorder) GetBlob(arg0 interface{}) *gomock.Call

GetBlob indicates an expected call of GetBlob.

func (*MockCliMockRecorder) GetCommitFiles

func (mr *MockCliMockRecorder) GetCommitFiles(arg0 interface{}) *gomock.Call

GetCommitFiles indicates an expected call of GetCommitFiles.

func (*MockCliMockRecorder) GetRepo

func (mr *MockCliMockRecorder) GetRepo(arg0 interface{}) *gomock.Call

GetRepo indicates an expected call of GetRepo.

func (*MockCliMockRecorder) JoinAssignment

func (mr *MockCliMockRecorder) JoinAssignment(arg0 interface{}) *gomock.Call

JoinAssignment indicates an expected call of JoinAssignment.

func (*MockCliMockRecorder) Login

func (mr *MockCliMockRecorder) Login(arg0, arg1 interface{}) *gomock.Call

Login indicates an expected call of Login.

func (*MockCliMockRecorder) SignUp

func (mr *MockCliMockRecorder) SignUp(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

SignUp indicates an expected call of SignUp.

func (*MockCliMockRecorder) Stage

func (mr *MockCliMockRecorder) Stage(arg0, arg1 interface{}) *gomock.Call

Stage indicates an expected call of Stage.

func (*MockCliMockRecorder) UnStage

func (mr *MockCliMockRecorder) UnStage(arg0, arg1 interface{}) *gomock.Call

UnStage indicates an expected call of UnStage.

Jump to

Keyboard shortcuts

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