contracts

package
v1.1.13 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

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 (SupportedContractImplementationsList) SupportedImplementations

func (l SupportedContractImplementationsList) SupportedImplementations(contract string) []string

Jump to

Keyboard shortcuts

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