Help us shape the future of Go! Take the 2026 Go Developer Survey

certificatehost

package
v0.84.4 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package certificatehost contains code to setup a Windows host for remote certificate testing

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	// Username for the test user to create
	Username string
	// Password for the test user
	Password string
	// CreateSelfSignedCert determines whether to create a self-signed certificate
	CreateSelfSignedCert bool
	// CertSubject is the subject for the self-signed certificate (defaults to "CN=test_cert")
	CertSubject string
	// PulumiResourceOptions are additional Pulumi resource options
	PulumiResourceOptions []pulumi.ResourceOption
}

Configuration defines the configuration for the certificate host setup

type Manager

type Manager struct {
	Resources []pulumi.Resource
	// contains filtered or unexported fields
}

Manager contains the resources to manage a certificate host setup

func NewCertificateHost

func NewCertificateHost(e *config.CommonEnvironment, host *remote.Host, options ...Option) (*Manager, error)

NewCertificateHost creates a new instance of the Certificate Host setup component This component configures a Windows host to allow remote certificate access via SMB and RemoteRegistry

type Option

type Option = func(*Configuration) error

Option is a function that modifies the Configuration

func WithPulumiResourceOptions

func WithPulumiResourceOptions(opts ...pulumi.ResourceOption) Option

WithPulumiResourceOptions sets the Pulumi resource options

func WithSelfSignedCert

func WithSelfSignedCert(subject string) Option

WithSelfSignedCert enables creation of a self-signed certificate

func WithUser

func WithUser(username, password string) Option

WithUser sets the username and password for the test user

Jump to

Keyboard shortcuts

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