compat

package
v0.6.10 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToBigInt

func BytesToBigInt(bytes []byte) *big.Int

func FromRsaParameters

func FromRsaParameters(param *DotnetRsaParameters) *rsa.PrivateKey

func FromRunnerInstance

func FromRunnerInstance(instance *runnerconfiguration.RunnerInstance, fileAccess ConfigFileAccess) error

func ParseJitRunnerConfig

func ParseJitRunnerConfig(conf string) (*runnerconfiguration.RunnerSettings, error)

func ToJitRunnerConfig

func ToJitRunnerConfig(instance *runnerconfiguration.RunnerInstance) (string, error)

func ToRunnerInstance

func ToRunnerInstance(fileAccess ConfigFileAccess) (*runnerconfiguration.RunnerInstance, error)

func ToXmlString

func ToXmlString(publicKey *rsa.PublicKey) (string, error)

Types

type ConfigFileAccess

type ConfigFileAccess interface {
	Read(name string, obj interface{}) error
	Write(name string, obj interface{}) error
}

type DefaultConfigFileAccess

type DefaultConfigFileAccess struct{}

func (DefaultConfigFileAccess) Read

func (config DefaultConfigFileAccess) Read(name string, obj interface{}) error

func (DefaultConfigFileAccess) Write

func (config DefaultConfigFileAccess) Write(name string, obj interface{}) error

type DotnetAgent

type DotnetAgent struct {
	AgentId       string `json:"AgentId"`
	AgentName     string `json:"AgentName"`
	DisableUpdate string `json:"DisableUpdate"`
	Ephemeral     string `json:"Ephemeral"`
	PoolId        string `json:"PoolId"`
	PoolName      string `json:"PoolName,omitempty"`
	ServerUrl     string `json:"ServerUrl"`
	WorkFolder    string `json:"WorkFolder"`
	GitHubUrl     string `json:"GitHubUrl"`
}

type DotnetCredentials

type DotnetCredentials struct {
	Scheme string                `json:"Scheme"`
	Data   DotnetCredentialsData `json:"Data"`
}

type DotnetCredentialsData

type DotnetCredentialsData struct {
	ClientId         string `json:"ClientId"`
	AuthorizationUrl string `json:"AuthorizationUrl"`
}

type DotnetRsaParameters

type DotnetRsaParameters struct {
	D        []byte `json:"d"`
	DP       []byte `json:"dp"`
	DQ       []byte `json:"dq"`
	Exponent []byte `json:"exponent"`
	InverseQ []byte `json:"inverseQ"`
	Modulus  []byte `json:"modulus"`
	P        []byte `json:"p"`
	Q        []byte `json:"q"`
}

func ToRsaParameters

func ToRsaParameters(key *rsa.PrivateKey) *DotnetRsaParameters

type JITConfigFileAccess

type JITConfigFileAccess map[string][]byte

func (JITConfigFileAccess) Read

func (config JITConfigFileAccess) Read(name string, obj interface{}) error

func (JITConfigFileAccess) Write

func (config JITConfigFileAccess) Write(name string, obj interface{}) error

type RSAKeyValue

type RSAKeyValue struct {
	Modulus  string
	Exponent string
}

Jump to

Keyboard shortcuts

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