Documentation
¶
Index ¶
- Constants
- func AddConfig(opts flagsets.ConfigOptions, config flagsets.Config) error
- func ConfigHandler() flagsets.ConfigOptionTypeSetHandler
- type AccessSpec
- func (s *AccessSpec) AccessMethod(access cpi.ComponentVersionAccess) (cpi.AccessMethod, error)
- func (a *AccessSpec) Describe(ctx cpi.Context) string
- func (s *AccessSpec) GetInexpensiveContentVersionIdentity(access cpi.ComponentVersionAccess) string
- func (s *AccessSpec) GetMimeType() string
- func (s *AccessSpec) GlobalAccessSpec(ctx cpi.Context) cpi.AccessSpec
- func (s *AccessSpec) IsLocal(context cpi.Context) bool
Constants ¶
View Source
const ( Type = "ociBlob" TypeV1 = Type + runtime.VersionSeparator + "v1" )
Type is the access type for a blob in an OCI repository.
Variables ¶
This section is empty.
Functions ¶
func ConfigHandler ¶
func ConfigHandler() flagsets.ConfigOptionTypeSetHandler
Types ¶
type AccessSpec ¶
type AccessSpec struct {
runtime.ObjectVersionedType `json:",inline"`
// Reference is the oci reference to the OCI repository
Reference string `json:"ref"`
// MediaType is the media type of the object this schema refers to.
MediaType string `json:"mediaType,omitempty"`
// Digest is the digest of the targeted content.
Digest digest.Digest `json:"digest"`
// Size specifies the size in bytes of the blob.
Size int64 `json:"size"`
}
AccessSpec describes the access for a oci registry.
func New ¶
func New(repository string, digest digest.Digest, mediaType string, size int64) *AccessSpec
New creates a new OCIBlob accessor.
func (*AccessSpec) AccessMethod ¶
func (s *AccessSpec) AccessMethod(access cpi.ComponentVersionAccess) (cpi.AccessMethod, error)
func (*AccessSpec) GetInexpensiveContentVersionIdentity ¶ added in v0.3.0
func (s *AccessSpec) GetInexpensiveContentVersionIdentity(access cpi.ComponentVersionAccess) string
func (*AccessSpec) GetMimeType ¶
func (s *AccessSpec) GetMimeType() string
func (*AccessSpec) GlobalAccessSpec ¶ added in v0.3.0
func (s *AccessSpec) GlobalAccessSpec(ctx cpi.Context) cpi.AccessSpec
Click to show internal directories.
Click to hide internal directories.