config

package
v0.0.0-...-5211f53 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromReader

func FromReader(reader io.Reader) *parser

Types

type Config

type Config struct {
	Track1Requests  Track1ReleaseRequests `json:"track1Requests,omitempty"`
	Track2Requests  Track2ReleaseRequests `json:"track2Requests,omitempty"`
	RefreshInfo     RefreshInfo           `json:"refresh,omitempty"`
	AdditionalFlags []string              `json:"additionalOptions,omitempty"`
}

func ParseConfig

func ParseConfig(path string) (*Config, error)

func (Config) AdditionalOptions

func (c Config) AdditionalOptions() ([]model.Option, error)

func (Config) String

func (c Config) String() string

type RefreshInfo

type RefreshInfo struct {
	// AdditionalFlags are the additional options that will be used in the general refresh
	AdditionalFlags []string `json:"additionalOptions,omitempty"`
	// Packages are the full package identifier of the packages to refresh, eg 'github.com/Azure/azure-sdk-for-go/services/preview/securityinsight/mgmt/2019-01-01-preview/securityinsight'
	Packages []string `json:"packages,omitempty"`
}

func (RefreshInfo) AdditionalOptions

func (r RefreshInfo) AdditionalOptions() ([]model.Option, error)

func (RefreshInfo) RelativePackages

func (r RefreshInfo) RelativePackages() []string

func (RefreshInfo) String

func (r RefreshInfo) String() string

type ReleaseRequestInfo

type ReleaseRequestInfo struct {
	TargetDate  *time.Time `json:"targetDate,omitempty"`
	RequestLink string     `json:"requestLink,omitempty"`
}

func (ReleaseRequestInfo) HasTargetDate

func (info ReleaseRequestInfo) HasTargetDate() bool

func (ReleaseRequestInfo) String

func (info ReleaseRequestInfo) String() string

type TagForRelease

type TagForRelease map[string][]ReleaseRequestInfo

func (TagForRelease) Add

func (c TagForRelease) Add(tag string, info ReleaseRequestInfo)

func (TagForRelease) Contains

func (c TagForRelease) Contains(tag string) bool

type Track1ReleaseRequests

type Track1ReleaseRequests map[string]TagForRelease

func (Track1ReleaseRequests) Add

func (c Track1ReleaseRequests) Add(readme, tag string, info ReleaseRequestInfo)

func (Track1ReleaseRequests) Contains

func (c Track1ReleaseRequests) Contains(readme string) bool

func (Track1ReleaseRequests) String

func (c Track1ReleaseRequests) String() string

type Track2ReleaseRequests

type Track2ReleaseRequests map[string][]Track2Request

func (Track2ReleaseRequests) Add

func (c Track2ReleaseRequests) Add(readme string, info Track2Request)

func (Track2ReleaseRequests) Contains

func (c Track2ReleaseRequests) Contains(readme string) bool

func (Track2ReleaseRequests) String

func (c Track2ReleaseRequests) String() string

type Track2Request

type Track2Request struct {
	ReleaseRequestInfo
	PackageFlag string `json:"packageFlag,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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