Documentation ¶
Index ¶
- func GetGetSecretBundleByNameStageEnumStringValues() []string
- func GetGetSecretBundleStageEnumStringValues() []string
- func GetListSecretBundleVersionsSortByEnumStringValues() []string
- func GetListSecretBundleVersionsSortOrderEnumStringValues() []string
- func GetSecretBundleContentDetailsContentTypeEnumStringValues() []string
- func GetSecretBundleStagesEnumStringValues() []string
- func GetSecretBundleVersionSummaryStagesEnumStringValues() []string
- type Base64SecretBundleContentDetails
- type GetSecretBundleByNameRequest
- func (request GetSecretBundleByNameRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
- func (request GetSecretBundleByNameRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, ...) (http.Request, error)
- func (request GetSecretBundleByNameRequest) RetryPolicy() *common.RetryPolicy
- func (request GetSecretBundleByNameRequest) String() string
- func (request GetSecretBundleByNameRequest) ValidateEnumValue() (bool, error)
- type GetSecretBundleByNameResponse
- type GetSecretBundleByNameStageEnum
- type GetSecretBundleRequest
- func (request GetSecretBundleRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
- func (request GetSecretBundleRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, ...) (http.Request, error)
- func (request GetSecretBundleRequest) RetryPolicy() *common.RetryPolicy
- func (request GetSecretBundleRequest) String() string
- func (request GetSecretBundleRequest) ValidateEnumValue() (bool, error)
- type GetSecretBundleResponse
- type GetSecretBundleStageEnum
- type ListSecretBundleVersionsRequest
- func (request ListSecretBundleVersionsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
- func (request ListSecretBundleVersionsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, ...) (http.Request, error)
- func (request ListSecretBundleVersionsRequest) RetryPolicy() *common.RetryPolicy
- func (request ListSecretBundleVersionsRequest) String() string
- func (request ListSecretBundleVersionsRequest) ValidateEnumValue() (bool, error)
- type ListSecretBundleVersionsResponse
- type ListSecretBundleVersionsSortByEnum
- type ListSecretBundleVersionsSortOrderEnum
- type SecretBundle
- type SecretBundleContentDetails
- type SecretBundleContentDetailsContentTypeEnum
- type SecretBundleStagesEnum
- type SecretBundleVersionSummary
- type SecretBundleVersionSummaryStagesEnum
- type SecretsClient
- func (client *SecretsClient) ConfigurationProvider() *common.ConfigurationProvider
- func (client SecretsClient) GetSecretBundle(ctx context.Context, request GetSecretBundleRequest) (response GetSecretBundleResponse, err error)
- func (client SecretsClient) GetSecretBundleByName(ctx context.Context, request GetSecretBundleByNameRequest) (response GetSecretBundleByNameResponse, err error)
- func (client SecretsClient) ListSecretBundleVersions(ctx context.Context, request ListSecretBundleVersionsRequest) (response ListSecretBundleVersionsResponse, err error)
- func (client *SecretsClient) SetRegion(region string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGetSecretBundleByNameStageEnumStringValues ¶
func GetGetSecretBundleByNameStageEnumStringValues() []string
GetGetSecretBundleByNameStageEnumStringValues Enumerates the set of values in String for GetSecretBundleByNameStageEnum
func GetGetSecretBundleStageEnumStringValues ¶
func GetGetSecretBundleStageEnumStringValues() []string
GetGetSecretBundleStageEnumStringValues Enumerates the set of values in String for GetSecretBundleStageEnum
func GetListSecretBundleVersionsSortByEnumStringValues ¶
func GetListSecretBundleVersionsSortByEnumStringValues() []string
GetListSecretBundleVersionsSortByEnumStringValues Enumerates the set of values in String for ListSecretBundleVersionsSortByEnum
func GetListSecretBundleVersionsSortOrderEnumStringValues ¶
func GetListSecretBundleVersionsSortOrderEnumStringValues() []string
GetListSecretBundleVersionsSortOrderEnumStringValues Enumerates the set of values in String for ListSecretBundleVersionsSortOrderEnum
func GetSecretBundleContentDetailsContentTypeEnumStringValues ¶
func GetSecretBundleContentDetailsContentTypeEnumStringValues() []string
GetSecretBundleContentDetailsContentTypeEnumStringValues Enumerates the set of values in String for SecretBundleContentDetailsContentTypeEnum
func GetSecretBundleStagesEnumStringValues ¶
func GetSecretBundleStagesEnumStringValues() []string
GetSecretBundleStagesEnumStringValues Enumerates the set of values in String for SecretBundleStagesEnum
func GetSecretBundleVersionSummaryStagesEnumStringValues ¶
func GetSecretBundleVersionSummaryStagesEnumStringValues() []string
GetSecretBundleVersionSummaryStagesEnumStringValues Enumerates the set of values in String for SecretBundleVersionSummaryStagesEnum
Types ¶
type Base64SecretBundleContentDetails ¶
type Base64SecretBundleContentDetails struct { // The base64-encoded content of the secret. Content *string `mandatory:"false" json:"content"` }
Base64SecretBundleContentDetails The contents of the secret.
func (Base64SecretBundleContentDetails) MarshalJSON ¶
func (m Base64SecretBundleContentDetails) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (Base64SecretBundleContentDetails) String ¶
func (m Base64SecretBundleContentDetails) String() string
func (Base64SecretBundleContentDetails) ValidateEnumValue ¶
func (m Base64SecretBundleContentDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
type GetSecretBundleByNameRequest ¶
type GetSecretBundleByNameRequest struct { // A user-friendly name for the secret. Secret names are unique within a vault. Secret names are case-sensitive. SecretName *string `mandatory:"true" contributesTo:"query" name:"secretName"` // The OCID of the vault that contains the secret. VaultId *string `mandatory:"true" contributesTo:"query" name:"vaultId"` // Unique identifier for the request. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // The version number of the secret. VersionNumber *int64 `mandatory:"false" contributesTo:"query" name:"versionNumber"` // The name of the secret. (This might be referred to as the name of the secret version. Names are unique across the different versions of a secret.) SecretVersionName *string `mandatory:"false" contributesTo:"query" name:"secretVersionName"` // The rotation state of the secret version. Stage GetSecretBundleByNameStageEnum `mandatory:"false" contributesTo:"query" name:"stage" omitEmpty:"true"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
GetSecretBundleByNameRequest wrapper for the GetSecretBundleByName operation
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/secrets/GetSecretBundleByName.go.html to see an example of how to use GetSecretBundleByNameRequest.
func (GetSecretBundleByNameRequest) BinaryRequestBody ¶
func (request GetSecretBundleByNameRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (GetSecretBundleByNameRequest) HTTPRequest ¶
func (request GetSecretBundleByNameRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (GetSecretBundleByNameRequest) RetryPolicy ¶
func (request GetSecretBundleByNameRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (GetSecretBundleByNameRequest) String ¶
func (request GetSecretBundleByNameRequest) String() string
func (GetSecretBundleByNameRequest) ValidateEnumValue ¶
func (request GetSecretBundleByNameRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
type GetSecretBundleByNameResponse ¶
type GetSecretBundleByNameResponse struct { // The underlying http response RawResponse *http.Response // The SecretBundle instance SecretBundle `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
GetSecretBundleByNameResponse wrapper for the GetSecretBundleByName operation
func (GetSecretBundleByNameResponse) HTTPResponse ¶
func (response GetSecretBundleByNameResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (GetSecretBundleByNameResponse) String ¶
func (response GetSecretBundleByNameResponse) String() string
type GetSecretBundleByNameStageEnum ¶
type GetSecretBundleByNameStageEnum string
GetSecretBundleByNameStageEnum Enum with underlying type: string
const ( GetSecretBundleByNameStageCurrent GetSecretBundleByNameStageEnum = "CURRENT" GetSecretBundleByNameStagePending GetSecretBundleByNameStageEnum = "PENDING" GetSecretBundleByNameStageLatest GetSecretBundleByNameStageEnum = "LATEST" GetSecretBundleByNameStagePrevious GetSecretBundleByNameStageEnum = "PREVIOUS" GetSecretBundleByNameStageDeprecated GetSecretBundleByNameStageEnum = "DEPRECATED" )
Set of constants representing the allowable values for GetSecretBundleByNameStageEnum
func GetGetSecretBundleByNameStageEnumValues ¶
func GetGetSecretBundleByNameStageEnumValues() []GetSecretBundleByNameStageEnum
GetGetSecretBundleByNameStageEnumValues Enumerates the set of values for GetSecretBundleByNameStageEnum
func GetMappingGetSecretBundleByNameStageEnum ¶
func GetMappingGetSecretBundleByNameStageEnum(val string) (GetSecretBundleByNameStageEnum, bool)
GetMappingGetSecretBundleByNameStageEnum performs case Insensitive comparison on enum value and return the desired enum
type GetSecretBundleRequest ¶
type GetSecretBundleRequest struct { // The OCID of the secret. SecretId *string `mandatory:"true" contributesTo:"path" name:"secretId"` // Unique identifier for the request. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // The version number of the secret. VersionNumber *int64 `mandatory:"false" contributesTo:"query" name:"versionNumber"` // The name of the secret. (This might be referred to as the name of the secret version. Names are unique across the different versions of a secret.) SecretVersionName *string `mandatory:"false" contributesTo:"query" name:"secretVersionName"` // The rotation state of the secret version. Stage GetSecretBundleStageEnum `mandatory:"false" contributesTo:"query" name:"stage" omitEmpty:"true"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
GetSecretBundleRequest wrapper for the GetSecretBundle operation
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/secrets/GetSecretBundle.go.html to see an example of how to use GetSecretBundleRequest.
func (GetSecretBundleRequest) BinaryRequestBody ¶
func (request GetSecretBundleRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (GetSecretBundleRequest) HTTPRequest ¶
func (request GetSecretBundleRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (GetSecretBundleRequest) RetryPolicy ¶
func (request GetSecretBundleRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (GetSecretBundleRequest) String ¶
func (request GetSecretBundleRequest) String() string
func (GetSecretBundleRequest) ValidateEnumValue ¶
func (request GetSecretBundleRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
type GetSecretBundleResponse ¶
type GetSecretBundleResponse struct { // The underlying http response RawResponse *http.Response // The SecretBundle instance SecretBundle `presentIn:"body"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
GetSecretBundleResponse wrapper for the GetSecretBundle operation
func (GetSecretBundleResponse) HTTPResponse ¶
func (response GetSecretBundleResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (GetSecretBundleResponse) String ¶
func (response GetSecretBundleResponse) String() string
type GetSecretBundleStageEnum ¶
type GetSecretBundleStageEnum string
GetSecretBundleStageEnum Enum with underlying type: string
const ( GetSecretBundleStageCurrent GetSecretBundleStageEnum = "CURRENT" GetSecretBundleStagePending GetSecretBundleStageEnum = "PENDING" GetSecretBundleStageLatest GetSecretBundleStageEnum = "LATEST" GetSecretBundleStagePrevious GetSecretBundleStageEnum = "PREVIOUS" GetSecretBundleStageDeprecated GetSecretBundleStageEnum = "DEPRECATED" )
Set of constants representing the allowable values for GetSecretBundleStageEnum
func GetGetSecretBundleStageEnumValues ¶
func GetGetSecretBundleStageEnumValues() []GetSecretBundleStageEnum
GetGetSecretBundleStageEnumValues Enumerates the set of values for GetSecretBundleStageEnum
func GetMappingGetSecretBundleStageEnum ¶
func GetMappingGetSecretBundleStageEnum(val string) (GetSecretBundleStageEnum, bool)
GetMappingGetSecretBundleStageEnum performs case Insensitive comparison on enum value and return the desired enum
type ListSecretBundleVersionsRequest ¶
type ListSecretBundleVersionsRequest struct { // The OCID of the secret. SecretId *string `mandatory:"true" contributesTo:"path" name:"secretId"` // Unique identifier for the request. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // The maximum number of items to return in a paginated "List" call. For information about pagination, see // List Pagination (https://docs.cloud.oracle.comAPI/Concepts/usingapi.htm#List_Pagination). Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // The value of the `opc-next-page` response header from the previous "List" call. For information about // pagination, see List Pagination (https://docs.cloud.oracle.comAPI/Concepts/usingapi.htm#List_Pagination). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The field to sort by. You can specify only one sort order. The default // order for `VERSION_NUMBER` is descending. SortBy ListSecretBundleVersionsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` // The sort order to use, either ascending (`ASC`) or descending (`DESC`). SortOrder ListSecretBundleVersionsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
ListSecretBundleVersionsRequest wrapper for the ListSecretBundleVersions operation
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/secrets/ListSecretBundleVersions.go.html to see an example of how to use ListSecretBundleVersionsRequest.
func (ListSecretBundleVersionsRequest) BinaryRequestBody ¶
func (request ListSecretBundleVersionsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (ListSecretBundleVersionsRequest) HTTPRequest ¶
func (request ListSecretBundleVersionsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (ListSecretBundleVersionsRequest) RetryPolicy ¶
func (request ListSecretBundleVersionsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (ListSecretBundleVersionsRequest) String ¶
func (request ListSecretBundleVersionsRequest) String() string
func (ListSecretBundleVersionsRequest) ValidateEnumValue ¶
func (request ListSecretBundleVersionsRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
type ListSecretBundleVersionsResponse ¶
type ListSecretBundleVersionsResponse struct { // The underlying http response RawResponse *http.Response // A list of []SecretBundleVersionSummary instances Items []SecretBundleVersionSummary `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // For pagination of a list of items. When paging through a list, if this header appears in the response, // then there are additional items still to get. Include this value as the `page` parameter for the // subsequent GET request. For information about pagination, see // List Pagination (https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#List_Pagination). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` }
ListSecretBundleVersionsResponse wrapper for the ListSecretBundleVersions operation
func (ListSecretBundleVersionsResponse) HTTPResponse ¶
func (response ListSecretBundleVersionsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (ListSecretBundleVersionsResponse) String ¶
func (response ListSecretBundleVersionsResponse) String() string
type ListSecretBundleVersionsSortByEnum ¶
type ListSecretBundleVersionsSortByEnum string
ListSecretBundleVersionsSortByEnum Enum with underlying type: string
const (
ListSecretBundleVersionsSortByVersionNumber ListSecretBundleVersionsSortByEnum = "VERSION_NUMBER"
)
Set of constants representing the allowable values for ListSecretBundleVersionsSortByEnum
func GetListSecretBundleVersionsSortByEnumValues ¶
func GetListSecretBundleVersionsSortByEnumValues() []ListSecretBundleVersionsSortByEnum
GetListSecretBundleVersionsSortByEnumValues Enumerates the set of values for ListSecretBundleVersionsSortByEnum
func GetMappingListSecretBundleVersionsSortByEnum ¶
func GetMappingListSecretBundleVersionsSortByEnum(val string) (ListSecretBundleVersionsSortByEnum, bool)
GetMappingListSecretBundleVersionsSortByEnum performs case Insensitive comparison on enum value and return the desired enum
type ListSecretBundleVersionsSortOrderEnum ¶
type ListSecretBundleVersionsSortOrderEnum string
ListSecretBundleVersionsSortOrderEnum Enum with underlying type: string
const ( ListSecretBundleVersionsSortOrderAsc ListSecretBundleVersionsSortOrderEnum = "ASC" ListSecretBundleVersionsSortOrderDesc ListSecretBundleVersionsSortOrderEnum = "DESC" )
Set of constants representing the allowable values for ListSecretBundleVersionsSortOrderEnum
func GetListSecretBundleVersionsSortOrderEnumValues ¶
func GetListSecretBundleVersionsSortOrderEnumValues() []ListSecretBundleVersionsSortOrderEnum
GetListSecretBundleVersionsSortOrderEnumValues Enumerates the set of values for ListSecretBundleVersionsSortOrderEnum
func GetMappingListSecretBundleVersionsSortOrderEnum ¶
func GetMappingListSecretBundleVersionsSortOrderEnum(val string) (ListSecretBundleVersionsSortOrderEnum, bool)
GetMappingListSecretBundleVersionsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
type SecretBundle ¶
type SecretBundle struct { // The OCID of the secret. SecretId *string `mandatory:"true" json:"secretId"` // The version number of the secret. VersionNumber *int64 `mandatory:"true" json:"versionNumber"` // The time when the secret bundle was created. TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` // The name of the secret version. Labels are unique across the different versions of a particular secret. VersionName *string `mandatory:"false" json:"versionName"` SecretBundleContent SecretBundleContentDetails `mandatory:"false" json:"secretBundleContent"` // An optional property indicating when to delete the secret version, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. // Example: `2019-04-03T21:10:29.600Z` TimeOfDeletion *common.SDKTime `mandatory:"false" json:"timeOfDeletion"` // An optional property indicating when the secret version will expire, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. // Example: `2019-04-03T21:10:29.600Z` TimeOfExpiry *common.SDKTime `mandatory:"false" json:"timeOfExpiry"` // A list of possible rotation states for the secret version. Stages []SecretBundleStagesEnum `mandatory:"false" json:"stages,omitempty"` // Customer-provided contextual metadata for the secret. Metadata map[string]interface{} `mandatory:"false" json:"metadata"` }
SecretBundle The contents of the secret, properties of the secret (and secret version), and user-provided contextual metadata for the secret.
func (SecretBundle) String ¶
func (m SecretBundle) String() string
func (*SecretBundle) UnmarshalJSON ¶
func (m *SecretBundle) UnmarshalJSON(data []byte) (e error)
UnmarshalJSON unmarshals from json
func (SecretBundle) ValidateEnumValue ¶
func (m SecretBundle) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
type SecretBundleContentDetails ¶
type SecretBundleContentDetails interface { }
SecretBundleContentDetails The contents of the secret.
type SecretBundleContentDetailsContentTypeEnum ¶
type SecretBundleContentDetailsContentTypeEnum string
SecretBundleContentDetailsContentTypeEnum Enum with underlying type: string
const (
SecretBundleContentDetailsContentTypeBase64 SecretBundleContentDetailsContentTypeEnum = "BASE64"
)
Set of constants representing the allowable values for SecretBundleContentDetailsContentTypeEnum
func GetMappingSecretBundleContentDetailsContentTypeEnum ¶
func GetMappingSecretBundleContentDetailsContentTypeEnum(val string) (SecretBundleContentDetailsContentTypeEnum, bool)
GetMappingSecretBundleContentDetailsContentTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetSecretBundleContentDetailsContentTypeEnumValues ¶
func GetSecretBundleContentDetailsContentTypeEnumValues() []SecretBundleContentDetailsContentTypeEnum
GetSecretBundleContentDetailsContentTypeEnumValues Enumerates the set of values for SecretBundleContentDetailsContentTypeEnum
type SecretBundleStagesEnum ¶
type SecretBundleStagesEnum string
SecretBundleStagesEnum Enum with underlying type: string
const ( SecretBundleStagesCurrent SecretBundleStagesEnum = "CURRENT" SecretBundleStagesPending SecretBundleStagesEnum = "PENDING" SecretBundleStagesLatest SecretBundleStagesEnum = "LATEST" SecretBundleStagesPrevious SecretBundleStagesEnum = "PREVIOUS" SecretBundleStagesDeprecated SecretBundleStagesEnum = "DEPRECATED" )
Set of constants representing the allowable values for SecretBundleStagesEnum
func GetMappingSecretBundleStagesEnum ¶
func GetMappingSecretBundleStagesEnum(val string) (SecretBundleStagesEnum, bool)
GetMappingSecretBundleStagesEnum performs case Insensitive comparison on enum value and return the desired enum
func GetSecretBundleStagesEnumValues ¶
func GetSecretBundleStagesEnumValues() []SecretBundleStagesEnum
GetSecretBundleStagesEnumValues Enumerates the set of values for SecretBundleStagesEnum
type SecretBundleVersionSummary ¶
type SecretBundleVersionSummary struct { // The OCID of the secret. SecretId *string `mandatory:"true" json:"secretId"` // The version number of the secret. VersionNumber *int64 `mandatory:"true" json:"versionNumber"` // The time when the secret bundle was created. TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` // The version name of the secret bundle, as provided when the secret was created or last rotated. VersionName *string `mandatory:"false" json:"versionName"` // An optional property indicating when to delete the secret version, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. // Example: `2019-04-03T21:10:29.600Z` TimeOfDeletion *common.SDKTime `mandatory:"false" json:"timeOfDeletion"` // An optional property indicating when the secret version will expire, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format. // Example: `2019-04-03T21:10:29.600Z` TimeOfExpiry *common.SDKTime `mandatory:"false" json:"timeOfExpiry"` // A list of possible rotation states for the secret bundle. Stages []SecretBundleVersionSummaryStagesEnum `mandatory:"false" json:"stages,omitempty"` }
SecretBundleVersionSummary The properties of the secret bundle. (Secret bundle version summary objects do not include the actual contents of the secret.)
func (SecretBundleVersionSummary) String ¶
func (m SecretBundleVersionSummary) String() string
func (SecretBundleVersionSummary) ValidateEnumValue ¶
func (m SecretBundleVersionSummary) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
type SecretBundleVersionSummaryStagesEnum ¶
type SecretBundleVersionSummaryStagesEnum string
SecretBundleVersionSummaryStagesEnum Enum with underlying type: string
const ( SecretBundleVersionSummaryStagesCurrent SecretBundleVersionSummaryStagesEnum = "CURRENT" SecretBundleVersionSummaryStagesPending SecretBundleVersionSummaryStagesEnum = "PENDING" SecretBundleVersionSummaryStagesLatest SecretBundleVersionSummaryStagesEnum = "LATEST" SecretBundleVersionSummaryStagesPrevious SecretBundleVersionSummaryStagesEnum = "PREVIOUS" SecretBundleVersionSummaryStagesDeprecated SecretBundleVersionSummaryStagesEnum = "DEPRECATED" )
Set of constants representing the allowable values for SecretBundleVersionSummaryStagesEnum
func GetMappingSecretBundleVersionSummaryStagesEnum ¶
func GetMappingSecretBundleVersionSummaryStagesEnum(val string) (SecretBundleVersionSummaryStagesEnum, bool)
GetMappingSecretBundleVersionSummaryStagesEnum performs case Insensitive comparison on enum value and return the desired enum
func GetSecretBundleVersionSummaryStagesEnumValues ¶
func GetSecretBundleVersionSummaryStagesEnumValues() []SecretBundleVersionSummaryStagesEnum
GetSecretBundleVersionSummaryStagesEnumValues Enumerates the set of values for SecretBundleVersionSummaryStagesEnum
type SecretsClient ¶
type SecretsClient struct { common.BaseClient // contains filtered or unexported fields }
SecretsClient a client for Secrets
func NewSecretsClientWithConfigurationProvider ¶
func NewSecretsClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client SecretsClient, err error)
NewSecretsClientWithConfigurationProvider Creates a new default Secrets client with the given configuration provider. the configuration provider will be used for the default signer as well as reading the region
func NewSecretsClientWithOboToken ¶
func NewSecretsClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client SecretsClient, err error)
NewSecretsClientWithOboToken Creates a new default Secrets client with the given configuration provider. The obotoken will be added to default headers and signed; the configuration provider will be used for the signer
as well as reading the region
func (*SecretsClient) ConfigurationProvider ¶
func (client *SecretsClient) ConfigurationProvider() *common.ConfigurationProvider
ConfigurationProvider the ConfigurationProvider used in this client, or null if none set
func (SecretsClient) GetSecretBundle ¶
func (client SecretsClient) GetSecretBundle(ctx context.Context, request GetSecretBundleRequest) (response GetSecretBundleResponse, err error)
GetSecretBundle Gets a secret bundle that matches either the specified `stage`, `secretVersionName`, or `versionNumber` parameter. If none of these parameters are provided, the bundle for the secret version marked as `CURRENT` will be returned.
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/secrets/GetSecretBundle.go.html to see an example of how to use GetSecretBundle API. A default retry strategy applies to this operation GetSecretBundle()
func (SecretsClient) GetSecretBundleByName ¶
func (client SecretsClient) GetSecretBundleByName(ctx context.Context, request GetSecretBundleByNameRequest) (response GetSecretBundleByNameResponse, err error)
GetSecretBundleByName Gets a secret bundle by secret name and vault ID, and secret version that matches either the specified `stage`, `secretVersionName`, or `versionNumber` parameter. If none of these parameters are provided, the bundle for the secret version marked as `CURRENT` is returned.
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/secrets/GetSecretBundleByName.go.html to see an example of how to use GetSecretBundleByName API. A default retry strategy applies to this operation GetSecretBundleByName()
func (SecretsClient) ListSecretBundleVersions ¶
func (client SecretsClient) ListSecretBundleVersions(ctx context.Context, request ListSecretBundleVersionsRequest) (response ListSecretBundleVersionsResponse, err error)
ListSecretBundleVersions Lists all secret bundle versions for the specified secret.
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/secrets/ListSecretBundleVersions.go.html to see an example of how to use ListSecretBundleVersions API. A default retry strategy applies to this operation ListSecretBundleVersions()
func (*SecretsClient) SetRegion ¶
func (client *SecretsClient) SetRegion(region string)
SetRegion overrides the region of this client.