device_collection

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewResource

func NewResource() resource.Resource

Types

type AWSDevice

type AWSDevice struct {
	Accounts          types.Set  `tfsdk:"accounts"`
	DisableCustomSANs types.Bool `tfsdk:"disable_custom_sans"`
}

type AzureDevice

type AzureDevice struct {
	TenantID          types.String `tfsdk:"tenant_id"`
	ResourceGroups    types.Set    `tfsdk:"resource_groups"`
	DisableCustomSANs types.Bool   `tfsdk:"disable_custom_sans"`
	Audience          types.String `tfsdk:"audience"`
}

type GCPDevice

type GCPDevice struct {
	ServiceAccounts   types.Set  `tfsdk:"service_accounts"`
	ProjectIDs        types.Set  `tfsdk:"project_ids"`
	DisableCustomSANs types.Bool `tfsdk:"disable_custom_sans"`
}

type Model

type Model struct {
	Slug        types.String `tfsdk:"slug"`
	AuthorityID types.String `tfsdk:"authority_id"`
	DisplayName types.String `tfsdk:"display_name"`
	DeviceType  types.String `tfsdk:"device_type"`
	AWSDevice   *AWSDevice   `tfsdk:"aws_vm"`
	GCPDevice   *GCPDevice   `tfsdk:"gcp_vm"`
	AzureDevice *AzureDevice `tfsdk:"azure_vm"`
	TPMDevice   *TPMDevice   `tfsdk:"tpm"`
}

type Resource

type Resource struct {
	// contains filtered or unexported fields
}

Resource defines the resource implementation.

func (*Resource) Configure

Configure adds the Smallstep API client to the resource.

func (*Resource) Create

func (*Resource) Delete

func (*Resource) Metadata

func (*Resource) Read

func (*Resource) Schema

func (*Resource) Update

type TPMDevice

type TPMDevice struct {
	AttestorIntermediates types.String `tfsdk:"attestor_intermediates"`
	AttestorRoots         types.String `tfsdk:"attestor_roots"`
	ForceCN               types.Bool   `tfsdk:"force_cn"`
	RequireEAB            types.Bool   `tfsdk:"require_eab"`
}

Jump to

Keyboard shortcuts

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