Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContractImplementation ¶
type ContractImplementation struct {
Group string `json:"group"`
Version string `json:"version"`
Kind string `json:"kind"`
}
ContractImplementation is a resources that implements some contract
type SupportedContractImplementations ¶
type SupportedContractImplementations struct {
Name string `json:"name"`
Supported []ContractImplementation `json:"supported"`
}
SupportedContractImplementations defines a list of resources that implement a contract
type SupportedContractImplementationsList ¶
type SupportedContractImplementationsList []SupportedContractImplementations
SupportedContractImplementationsList is a list of contracts and their supported implementations
func ReadSupportContractsFile ¶
func ReadSupportContractsFile() (SupportedContractImplementationsList, error)
ReadSupportContractsFile reads the configuration file and returns a a list of contracts and their supported implementations
func (SupportedContractImplementationsList) IsSupported ¶
func (l SupportedContractImplementationsList) IsSupported(contract string, impl ContractImplementation) bool
func (SupportedContractImplementationsList) SupportedImplementations ¶
func (l SupportedContractImplementationsList) SupportedImplementations(contract string) []string
Click to show internal directories.
Click to hide internal directories.