Documentation ¶
Index ¶
Constants ¶
View Source
const ( Type = "s3" TypeV1 = Type + runtime.VersionSeparator + "v1" LegacyType = "S3" LegacyTypeV1 = LegacyType + runtime.VersionSeparator + "v1" CONSUMER_TYPE = "S3" )
Type is the access type of S3 registry.
Variables ¶
This section is empty.
Functions ¶
func ConfigHandler ¶
func ConfigHandler() flagsets.ConfigOptionTypeSetHandler
Types ¶
type AccessSpec ¶
type AccessSpec struct { runtime.ObjectVersionedType `json:",inline"` // Region needs to be set even though buckets are global. // We can't assume that there is a default region setting sitting somewhere. // +optional Region string `json:"region,omitempty"` // Bucket where the s3 object is located. Bucket string `json:"bucket"` // Key of the object to look for. This value will be used together with Bucket and Version to form an identity. Key string `json:"key"` // Version of the object. // +optional Version string `json:"version,omitempty"` // MediaType defines the mime type of the object to download. // +optional MediaType string `json:"mediaType,omitempty"` // contains filtered or unexported fields }
AccessSpec describes the access for a GitHub registry.
func New ¶
func New(region, bucket, key, version, mediaType string, downloader downloader.Downloader) *AccessSpec
New creates a new GitHub registry access spec version v1.
func (*AccessSpec) AccessMethod ¶
func (a *AccessSpec) AccessMethod(c cpi.ComponentVersionAccess) (cpi.AccessMethod, error)
func (*AccessSpec) GetType ¶
func (_ *AccessSpec) GetType() string
Click to show internal directories.
Click to hide internal directories.