Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDistrosMap ¶ added in v1.0.157
Types ¶
type Defaulter ¶ added in v1.0.154
type Defaulter interface {
GetDefaultDistroNames() map[common.ProgrammingLanguage]string
}
func NewCommunityDefaulter ¶ added in v1.0.154
func NewCommunityDefaulter() Defaulter
type Getter ¶ added in v1.0.154
type Getter struct {
// contains filtered or unexported fields
}
func NewCommunityGetter ¶ added in v1.0.157
func (*Getter) GetAllDistros ¶ added in v1.0.158
func (g *Getter) GetAllDistros() []*distro.OtelDistro
GetAllDistros returns all the distributions available in the getter. used in the enterprise repo
func (*Getter) GetDistroByName ¶ added in v1.0.154
func (g *Getter) GetDistroByName(distroName string) *distro.OtelDistro
type Provider ¶ added in v1.0.154
func NewProvider ¶ added in v1.0.154
NewProvider creates a new distributions provider. A provider is a combination of a defaulter and a getter. The defaulter is used to get the default distro names for each programming language. The getter is used to get the distro object itself from the available distros.
A provider is constructed from a single defaulter and one or more getters. The getters are unioned together to create a single getter for the provider.
Each default distribution must be provided by at least one of the getters.
Click to show internal directories.
Click to hide internal directories.