Typing¶
Concourse Tools contains a small number of additional types for easier resource development.
Warning
Although Concourse Tools is a typed library, the concoursetools.resource.ConcourseResource
class breaks the Liskov substitution principle. If you wish to utilise type hinting
in your development process, then please switch off the check for this type of method overloading.
Concourse Types¶
The following types map onto Concourse basic schemas used throughout the library.
- concoursetools.typing.ResourceConfig¶
Represents arbitrary configuration passed to a Concourse resource. See the config schema for more information.
- concoursetools.typing.Params¶
Represents arbitrary parameters passed to a Concourse resource. See the config schema for more information.
- concoursetools.typing.Metadata¶
Represents Step Metadata as used by Concourse Tools. Restrictions on key and value types are determined by
MetadataPair.
- concoursetools.typing.MetadataPair = <class 'concoursetools.typing.MetadataPair'>[source]¶
Represents Step Metadata as used internally by Concourse.
Restrictions on key and value types are determined by the Go structure itself.
Type Vars¶
- concoursetools.typing.TypedVersionT = ~TypedVersionT¶
Represents a generic
TypedVersionsubclass.
Protocols¶
- class concoursetools.typing.VersionProtocol(*args, **kwargs)[source]¶
Corresponds to a generic
Versionsubclass.
- class concoursetools.typing.TypedVersionProtocol(*args, **kwargs)[source]¶
Corresponds to a generic
TypedVersionsubclass.