dotnet

package
v0.3.1-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CsSln is the solution file extension
	CsSln = ".sln"

	// DefaultBaseImageVersion is the default base image version tag
	DefaultBaseImageVersion = "4.8"
)

Variables

View Source
var (
	// FourXPattern is the framework version pattern
	FourXPattern = regexp.MustCompile("v4*")
	// WebLib is the key library used in web applications
	WebLib = regexp.MustCompile("^System.Web*")
	// WebSLLib is the key library used in web sliverlight applications
	WebSLLib = regexp.MustCompile("Silverlight.js")
	// ProjBlockRegex pattern
	ProjBlockRegex = regexp.MustCompile(`(?m)^Project\([^,]+\s*,\s*\"([^,]+)\"`)
)

Functions

This section is empty.

Types

type AddKeys

type AddKeys struct {
	XMLName     xml.Name `xml:"add"`
	BaseAddress string   `xml:"baseAddress,attr"`
	Key         string   `xml:"key,attr"`
	Value       string   `xml:"value,attr"`
}

AddKeys defines the key list

type AppCfgSettings

type AppCfgSettings struct {
	XMLName xml.Name  `xml:"appSettings"`
	AddList []AddKeys `xml:"add"`
}

AppCfgSettings defines the settings

type AppConfig

type AppConfig struct {
	XMLName        xml.Name       `xml:"configuration"`
	Model          ServiceModel   `xml:"system.serviceModel"`
	AppCfgSettings AppCfgSettings `xml:"appSettings"`
}

AppConfig defines the app.config

type BaseAddresses

type BaseAddresses struct {
	XMLName xml.Name  `xml:"baseAddresses"`
	AddList []AddKeys `xml:"add"`
}

BaseAddresses defines list of base addresses

type CSProj

type CSProj struct {
	XMLName       xml.Name       `xml:"Project"`
	Sdk           string         `xml:"Sdk,attr"`
	PropertyGroup *PropertyGroup `xml:"PropertyGroup"`
	ItemGroups    []ItemGroup    `xml:"ItemGroup"`
}

CSProj defines the .csproj file

type Content

type Content struct {
	XMLName xml.Name `xml:"Content"`
	Include string   `xml:"Include,attr"`
}

Content defined in .csproj to define items used in the project

type Entries

type Entries map[string]string

Entries defines a pom.xml entry

func (Entries) MarshalXML

func (entries Entries) MarshalXML(e *xml.Encoder, start xml.StartElement) error

MarshalXML marshals XML

type Host

type Host struct {
	XMLName       xml.Name      `xml:"host"`
	BaseAddresses BaseAddresses `xml:"baseAddresses"`
}

Host defines a host exposed by service

type ItemGroup

type ItemGroup struct {
	XMLName    xml.Name    `xml:"ItemGroup"`
	References []Reference `xml:"Reference"`
	Contents   []Content   `xml:"Content"`
	None       []None      `xml:"None"`
}

ItemGroup is defined in .csproj file to list items used in the project

type None

type None struct {
	XMLName xml.Name `xml:"None"`
	Include string   `xml:"Include,attr"`
}

None is defined in .csproj to define items used in the project

type Properties

type Properties struct {
	Entries Entries
}

Properties defines pom.xml properties

func (*Properties) UnmarshalXML

func (p *Properties) UnmarshalXML(d *xml.Decoder, start xml.StartElement) (err error)

UnmarshalXML unmarshals XML

type PropertyGroup

type PropertyGroup struct {
	XMLName                xml.Name    `xml:"PropertyGroup"`
	Condition              string      `xml:"Condition,attr"`
	TargetFramework        string      `xml:"TargetFramework"`
	TargetFrameworkVersion string      `xml:"TargetFrameworkVersion"`
	Properties             *Properties `xml:"properties,omitempty"`
}

PropertyGroup is defined in .csproj file to list properties of the project

type Reference

type Reference struct {
	XMLName xml.Name `xml:"Reference"`
	Include string   `xml:"Include,attr"`
}

Reference is defined in .csproj file to list references of the project

type Service

type Service struct {
	XMLName xml.Name `xml:"service"`
	Host    Host     `xml:"host"`
}

Service defines a service property list

type ServiceModel

type ServiceModel struct {
	XMLName  xml.Name `xml:"system.serviceModel"`
	Services Services `xml:"services"`
}

ServiceModel defines list of service models

type Services

type Services struct {
	XMLName     xml.Name  `xml:"services"`
	ServiceList []Service `xml:"service"`
}

Services defines list of services

Jump to

Keyboard shortcuts

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