/
interfaces.go
96 lines (80 loc) · 5.54 KB
/
interfaces.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
package containerregistryapi
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"context"
"github.com/Azure/azure-sdk-for-go/services/preview/containerregistry/runtime/2019-08-15-preview/containerregistry"
"github.com/Azure/go-autorest/autorest"
"io"
)
// V2SupportClientAPI contains the set of methods on the V2SupportClient type.
type V2SupportClientAPI interface {
Check(ctx context.Context) (result autorest.Response, err error)
}
var _ V2SupportClientAPI = (*containerregistry.V2SupportClient)(nil)
// ManifestsClientAPI contains the set of methods on the ManifestsClient type.
type ManifestsClientAPI interface {
Create(ctx context.Context, name string, reference string, payload containerregistry.Manifest) (result containerregistry.SetObject, err error)
Delete(ctx context.Context, name string, reference string) (result autorest.Response, err error)
Get(ctx context.Context, name string, reference string, accept string) (result containerregistry.ManifestWrapper, err error)
GetAttributes(ctx context.Context, name string, reference string) (result containerregistry.ManifestAttributes, err error)
GetList(ctx context.Context, name string, last string, n *int32, orderby string) (result containerregistry.AcrManifests, err error)
UpdateAttributes(ctx context.Context, name string, reference string, value *containerregistry.ChangeableAttributes) (result autorest.Response, err error)
}
var _ ManifestsClientAPI = (*containerregistry.ManifestsClient)(nil)
// BlobClientAPI contains the set of methods on the BlobClient type.
type BlobClientAPI interface {
CancelUpload(ctx context.Context, location string) (result autorest.Response, err error)
Check(ctx context.Context, name string, digest string) (result autorest.Response, err error)
CheckChunk(ctx context.Context, name string, digest string, rangeParameter string) (result autorest.Response, err error)
Delete(ctx context.Context, name string, digest string) (result containerregistry.ReadCloser, err error)
EndUpload(ctx context.Context, digest string, location string, value io.ReadCloser) (result autorest.Response, err error)
Get(ctx context.Context, name string, digest string) (result containerregistry.ReadCloser, err error)
GetChunk(ctx context.Context, name string, digest string, rangeParameter string) (result containerregistry.ReadCloser, err error)
GetStatus(ctx context.Context, location string) (result autorest.Response, err error)
Mount(ctx context.Context, name string, from string, mount string) (result autorest.Response, err error)
StartUpload(ctx context.Context, name string) (result autorest.Response, err error)
Upload(ctx context.Context, value io.ReadCloser, location string) (result autorest.Response, err error)
}
var _ BlobClientAPI = (*containerregistry.BlobClient)(nil)
// RepositoryClientAPI contains the set of methods on the RepositoryClient type.
type RepositoryClientAPI interface {
Delete(ctx context.Context, name string) (result containerregistry.DeletedRepository, err error)
GetAttributes(ctx context.Context, name string) (result containerregistry.RepositoryAttributes, err error)
GetList(ctx context.Context, last string, n *int32) (result containerregistry.Repositories, err error)
UpdateAttributes(ctx context.Context, name string, value *containerregistry.ChangeableAttributes) (result autorest.Response, err error)
}
var _ RepositoryClientAPI = (*containerregistry.RepositoryClient)(nil)
// TagClientAPI contains the set of methods on the TagClient type.
type TagClientAPI interface {
Delete(ctx context.Context, name string, reference string) (result autorest.Response, err error)
GetAttributes(ctx context.Context, name string, reference string) (result containerregistry.TagAttributes, err error)
GetList(ctx context.Context, name string, last string, n *int32, orderby string, digest string) (result containerregistry.TagList, err error)
UpdateAttributes(ctx context.Context, name string, reference string, value *containerregistry.ChangeableAttributes) (result autorest.Response, err error)
}
var _ TagClientAPI = (*containerregistry.TagClient)(nil)
// RefreshTokensClientAPI contains the set of methods on the RefreshTokensClient type.
type RefreshTokensClientAPI interface {
GetFromExchange(ctx context.Context, grantType string, service string, tenant string, refreshToken string, accessToken string) (result containerregistry.RefreshToken, err error)
}
var _ RefreshTokensClientAPI = (*containerregistry.RefreshTokensClient)(nil)
// AccessTokensClientAPI contains the set of methods on the AccessTokensClient type.
type AccessTokensClientAPI interface {
Get(ctx context.Context, service string, scope string, refreshToken string) (result containerregistry.AccessToken, err error)
GetFromLogin(ctx context.Context, service string, scope string) (result containerregistry.AccessToken, err error)
}
var _ AccessTokensClientAPI = (*containerregistry.AccessTokensClient)(nil)