Documentation
¶
Overview ¶
Copyright 2022 IBM Corp.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Constants
- func ConfigureContext(version string) func(context.Context, *schema.ResourceData) (any, diag.Diagnostics)
- func CreateResourceDataMock(data map[string]any) fp.ResourceData
- func DatasourceAttestation() *schema.Resource
- func DatasourceEncryptionCertificate() *schema.Resource
- func DatasourceEncryptionCertificates() *schema.Resource
- func DatasourceImage() *schema.Resource
- func ResourceContractEncrypted() *schema.Resource
- func ResourceJSON() *schema.Resource
- func ResourceJSONEncrypted() *schema.Resource
- func ResourceText() *schema.Resource
- func ResourceTextEncrypted() *schema.Resource
- func ResourceTgz() *schema.Resource
- func ResourceTgzEncrypted() *schema.Resource
- type Context
- type Image
- type ImageVersion
- type ResourceDataE
- type ResourceLifeCycle
Constants ¶
const ( // template key KeyMajor = "Major" KeyMinor = "Minor" KeyPatch = "Patch" )
Variables ¶
This section is empty.
Functions ¶
func ConfigureContext ¶
func ConfigureContext(version string) func(context.Context, *schema.ResourceData) (any, diag.Diagnostics)
func CreateResourceDataMock ¶
func CreateResourceDataMock(data map[string]any) fp.ResourceData
func DatasourceAttestation ¶ added in v0.1.6
DatasourceAttestation is a data source to work with HPCR attestation records
func DatasourceEncryptionCertificate ¶ added in v0.1.11
DatasourceEncryptionCertificate is a data source to select a certificate from a map, where the key is the version and the value the certificate
func DatasourceEncryptionCertificates ¶ added in v0.1.11
DatasourceEncryptionCertificates is a data source to download encryption certificates from an official location
func DatasourceImage ¶
func ResourceJSON ¶
func ResourceJSONEncrypted ¶
func ResourceText ¶
func ResourceTextEncrypted ¶
func ResourceTgz ¶
func ResourceTgzEncrypted ¶
Types ¶
type Context ¶
type Context struct { encrypt.Encryption encrypt.Decryption // contains filtered or unexported fields }
type ResourceLifeCycle ¶
type ResourceLifeCycle = T.Tuple3[func(*schema.ResourceData, any) error, func(*schema.ResourceData, any) error, func(*schema.ResourceData, any) error]