Documentation ¶
Index ¶
- type FakeClient
- type FakeImage
- func (f *FakeImage) ConfigFile() (*v1.ConfigFile, error)
- func (f *FakeImage) ConfigName() (v1.Hash, error)
- func (f *FakeImage) Digest() (v1.Hash, error)
- func (f *FakeImage) LayerByDiffID(v1.Hash) (v1.Layer, error)
- func (f *FakeImage) LayerByDigest(v1.Hash) (v1.Layer, error)
- func (f *FakeImage) Layers() ([]v1.Layer, error)
- func (f *FakeImage) Manifest() (*v1.Manifest, error)
- func (f *FakeImage) MediaType() (types.MediaType, error)
- func (f *FakeImage) RawConfigFile() ([]byte, error)
- func (f *FakeImage) RawManifest() ([]byte, error)
- func (f *FakeImage) Size() (int64, error)
- type Registry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeClient ¶
type FakeClient struct { WantTags map[string][]string WantErr error ListTagCalls []string // contains filtered or unexported fields }
type FakeImage ¶
type FakeImage struct{}
func (*FakeImage) ConfigFile ¶
func (f *FakeImage) ConfigFile() (*v1.ConfigFile, error)
func (*FakeImage) RawConfigFile ¶
func (*FakeImage) RawManifest ¶
type Registry ¶
func NewTLSRegistry ¶
func NewTLSRegistry(private bool, cloudProviderID cloud.ProviderID) (*Registry, error)
Creates an OCI registry to test tls/https.
Note: Container libs use Docker under the hood to handle OCI and Docker defaults to HTTP when it detects that the registry host is localhost or 127.0.0.1. In order to test OCI with a HTTPS server, we have to supply a "fake" host. We use a mock dns server to create an A record which binds navecd.io to 127.0.0.1. All OCI tests have to use navecd.io as host.
func StartCUERegistry ¶
func (*Registry) CUERegistryClient ¶
func (r *Registry) CUERegistryClient() *modregistry.Client
Click to show internal directories.
Click to hide internal directories.