iis

package
v0.0.0-...-3e65a16 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package iis contains code for the IIS component

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithSite

func WithSite(site SiteDefinition) func(*Configuration) error

WithSite adds a site to create

Types

type Component

type Component struct {
	pulumi.ResourceState
	components.Component
	// contains filtered or unexported fields
}

Component represent an IIServer and its sites. See https://www.pulumi.com/docs/concepts/resources/components/

func NewServer

func NewServer(ctx *pulumi.Context, e *config.CommonEnvironment, host *remote.Host, options ...Option) (*Component, error)

NewServer creates a new IIS server component. Example usage:

iisServer, err := iis.NewServer(ctx, awsEnv.CommonEnvironment, vm,
	iis.WithSite(iis.SiteDefinition{
		Name:            "TestSite1",
		BindingPort:     "*:8081:",
		SourceAssetsDir: srcDir,
	}),
)
if err != nil {
	return err
}
err = iisServer.Export(ctx, env.IISServer)

func (*Component) Export

func (c *Component) Export(ctx *pulumi.Context, out *Output) error

Export registers a key and value pair with the current context's stack.

type Configuration

type Configuration struct {
	Sites []SiteDefinition
}

Configuration represents the Active Directory configuration (domain name, password, users etc...)

type Option

type Option = func(*Configuration) error

Option is an optional function parameter type for Configuration options

type Output

type Output struct {
	components.JSONImporter
}

Output is an object that models the output of the resource creation from the Component. See https://www.pulumi.com/docs/concepts/resources/components/#registering-component-outputs

type SiteDefinition

type SiteDefinition struct {
	Name            string //  name of the site
	BindingPort     string // port to bind to, of the form '*:8081'
	SourceAssetsDir string // directory to copy the assets from on the local host
	TargetAssetsDir string // directory to copy the assets to on the remote host
}

SiteDefinition represents an IIS site definition

Jump to

Keyboard shortcuts

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