Documentation
¶
Overview ¶
Code generated by sdkgen from Gophercloud v2.15.0; DO NOT EDIT.
Code generated by sdkgen from Gophercloud v2.15.0; DO NOT EDIT.
Index ¶
- Constants
- type API
- func (a *API) All(ctx context.Context, options ...resource.ListOption) ([]*Secret, error)
- func (a *API) AllRecords(ctx context.Context, options ...RecordListOption) ([]*FoundSecretRecord, error)
- func (a *API) Create(ctx context.Context, opts CreateOpts, options ...CreateOption) (*Secret, error)
- func (a *API) CreateMetadata(ctx context.Context, secretID string, opts MetadataOpts, ...) (map[string]string, error)
- func (a *API) CreateMetadatum(ctx context.Context, secretID string, opts MetadatumOpts, ...) error
- func (a *API) CreateRecord(ctx context.Context, options ...CreateRecordOption) (*CreatedSecret, error)
- func (a *API) Delete(ctx context.Context, id string) error
- func (a *API) DeleteMetadatum(ctx context.Context, secretID string, key string) error
- func (a *API) Fetch(ctx context.Context, ref resource.Ref, options ...FetchOption) (*FetchedSecret, error)
- func (a *API) Find(ctx context.Context, ref resource.Ref, options ...resource.LookupOption) (*Secret, error)
- func (a *API) FindIdentity(ctx context.Context, identity string, options ...resource.IdentityFindOption) (*FetchedSecret, error)
- func (a *API) FindRecord(ctx context.Context, identity string, options ...FindRecordOption) (*FoundSecretRecord, error)
- func (a *API) Get(ctx context.Context, id string) (*Secret, error)
- func (a *API) GetMetadata(ctx context.Context, secretID string) (map[string]string, error)
- func (a *API) GetMetadatum(ctx context.Context, secretID string, key string) (*Metadatum, error)
- func (a *API) GetPayload(ctx context.Context, id string, options ...GetPayloadOption) ([]byte, error)
- func (a *API) List(ctx context.Context, options ...ListOption) iter.Seq2[*Secret, error]
- func (a *API) ListRecords(ctx context.Context, options ...RecordListOption) iter.Seq2[*FoundSecretRecord, error]
- func (a *API) RawClient() *gophercloud.ServiceClient
- func (a *API) Remove(ctx context.Context, ref resource.Ref, options ...resource.LookupOption) error
- func (a *API) Update(ctx context.Context, id string, opts UpdateOpts, options ...UpdateOption) error
- func (a *API) UpdateMetadatum(ctx context.Context, secretID string, opts MetadatumOpts, ...) (*Metadatum, error)
- func (a *API) UpdateRecord(ctx context.Context, id string, options ...UpdateRecordOption) (*UpdatedSecretRecord, error)
- func (a *API) WaitFor(ctx context.Context, ref resource.Ref, status string, ...) (*Secret, error)
- func (a *API) WaitForDeletion(ctx context.Context, ref resource.Ref, options ...resource.WaitOption) error
- type CreateMetadataOption
- type CreateMetadatumOption
- type CreateOption
- type CreateOpts
- type CreateRecordOption
- func WithCreateRecordAttribute(key string, value any) CreateRecordOption
- func WithCreateRecordAttributes(value map[string]any) CreateRecordOption
- func WithCreateRecordField(key string, value any) CreateRecordOption
- func WithCreateRecordHeader(key, value string) CreateRecordOption
- func WithCreateRecordOptions(value CreateRecordOpts) CreateRecordOption
- type CreateRecordOpts
- type CreateResult
- type CreatedSecret
- type DateFilter
- type DateQuery
- type DeleteResult
- type FetchOption
- type FetchOpts
- type FetchedPayload
- type FetchedSecret
- type FindRecordOption
- type FindRecordOpts
- type FoundSecretRecord
- type GetPayloadOption
- type GetPayloadOpts
- type GetResult
- type ListOption
- type ListOpts
- type MetadataCreateResult
- type MetadataOpts
- type MetadataResult
- type Metadatum
- type MetadatumCreateResult
- type MetadatumDeleteResult
- type MetadatumOpts
- type MetadatumResult
- type PayloadResult
- type RecordListOption
- func WithRecordListHeaders(values map[string]string) RecordListOption
- func WithRecordListMaxItems(value int) RecordListOption
- func WithRecordListMicroversion(value string) RecordListOption
- func WithRecordListOpts(value RecordListOpts) RecordListOption
- func WithRecordListPaginated(value bool) RecordListOption
- func WithRecordListQuery(key string, value any) RecordListOption
- type RecordListOpts
- type Secret
- type SecretPage
- type SecretType
- type UpdateMetadatumOption
- type UpdateOption
- type UpdateOpts
- type UpdateRecordOption
- func WithUpdateRecordAttribute(key string, value any) UpdateRecordOption
- func WithUpdateRecordBasePath(value string) UpdateRecordOption
- func WithUpdateRecordHeaders(value map[string]string) UpdateRecordOption
- func WithUpdateRecordMicroversion(value string) UpdateRecordOption
- func WithUpdateRecordOpts(value UpdateRecordOpts) UpdateRecordOption
- type UpdateRecordOpts
- type UpdateResult
- type UpdatedSecretRecord
Constants ¶
const CertificateSecret = upstream.CertificateSecret
const DateFilterGT = upstream.DateFilterGT
const DateFilterGTE = upstream.DateFilterGTE
const DateFilterLT = upstream.DateFilterLT
const DateFilterLTE = upstream.DateFilterLTE
const OpaqueSecret = upstream.OpaqueSecret
const PassphraseSecret = upstream.PassphraseSecret
const PrivateSecret = upstream.PrivateSecret
const PublicSecret = upstream.PublicSecret
const SymmetricSecret = upstream.SymmetricSecret
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
Resources *resource.Collection[Secret]
// contains filtered or unexported fields
}
API owns typed operations and their shared resource policies.
func New ¶
func New(client *gophercloud.ServiceClient) *API
func (*API) AllRecords ¶
func (a *API) AllRecords(ctx context.Context, options ...RecordListOption) ([]*FoundSecretRecord, error)
AllRecords collects ListRecords; a terminal error discards partial rows.
func (*API) Create ¶
func (a *API) Create(ctx context.Context, opts CreateOpts, options ...CreateOption) (*Secret, error)
Create invokes the upstream API with library-owned builders and result handling.
func (*API) CreateMetadata ¶
func (a *API) CreateMetadata(ctx context.Context, secretID string, opts MetadataOpts, options ...CreateMetadataOption) (map[string]string, error)
CreateMetadata invokes the upstream API with library-owned builders and result handling.
func (*API) CreateMetadatum ¶
func (a *API) CreateMetadatum(ctx context.Context, secretID string, opts MetadatumOpts, options ...CreateMetadatumOption) error
CreateMetadatum invokes the upstream API with library-owned builders and result handling.
func (*API) CreateRecord ¶
func (a *API) CreateRecord(ctx context.Context, options ...CreateRecordOption) (*CreatedSecret, error)
CreateRecord is the owned mapping of Python create_secret. Native Create retains its existing concrete options, aliases and success-code policy.
func (*API) Delete ¶
Delete invokes the upstream API with library-owned builders and result handling.
func (*API) DeleteMetadatum ¶
DeleteMetadatum invokes the upstream API with library-owned builders and result handling.
func (*API) Fetch ¶
func (a *API) Fetch(ctx context.Context, ref resource.Ref, options ...FetchOption) (*FetchedSecret, error)
Fetch always reads the metadata representation, then conditionally retrieves its payload from the original fixed secret URI. A failure after metadata decoding returns that owned metadata together with the original error. Explicit Name lookup is an additional Go convenience; ID performs no lookup.
func (*API) FindIdentity ¶
func (a *API) FindIdentity(ctx context.Context, identity string, options ...resource.IdentityFindOption) (*FetchedSecret, error)
FindIdentity uses a strict metadata/payload Fetch for a safe direct identity. Compatible HTTP 400/403/404 may fall back to an all-page metadata-only search. List results never trigger a subsequent secret or payload GET. Response IDs and references are compared passively and never become request targets.
func (*API) FindRecord ¶
func (a *API) FindRecord(ctx context.Context, identity string, options ...FindRecordOption) (*FoundSecretRecord, error)
FindRecord maps the named find_secret flow onto SDK-owned defaults and views. Safe identities attempt metadata plus conditional payload first. Clean HTTP400/403/404 may fall back to a complete, exact ID-or-name list search; fallback rows are metadata-only. HTTP errors are strict by default, unlike pinned Secret.fetch's unchecked custom session.get(...).json() implementation. On failure, including strict logical absence, an optional receipt has Resource=nil and must never be treated as a found Secret. Missing success returns nil,nil.
func (*API) GetMetadata ¶
GetMetadata invokes the upstream API with library-owned builders and result handling.
func (*API) GetMetadatum ¶
GetMetadatum invokes the upstream API with library-owned builders and result handling.
func (*API) GetPayload ¶
func (a *API) GetPayload(ctx context.Context, id string, options ...GetPayloadOption) ([]byte, error)
GetPayload invokes the upstream API with library-owned builders and result handling.
func (*API) ListRecords ¶
func (a *API) ListRecords(ctx context.Context, options ...RecordListOption) iter.Seq2[*FoundSecretRecord, error]
ListRecords is the owned Source secrets iterator. It performs no I/O until iteration, returns complete nullable Resource views and literal HTTP proof, and counts raw rows before Body filtering. No member or payload GET is added. Returned RequestID is empty: references are passive values, not fetch routes.
func (*API) RawClient ¶
func (a *API) RawClient() *gophercloud.ServiceClient
func (*API) Update ¶
func (a *API) Update(ctx context.Context, id string, opts UpdateOpts, options ...UpdateOption) error
Update invokes the upstream API with library-owned builders and result handling.
func (*API) UpdateMetadatum ¶
func (a *API) UpdateMetadatum(ctx context.Context, secretID string, opts MetadatumOpts, options ...UpdateMetadatumOption) (*Metadatum, error)
UpdateMetadatum invokes the upstream API with library-owned builders and result handling.
func (*API) UpdateRecord ¶
func (a *API) UpdateRecord(ctx context.Context, id string, options ...UpdateRecordOption) (*UpdatedSecretRecord, error)
UpdateRecord implements the string-ID Secret update lane. Unlike Update's raw-payload upload, this sends unwrapped JSON dirty attributes. ID itself is not dirty; no recognized attrs means no PUT and no payload/metadata GET.
func (*API) WaitForDeletion ¶
type CreateMetadataOption ¶
type CreateMetadataOption = request.Option[MetadataOpts]
func WithCreateMetadataField ¶
func WithCreateMetadataField(key string, value any) CreateMetadataOption
func WithCreateMetadataOptions ¶
func WithCreateMetadataOptions(value MetadataOpts) CreateMetadataOption
type CreateMetadatumOption ¶
type CreateMetadatumOption = request.Option[MetadatumOpts]
func WithCreateMetadatumField ¶
func WithCreateMetadatumField(key string, value any) CreateMetadatumOption
func WithCreateMetadatumOptions ¶
func WithCreateMetadatumOptions(value MetadatumOpts) CreateMetadatumOption
type CreateOption ¶
type CreateOption = request.Option[CreateOpts]
func WithCreateField ¶
func WithCreateField(key string, value any) CreateOption
func WithCreateOptions ¶
func WithCreateOptions(value CreateOpts) CreateOption
type CreateOpts ¶
type CreateOpts = upstream.CreateOpts
type CreateRecordOption ¶
type CreateRecordOption = keymanagerread.CreateRecordOption
func WithCreateRecordAttribute ¶
func WithCreateRecordAttribute(key string, value any) CreateRecordOption
func WithCreateRecordAttributes ¶
func WithCreateRecordAttributes(value map[string]any) CreateRecordOption
func WithCreateRecordField ¶
func WithCreateRecordField(key string, value any) CreateRecordOption
func WithCreateRecordHeader ¶
func WithCreateRecordHeader(key, value string) CreateRecordOption
func WithCreateRecordOptions ¶
func WithCreateRecordOptions(value CreateRecordOpts) CreateRecordOption
type CreateRecordOpts ¶
type CreateRecordOpts = keymanagerread.CreateRecordOpts
CreateRecordOpts supplies declared source attributes, including explicit nulls.
type CreateResult ¶
type CreateResult = upstream.CreateResult
type CreatedSecret ¶
type CreatedSecret struct {
Resource, Wire *resource.RawResource
Envelope json.RawMessage
Header http.Header
StatusCode int
SecretID *string
}
CreatedSecret keeps seeded attributes separate from actual POST evidence. Convenience IDs and full references are passive values, not request identities.
type DateFilter ¶
type DateFilter = upstream.DateFilter
type DeleteResult ¶
type DeleteResult = upstream.DeleteResult
type FetchOption ¶
func WithFetchContentType ¶
func WithFetchContentType(value string) FetchOption
func WithFetchHeader ¶
func WithFetchHeader(key, value string) FetchOption
func WithFetchOptions ¶
func WithFetchOptions(value FetchOpts) FetchOption
func WithFetchPayload ¶
func WithFetchPayload(value bool) FetchOption
type FetchOpts ¶
FetchOpts controls composition. Nil Payload selects the automatic payload behavior; nil ContentType selects the response's content_types.default. An explicit empty ContentType remains an explicit (empty) Accept value.
type FetchedPayload ¶
type FetchedPayload struct {
Body []byte
Text *string
Accept string
Header http.Header
StatusCode int
}
FetchedPayload owns the exact payload response bytes and HTTP evidence. Text is populated only for an explicitly selected, valid UTF-8 text/plain response. Accept records the choice; response Content-Type cannot change it.
type FetchedSecret ¶
type FetchedSecret struct {
resource.Metadata
SecretID string `json:"-"`
Name string `json:"name"`
Status string `json:"status"`
SecretRef string `json:"secret_ref"`
Algorithm string `json:"algorithm"`
Mode string `json:"mode"`
SecretType string `json:"secret_type"`
BitLength json.RawMessage `json:"bit_length"`
ContentTypes json.RawMessage `json:"content_types"`
ExpiresAt *string `json:"expiration"`
CreatedAt *string `json:"created"`
UpdatedAt *string `json:"updated"`
PayloadContentType *string `json:"payload_content_type"`
PayloadContentEncoding *string `json:"payload_content_encoding"`
Payload *FetchedPayload `json:"-"`
}
FetchedSecret separates the actual metadata response from the payload. SecretID is the fixed request identity, not a fabricated response field. Body keeps original canonical and extension fields, including null/omission.
func (*FetchedSecret) UnmarshalJSON ¶
func (value *FetchedSecret) UnmarshalJSON(data []byte) error
type FindRecordOption ¶
type FindRecordOption func(*FindRecordOpts) error
func WithFindRecordFallback ¶
func WithFindRecordFallback(value resource.FindFallbackPolicy) FindRecordOption
func WithFindRecordIgnoreMissing ¶
func WithFindRecordIgnoreMissing(value bool) FindRecordOption
func WithFindRecordOptions ¶
func WithFindRecordOptions(value FindRecordOpts) FindRecordOption
type FindRecordOpts ¶
type FindRecordOpts struct {
IgnoreMissing *bool
Fallback resource.FindFallbackPolicy
}
FindRecordOpts owns the finite find_secret controls. IgnoreMissing defaults to true; Fallback defaults to compatible clean HTTP400/403/404 fallback. The SDK always checks HTTP status, including Secret's custom payload fetch.
type FoundSecretRecord ¶
type FoundSecretRecord struct {
RequestID string
Resource, Wire *resource.RawResource
Envelope json.RawMessage
Header http.Header
StatusCode int
Payload *FetchedPayload
}
FoundSecretRecord keeps the Source descriptor view separate from the actual metadata row and complete HTTP envelope. RequestID is populated only by the direct read. Payload holds actual bytes/headers/status, never a followed ref. Binary payload bytes are JSON base64 in Resource and exact bytes in Payload.
type GetPayloadOption ¶
type GetPayloadOption = request.Option[GetPayloadOpts]
func WithGetPayloadHeader ¶
func WithGetPayloadHeader(key, value string) GetPayloadOption
func WithGetPayloadOptions ¶
func WithGetPayloadOptions(value GetPayloadOpts) GetPayloadOption
type GetPayloadOpts ¶
type GetPayloadOpts = upstream.GetPayloadOpts
type ListOption ¶
func WithListOptions ¶
func WithListOptions(value ListOpts) ListOption
func WithListQuery ¶
func WithListQuery(key, value string) ListOption
type MetadataCreateResult ¶
type MetadataCreateResult = upstream.MetadataCreateResult
type MetadataOpts ¶
type MetadataOpts = upstream.MetadataOpts
type MetadataResult ¶
type MetadataResult = upstream.MetadataResult
type MetadatumCreateResult ¶
type MetadatumCreateResult = upstream.MetadatumCreateResult
type MetadatumDeleteResult ¶
type MetadatumDeleteResult = upstream.MetadatumDeleteResult
type MetadatumOpts ¶
type MetadatumOpts = upstream.MetadatumOpts
type MetadatumResult ¶
type MetadatumResult = upstream.MetadatumResult
type PayloadResult ¶
type PayloadResult = upstream.PayloadResult
type RecordListOption ¶
type RecordListOption func(*RecordListOpts) error
func WithRecordListHeaders ¶
func WithRecordListHeaders(values map[string]string) RecordListOption
func WithRecordListMaxItems ¶
func WithRecordListMaxItems(value int) RecordListOption
func WithRecordListMicroversion ¶
func WithRecordListMicroversion(value string) RecordListOption
func WithRecordListOpts ¶
func WithRecordListOpts(value RecordListOpts) RecordListOption
func WithRecordListPaginated ¶
func WithRecordListPaginated(value bool) RecordListOption
func WithRecordListQuery ¶
func WithRecordListQuery(key string, value any) RecordListOption
WithRecordListQuery follows the finite Source query/Body declaration. Unknown kwargs are discarded, not promoted to wire extensions or caller predicates.
type RecordListOpts ¶
type RecordListOpts struct {
Query map[string]json.RawMessage
Headers map[string]string
Microversion *string
MaxItems int
Paginated *bool
}
RecordListOpts owns Source kwargs and read controls. Pagination defaults to true, zero MaxItems is unbounded, and nil Microversion retains the selected client's default. An absent default causes no Barbican version discovery.
type SecretPage ¶
type SecretPage = upstream.SecretPage
type SecretType ¶
type SecretType = upstream.SecretType
type UpdateMetadatumOption ¶
type UpdateMetadatumOption = request.Option[MetadatumOpts]
func WithUpdateMetadatumField ¶
func WithUpdateMetadatumField(key string, value any) UpdateMetadatumOption
func WithUpdateMetadatumOptions ¶
func WithUpdateMetadatumOptions(value MetadatumOpts) UpdateMetadatumOption
type UpdateOption ¶
type UpdateOption = request.Option[UpdateOpts]
func WithUpdateHeader ¶
func WithUpdateHeader(key, value string) UpdateOption
func WithUpdateOptions ¶
func WithUpdateOptions(value UpdateOpts) UpdateOption
type UpdateOpts ¶
type UpdateOpts = upstream.UpdateOpts
type UpdateRecordOption ¶
type UpdateRecordOption func(*UpdateRecordOpts) error
func WithUpdateRecordAttribute ¶
func WithUpdateRecordAttribute(key string, value any) UpdateRecordOption
func WithUpdateRecordBasePath ¶
func WithUpdateRecordBasePath(value string) UpdateRecordOption
func WithUpdateRecordHeaders ¶
func WithUpdateRecordHeaders(value map[string]string) UpdateRecordOption
func WithUpdateRecordMicroversion ¶
func WithUpdateRecordMicroversion(value string) UpdateRecordOption
func WithUpdateRecordOpts ¶
func WithUpdateRecordOpts(value UpdateRecordOpts) UpdateRecordOption
type UpdateRecordOpts ¶
type UpdateRecordOpts struct {
Attributes map[string]json.RawMessage
Headers map[string]string
Microversion, BasePath *string
// contains filtered or unexported fields
}
UpdateRecordOpts describes an owned, newly seeded Secret commit. Attributes are Source Body names or wire aliases; unknown ordinary attrs are discarded. Headers/Microversion are explicit Go transport controls. BasePath is a literal path within the selected service; Python printf URI templates are not enabled.
type UpdateResult ¶
type UpdateResult = upstream.UpdateResult
type UpdatedSecretRecord ¶
type UpdatedSecretRecord struct {
RequestID string
Seed, Request map[string]json.RawMessage
Resource, Wire *resource.RawResource
Envelope json.RawMessage
Header http.Header
StatusCode int
Committed bool
}
UpdatedSecretRecord keeps request seed/body separate from an actual PUT observation. Committed means the accepted HTTP body/Close completed; false never proves that the server did not execute an attempted request. Wire contains only received fields; Resource overlays them onto the seed.