datasource

package
v0.2.18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2023 License: Apache-2.0 Imports: 37 Imported by: 0

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

View Source
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

func DatasourceAttestation() *schema.Resource

DatasourceAttestation is a data source to work with HPCR attestation records

func DatasourceEncryptionCertificate added in v0.1.11

func DatasourceEncryptionCertificate() *schema.Resource

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

func DatasourceEncryptionCertificates() *schema.Resource

DatasourceEncryptionCertificates is a data source to download encryption certificates from an official location

func DatasourceImage

func DatasourceImage() *schema.Resource

func ResourceContractEncrypted

func ResourceContractEncrypted() *schema.Resource

func ResourceJSON

func ResourceJSON() *schema.Resource

func ResourceJSONEncrypted

func ResourceJSONEncrypted() *schema.Resource

func ResourceText

func ResourceText() *schema.Resource

func ResourceTextEncrypted

func ResourceTextEncrypted() *schema.Resource

func ResourceTgz

func ResourceTgz() *schema.Resource

func ResourceTgzEncrypted

func ResourceTgzEncrypted() *schema.Resource

Types

type Context

type Context struct {
	encrypt.Encryption
	encrypt.Decryption
	// contains filtered or unexported fields
}

type Image

type Image struct {
	Architecture string `json:"architecture"`
	ID           string `json:"id"`
	Name         string `json:"name"`
	OS           string `json:"os"`
	Status       string `json:"status"`
	Visibility   string `json:"visibility"`
	Checksum     string `json:"checksum"`
}

type ImageVersion

type ImageVersion struct {
	ID       string
	Checksum string
	Version  *semver.Version
}

type ResourceDataE

type ResourceDataE = E.Either[error, fp.ResourceData]

shortcuts

type ResourceLifeCycle

type ResourceLifeCycle = T.Tuple3[func(*schema.ResourceData, any) error, func(*schema.ResourceData, any) error, func(*schema.ResourceData, any) error]

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL