compat

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2025 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)

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"`
	UseV2Flow          DotnetBoolean `json:"UseV2Flow"`
	ServerURLV2        string        `json:"ServerUrlV2"`
	UseRunnerAdminFlow DotnetBoolean `json:"UseRunnerAdminFlow,omitempty"`
}

type DotnetBoolean added in v0.12.1

type DotnetBoolean bool

func (*DotnetBoolean) UnmarshalJSON added in v0.12.1

func (b *DotnetBoolean) UnmarshalJSON(data []byte) error

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"`
	RequireFipsCryptography DotnetBoolean `json:"RequireFipsCryptography"`
}

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

Jump to

Keyboard shortcuts

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