...

Source file src/edge-infra.dev/pkg/edge/api/mocks/mock_artifact_registry_client.go

Documentation: edge-infra.dev/pkg/edge/api/mocks

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: edge-infra.dev/pkg/edge/api/clients (interfaces: ArtifactRegistryClient)
     3  
     4  // Package mocks is a generated GoMock package.
     5  package mocks
     6  
     7  import (
     8  	reflect "reflect"
     9  
    10  	oci "edge-infra.dev/pkg/f8n/warehouse/oci"
    11  	gomock "github.com/golang/mock/gomock"
    12  )
    13  
    14  // MockArtifactRegistryClient is a mock of ArtifactRegistryClient interface.
    15  type MockArtifactRegistryClient struct {
    16  	ctrl     *gomock.Controller
    17  	recorder *MockArtifactRegistryClientMockRecorder
    18  }
    19  
    20  // MockArtifactRegistryClientMockRecorder is the mock recorder for MockArtifactRegistryClient.
    21  type MockArtifactRegistryClientMockRecorder struct {
    22  	mock *MockArtifactRegistryClient
    23  }
    24  
    25  // NewMockArtifactRegistryClient creates a new mock instance.
    26  func NewMockArtifactRegistryClient(ctrl *gomock.Controller) *MockArtifactRegistryClient {
    27  	mock := &MockArtifactRegistryClient{ctrl: ctrl}
    28  	mock.recorder = &MockArtifactRegistryClientMockRecorder{mock}
    29  	return mock
    30  }
    31  
    32  // EXPECT returns an object that allows the caller to indicate expected use.
    33  func (m *MockArtifactRegistryClient) EXPECT() *MockArtifactRegistryClientMockRecorder {
    34  	return m.recorder
    35  }
    36  
    37  // Get mocks base method.
    38  func (m *MockArtifactRegistryClient) Get(arg0, arg1, arg2 string) (oci.Artifact, error) {
    39  	m.ctrl.T.Helper()
    40  	ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2)
    41  	ret0, _ := ret[0].(oci.Artifact)
    42  	ret1, _ := ret[1].(error)
    43  	return ret0, ret1
    44  }
    45  
    46  // Get indicates an expected call of Get.
    47  func (mr *MockArtifactRegistryClientMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call {
    48  	mr.mock.ctrl.T.Helper()
    49  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockArtifactRegistryClient)(nil).Get), arg0, arg1, arg2)
    50  }
    51  

View as plain text