...

Source file src/github.com/awslabs/amazon-ecr-credential-helper/ecr-login/api/mocks/api_mocks.go

Documentation: github.com/awslabs/amazon-ecr-credential-helper/ecr-login/api/mocks

     1  // Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License"). You may
     4  // not use this file except in compliance with the License. A copy of the
     5  // License is located at
     6  //
     7  //     http://aws.amazon.com/apache2.0/
     8  //
     9  // or in the "license" file accompanying this file. This file is distributed
    10  // on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
    11  // express or implied. See the License for the specific language governing
    12  // permissions and limitations under the License.
    13  
    14  // Automatically generated by MockGen. DO NOT EDIT!
    15  // Source: github.com/awslabs/amazon-ecr-credential-helper/ecr-login/api (interfaces: ECRAPI)
    16  
    17  package mock_api
    18  
    19  import (
    20  	"context"
    21  
    22  	"github.com/aws/aws-sdk-go-v2/service/ecr"
    23  	"github.com/aws/aws-sdk-go-v2/service/ecrpublic"
    24  )
    25  
    26  type MockECRAPI struct {
    27  	GetAuthorizationTokenFn func(input *ecr.GetAuthorizationTokenInput) (*ecr.GetAuthorizationTokenOutput, error)
    28  }
    29  
    30  func (m MockECRAPI) GetAuthorizationToken(_ context.Context, input *ecr.GetAuthorizationTokenInput, _ ...func(*ecr.Options)) (*ecr.GetAuthorizationTokenOutput, error) {
    31  	return m.GetAuthorizationTokenFn(input)
    32  }
    33  
    34  type MockECRPublicAPI struct {
    35  	GetAuthorizationTokenFn func(input *ecrpublic.GetAuthorizationTokenInput) (*ecrpublic.GetAuthorizationTokenOutput, error)
    36  }
    37  
    38  func (m MockECRPublicAPI) GetAuthorizationToken(_ context.Context, input *ecrpublic.GetAuthorizationTokenInput, _ ...func(*ecrpublic.Options)) (*ecrpublic.GetAuthorizationTokenOutput, error) {
    39  	return m.GetAuthorizationTokenFn(input)
    40  }
    41  

View as plain text