Documentation ¶
Index ¶
- Constants
- type DeployableObject
- type Handler
- func (h *Handler) Create(bucket string) error
- func (h *Handler) Delete(bucket, name string) error
- func (h *Handler) Exists(bucket string) error
- func (h *Handler) Get(bucket, name string) (DeployableObject, error)
- func (h *Handler) InitObjectStoreConnection(endpoint, accessKeyID, secretAccessKey, region string) error
- func (h *Handler) List(bucket string, folderName *string) ([]string, error)
- func (h *Handler) Put(bucket string, dplObj DeployableObject) error
- type ObjectStore
Constants ¶
View Source
const ( // SecretMapKeyAccessKeyID is key of accesskeyid in secret. SecretMapKeyAccessKeyID = "AccessKeyID" // SecretMapKeySecretAccessKey is key of secretaccesskey in secret. SecretMapKeySecretAccessKey = "SecretAccessKey" // SecretMapKeyRegion is key of region in secret. SecretMapKeyRegion = "Region" // metadata key for stroing the deployable generatename name. DeployableGenerateNameMeta = "x-amz-meta-generatename" // Deployable generate name key within the meta map. DployableMateGenerateNameKey = "Generatename" // metadata key for stroing the deployable generatename name. DeployableVersionMeta = "x-amz-meta-deployableversion" // Deployable generate name key within the meta map. DeployableMetaVersionKey = "Deployableversion" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeployableObject ¶
type Handler ¶
Handler handles connections to aws.
func (*Handler) Get ¶
func (h *Handler) Get(bucket, name string) (DeployableObject, error)
Get get existing object.
func (*Handler) InitObjectStoreConnection ¶
func (h *Handler) InitObjectStoreConnection(endpoint, accessKeyID, secretAccessKey, region string) error
InitObjectStoreConnection connect to object store.
type ObjectStore ¶
type ObjectStore interface { InitObjectStoreConnection(endpoint, accessKeyID, secretAccessKey, region string) error Exists(bucket string) error Create(bucket string) error List(bucket string, folderName *string) ([]string, error) Put(bucket string, dplObj DeployableObject) error Delete(bucket, name string) error Get(bucket, name string) (DeployableObject, error) }
ObjectStore interface.
Click to show internal directories.
Click to hide internal directories.