registrysvc

package
v0.0.0-...-28abc36 Latest Latest
Warning

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

Go to latest
Published: May 12, 2020 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package mock_registrysvc is a generated GoMock package.

Index

Constants

View Source
const (
	ResponseVerifier = "ResponseVerifier"
)

Variables

This section is empty.

Functions

func New

func New(authToken string) *registry

Types

type MockRegistrySVC

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

MockRegistrySVC is a mock of RegistrySVC interface

func NewMockRegistrySVC

func NewMockRegistrySVC(ctrl *gomock.Controller) *MockRegistrySVC

NewMockRegistrySVC creates a new mock instance

func (*MockRegistrySVC) EXPECT

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

func (*MockRegistrySVC) GetRegistration

func (m *MockRegistrySVC) GetRegistration(jobID uint64) (*Registration, error)

GetRegistration mocks base method

type MockRegistrySVCMockRecorder

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

MockRegistrySVCMockRecorder is the mock recorder for MockRegistrySVC

func (*MockRegistrySVCMockRecorder) GetRegistration

func (mr *MockRegistrySVCMockRecorder) GetRegistration(jobID interface{}) *gomock.Call

GetRegistration indicates an expected call of GetRegistration

type Registration

type Registration struct {
	ID          uint64   `json:"id"`
	JobID       uint64   `json:"job_id"`
	APIKeyID    string   `json:"api_key_id"`
	Services    Services `json:"services"`
	RequesterID uint64   `json:"requester_id"`
}

type RegistrySVC

type RegistrySVC interface {
	GetRegistration(jobID uint64) (*Registration, error)
}

type Service

type Service struct {
	URL string `json:"url"`
}

type Services

type Services map[string]*Service

Jump to

Keyboard shortcuts

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