Documentation ¶
Index ¶
- type Client
- type CreateReleaseArgs
- type CreateReleaseExpectation
- type CreateReleaseReturns
- type DeleteRefArgs
- type DeleteRefExpectation
- type DeleteRefReturns
- type DeleteReleaseArgs
- type DeleteReleaseExpectation
- type DeleteReleaseReturns
- type GetReleaseByTagArgs
- type GetReleaseByTagExpectation
- type GetReleaseByTagReturns
- type ListReleasesArgs
- type ListReleasesExpectation
- type ListReleasesReturns
- type MockRepositoryInterface
- func (_m *MockRepositoryInterface) ApplyCreateReleaseExpectation(e CreateReleaseExpectation)
- func (_m *MockRepositoryInterface) ApplyCreateReleaseExpectations(expectations []CreateReleaseExpectation)
- func (_m *MockRepositoryInterface) ApplyDeleteRefExpectation(e DeleteRefExpectation)
- func (_m *MockRepositoryInterface) ApplyDeleteRefExpectations(expectations []DeleteRefExpectation)
- func (_m *MockRepositoryInterface) ApplyDeleteReleaseExpectation(e DeleteReleaseExpectation)
- func (_m *MockRepositoryInterface) ApplyDeleteReleaseExpectations(expectations []DeleteReleaseExpectation)
- func (_m *MockRepositoryInterface) ApplyGetReleaseByTagExpectation(e GetReleaseByTagExpectation)
- func (_m *MockRepositoryInterface) ApplyGetReleaseByTagExpectations(expectations []GetReleaseByTagExpectation)
- func (_m *MockRepositoryInterface) ApplyListReleasesExpectation(e ListReleasesExpectation)
- func (_m *MockRepositoryInterface) ApplyListReleasesExpectations(expectations []ListReleasesExpectation)
- func (_m *MockRepositoryInterface) ApplyUploadReleaseAssetExpectation(e UploadReleaseAssetExpectation)
- func (_m *MockRepositoryInterface) ApplyUploadReleaseAssetExpectations(expectations []UploadReleaseAssetExpectation)
- func (_m *MockRepositoryInterface) CreateRelease(ctx context.Context, release *v28github.RepositoryRelease) (*v28github.RepositoryRelease, *v28github.Response, error)
- func (_m *MockRepositoryInterface) DeleteRef(ctx context.Context, ref string) (*v28github.Response, error)
- func (_m *MockRepositoryInterface) DeleteRelease(ctx context.Context, id int64) (*v28github.Response, error)
- func (_m *MockRepositoryInterface) GetReleaseByTag(ctx context.Context, tag string) (*v28github.RepositoryRelease, *v28github.Response, error)
- func (_m *MockRepositoryInterface) ListReleases(ctx context.Context, opt *v28github.ListOptions) ([]*v28github.RepositoryRelease, *v28github.Response, error)
- func (_m *MockRepositoryInterface) UploadReleaseAsset(ctx context.Context, id int64, opt *v28github.UploadOptions, file *os.File) (*v28github.ReleaseAsset, *v28github.Response, error)
- type MockVCSClientInterface
- func (_m *MockVCSClientInterface) ApplyUploadReleaseAssetsExpectation(e UploadReleaseAssetsExpectation)
- func (_m *MockVCSClientInterface) ApplyUploadReleaseAssetsExpectations(expectations []UploadReleaseAssetsExpectation)
- func (_m *MockVCSClientInterface) UploadReleaseAssets(ctx context.Context, filePaths []string) error
- type Repository
- func (r Repository) CreateRelease(ctx context.Context, release *github.RepositoryRelease) (*github.RepositoryRelease, *github.Response, error)
- func (r Repository) DeleteRef(ctx context.Context, ref string) (*github.Response, error)
- func (r Repository) DeleteRelease(ctx context.Context, id int64) (*github.Response, error)
- func (r Repository) GetReleaseByTag(ctx context.Context, tag string) (*github.RepositoryRelease, *github.Response, error)
- func (r Repository) ListReleases(ctx context.Context, opt *github.ListOptions) ([]*github.RepositoryRelease, *github.Response, error)
- func (r Repository) UploadReleaseAsset(ctx context.Context, id int64, opt *github.UploadOptions, file *os.File) (*github.ReleaseAsset, *github.Response, error)
- type RepositoryInterface
- type UploadReleaseAssetArgs
- type UploadReleaseAssetExpectation
- type UploadReleaseAssetReturns
- type UploadReleaseAssetsArgs
- type UploadReleaseAssetsExpectation
- type UploadReleaseAssetsReturns
- type VCSClientInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Clock clock.Clock Repository RepositoryInterface }
type CreateReleaseArgs ¶
type CreateReleaseExpectation ¶
type CreateReleaseExpectation struct { Args CreateReleaseArgs Returns CreateReleaseReturns }
type CreateReleaseReturns ¶
type CreateReleaseReturns struct { Result *v28github.RepositoryRelease Response *v28github.Response Err error }
type DeleteRefArgs ¶
type DeleteRefExpectation ¶
type DeleteRefExpectation struct { Args DeleteRefArgs Returns DeleteRefReturns }
type DeleteRefReturns ¶
type DeleteReleaseArgs ¶
type DeleteReleaseExpectation ¶
type DeleteReleaseExpectation struct { Args DeleteReleaseArgs Returns DeleteReleaseReturns }
type DeleteReleaseReturns ¶
type GetReleaseByTagArgs ¶
type GetReleaseByTagExpectation ¶
type GetReleaseByTagExpectation struct { Args GetReleaseByTagArgs Returns GetReleaseByTagReturns }
type GetReleaseByTagReturns ¶
type GetReleaseByTagReturns struct { Release *v28github.RepositoryRelease Response *v28github.Response Err error }
type ListReleasesArgs ¶
type ListReleasesExpectation ¶
type ListReleasesExpectation struct { Args ListReleasesArgs Returns ListReleasesReturns }
type ListReleasesReturns ¶
type ListReleasesReturns struct { Releases []*v28github.RepositoryRelease Response *v28github.Response Err error }
type MockRepositoryInterface ¶
MockRepositoryInterface is an autogenerated mock type for the RepositoryInterface type
func (*MockRepositoryInterface) ApplyCreateReleaseExpectation ¶
func (_m *MockRepositoryInterface) ApplyCreateReleaseExpectation(e CreateReleaseExpectation)
func (*MockRepositoryInterface) ApplyCreateReleaseExpectations ¶
func (_m *MockRepositoryInterface) ApplyCreateReleaseExpectations(expectations []CreateReleaseExpectation)
func (*MockRepositoryInterface) ApplyDeleteRefExpectation ¶
func (_m *MockRepositoryInterface) ApplyDeleteRefExpectation(e DeleteRefExpectation)
func (*MockRepositoryInterface) ApplyDeleteRefExpectations ¶
func (_m *MockRepositoryInterface) ApplyDeleteRefExpectations(expectations []DeleteRefExpectation)
func (*MockRepositoryInterface) ApplyDeleteReleaseExpectation ¶
func (_m *MockRepositoryInterface) ApplyDeleteReleaseExpectation(e DeleteReleaseExpectation)
func (*MockRepositoryInterface) ApplyDeleteReleaseExpectations ¶
func (_m *MockRepositoryInterface) ApplyDeleteReleaseExpectations(expectations []DeleteReleaseExpectation)
func (*MockRepositoryInterface) ApplyGetReleaseByTagExpectation ¶
func (_m *MockRepositoryInterface) ApplyGetReleaseByTagExpectation(e GetReleaseByTagExpectation)
func (*MockRepositoryInterface) ApplyGetReleaseByTagExpectations ¶
func (_m *MockRepositoryInterface) ApplyGetReleaseByTagExpectations(expectations []GetReleaseByTagExpectation)
func (*MockRepositoryInterface) ApplyListReleasesExpectation ¶
func (_m *MockRepositoryInterface) ApplyListReleasesExpectation(e ListReleasesExpectation)
func (*MockRepositoryInterface) ApplyListReleasesExpectations ¶
func (_m *MockRepositoryInterface) ApplyListReleasesExpectations(expectations []ListReleasesExpectation)
func (*MockRepositoryInterface) ApplyUploadReleaseAssetExpectation ¶
func (_m *MockRepositoryInterface) ApplyUploadReleaseAssetExpectation(e UploadReleaseAssetExpectation)
func (*MockRepositoryInterface) ApplyUploadReleaseAssetExpectations ¶
func (_m *MockRepositoryInterface) ApplyUploadReleaseAssetExpectations(expectations []UploadReleaseAssetExpectation)
func (*MockRepositoryInterface) CreateRelease ¶
func (_m *MockRepositoryInterface) CreateRelease(ctx context.Context, release *v28github.RepositoryRelease) (*v28github.RepositoryRelease, *v28github.Response, error)
CreateRelease provides a mock function with given fields: ctx, release
func (*MockRepositoryInterface) DeleteRef ¶
func (_m *MockRepositoryInterface) DeleteRef(ctx context.Context, ref string) (*v28github.Response, error)
DeleteRef provides a mock function with given fields: ctx, ref
func (*MockRepositoryInterface) DeleteRelease ¶
func (_m *MockRepositoryInterface) DeleteRelease(ctx context.Context, id int64) (*v28github.Response, error)
DeleteRelease provides a mock function with given fields: ctx, id
func (*MockRepositoryInterface) GetReleaseByTag ¶
func (_m *MockRepositoryInterface) GetReleaseByTag(ctx context.Context, tag string) (*v28github.RepositoryRelease, *v28github.Response, error)
GetReleaseByTag provides a mock function with given fields: ctx, tag
func (*MockRepositoryInterface) ListReleases ¶
func (_m *MockRepositoryInterface) ListReleases(ctx context.Context, opt *v28github.ListOptions) ([]*v28github.RepositoryRelease, *v28github.Response, error)
ListReleases provides a mock function with given fields: ctx, opt
func (*MockRepositoryInterface) UploadReleaseAsset ¶
func (_m *MockRepositoryInterface) UploadReleaseAsset(ctx context.Context, id int64, opt *v28github.UploadOptions, file *os.File) (*v28github.ReleaseAsset, *v28github.Response, error)
UploadReleaseAsset provides a mock function with given fields: ctx, id, opt, file
type MockVCSClientInterface ¶
MockVCSClientInterface is an autogenerated mock type for the VCSClientInterface type
func (*MockVCSClientInterface) ApplyUploadReleaseAssetsExpectation ¶
func (_m *MockVCSClientInterface) ApplyUploadReleaseAssetsExpectation(e UploadReleaseAssetsExpectation)
func (*MockVCSClientInterface) ApplyUploadReleaseAssetsExpectations ¶
func (_m *MockVCSClientInterface) ApplyUploadReleaseAssetsExpectations(expectations []UploadReleaseAssetsExpectation)
func (*MockVCSClientInterface) UploadReleaseAssets ¶
func (_m *MockVCSClientInterface) UploadReleaseAssets(ctx context.Context, filePaths []string) error
UploadReleaseAssets provides a mock function with given fields: ctx, filePaths
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func (Repository) CreateRelease ¶
func (r Repository) CreateRelease(ctx context.Context, release *github.RepositoryRelease) (*github.RepositoryRelease, *github.Response, error)
func (Repository) DeleteRelease ¶
func (Repository) GetReleaseByTag ¶
func (r Repository) GetReleaseByTag(ctx context.Context, tag string) (*github.RepositoryRelease, *github.Response, error)
func (Repository) ListReleases ¶
func (r Repository) ListReleases(ctx context.Context, opt *github.ListOptions) ([]*github.RepositoryRelease, *github.Response, error)
func (Repository) UploadReleaseAsset ¶
func (r Repository) UploadReleaseAsset(ctx context.Context, id int64, opt *github.UploadOptions, file *os.File) (*github.ReleaseAsset, *github.Response, error)
type RepositoryInterface ¶
type RepositoryInterface interface { ListReleases(ctx context.Context, opt *github.ListOptions) (releases []*github.RepositoryRelease, response *github.Response, err error) GetReleaseByTag(ctx context.Context, tag string) (release *github.RepositoryRelease, response *github.Response, err error) CreateRelease(ctx context.Context, release *github.RepositoryRelease) (result *github.RepositoryRelease, response *github.Response, err error) UploadReleaseAsset(ctx context.Context, id int64, opt *github.UploadOptions, file *os.File) (asset *github.ReleaseAsset, response *github.Response, err error) DeleteRelease(ctx context.Context, id int64) (res *github.Response, err error) DeleteRef(ctx context.Context, ref string) (res *github.Response, err error) }
type UploadReleaseAssetArgs ¶
type UploadReleaseAssetExpectation ¶
type UploadReleaseAssetExpectation struct { Args UploadReleaseAssetArgs Returns UploadReleaseAssetReturns }
type UploadReleaseAssetReturns ¶
type UploadReleaseAssetReturns struct { Asset *v28github.ReleaseAsset Response *v28github.Response Err error }
type UploadReleaseAssetsArgs ¶
type UploadReleaseAssetsExpectation ¶
type UploadReleaseAssetsExpectation struct { Args UploadReleaseAssetsArgs Returns UploadReleaseAssetsReturns }
type UploadReleaseAssetsReturns ¶
type UploadReleaseAssetsReturns struct {
Err error
}