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.Env, 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)
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