api

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: Apache-2.0 Imports: 13 Imported by: 8

Documentation

Index

Constants

View Source
const (
	SCHEMA_ID_REGEX   = `^https://cdevents.dev/([0-9]\.[0-9])\.[0-9]/schema/([^ ]*)$`
	CustomEventMapKey = "custom"
)
View Source
const (
	EventTypeRoot                   = "dev.cdevents"
	CustomEventTypeRoot             = "dev.cdeventsx"
	CDEventsSchemaURLTemplate       = "https://cdevents.dev/%s/schema/%s-%s-event"
	CDEventsCustomSchemaURLTemplate = "https://cdevents.dev/%s/schema/custom"
	CDEventsTypeRegex               = "^dev\\.cdevents\\.(?P<subject>[a-z]+)\\.(?P<predicate>[a-z]+)\\.(?P<version>.*)$"
	CDEventsCustomTypeRegex         = "^dev\\.cdeventsx\\.(?P<tool>[a-z]+)-(?P<subject>[a-z]+)\\.(?P<predicate>[a-z]+)\\.(?P<version>.*)$"

	LinkTypePath     LinkType = "PATH"
	LinkTypeEnd      LinkType = "END"
	LinkTypeRelation LinkType = "RELATION"
)

Variables

View Source
var (
	CDEventsTypeCRegex       = regexp.MustCompile(CDEventsTypeRegex)
	CDEventsCustomTypeCRegex = regexp.MustCompile(CDEventsCustomTypeRegex)
	LinkTypes                = map[LinkType]interface{}{
		LinkTypePath:     "",
		LinkTypeEnd:      "",
		LinkTypeRelation: "",
	}
)
View Source
var (
	CDEventsSchemaIdRegex = regexp.MustCompile(SCHEMA_ID_REGEX)
)

Functions

func AsCloudEvent

func AsCloudEvent(event CDEventReader) (*cloudevents.Event, error)

AsCloudEvent renders a CDEvent as a CloudEvent

func AsJsonBytes added in v0.2.0

func AsJsonBytes(event CDEventReader) ([]byte, error)

AsJsonBytes renders a CDEvent as a JSON string

func AsJsonString

func AsJsonString(event CDEventReader) (string, error)

AsJsonString renders a CDEvent as a JSON string

func CheckCustomData added in v0.2.0

func CheckCustomData(contentType string, data interface{}) error

Used to implement SetCustomData()

func GetCustomData added in v0.2.0

func GetCustomData(contentType string, data interface{}) (interface{}, error)

Used to implement type specific GetCustomData()

func GetCustomDataAs added in v0.2.0

func GetCustomDataAs(e CDEventReader, receiver interface{}) error

Used to implement type specific GetCustomDataAs()

func GetCustomDataRaw added in v0.2.0

func GetCustomDataRaw(contentType string, data interface{}) ([]byte, error)

Used to implement type specific GetCustomDataRaw()

func LoadJsonSchema added in v0.4.1

func LoadJsonSchema(schemaId string, schema []byte) error

LoadJsonSchema compiles and loads a JSON schema in []byte format into the sdk custom JSON schema databased. Returns an error if the schema cannot be compiled. If the schemaId already exists, the previous schema definition is overwritten.

func NewFromJsonBytesContext added in v0.4.1

func NewFromJsonBytesContext[CDEventType CDEvent](event []byte, cdeventsMap map[string]CDEventType) (CDEventType, error)

NewFromJsonBytesContext[ContextType] builds a new CDEventReader from a JSON string as []bytes This works by unmarshalling the context first, extracting the event type and using that to unmarshal the rest of the event into the correct object. `ContextType` defines the type of Context that can be used to unmarshal the event.

func Validate

func Validate(event CDEventReader) error

Validate checks the CDEvent against the JSON schema and validate constraints

func ValidateEventType

func ValidateEventType(sl validator.StructLevel)

func ValidateLinkType added in v0.4.1

func ValidateLinkType(fl validator.FieldLevel) bool

func ValidatePurl

func ValidatePurl(fl validator.FieldLevel) bool

func ValidateUriReference

func ValidateUriReference(fl validator.FieldLevel) bool

Types

type ArtifactDeletedEventV0_1_0 added in v0.4.1

type ArtifactDeletedEventV0_1_0 struct {
	Context ContextV04                   `json:"context"`
	Subject ArtifactDeletedSubjectV0_1_0 `json:"subject"`
	CDEventCustomData
}

func NewArtifactDeletedEventV0_1_0 added in v0.4.1

func NewArtifactDeletedEventV0_1_0(specVersion string) (*ArtifactDeletedEventV0_1_0, error)

New creates a new ArtifactDeletedEventV0_1_0

func (ArtifactDeletedEventV0_1_0) GetChainId added in v0.4.1

func (e ArtifactDeletedEventV0_1_0) GetChainId() string

func (ArtifactDeletedEventV0_1_0) GetCustomData added in v0.4.1

func (e ArtifactDeletedEventV0_1_0) GetCustomData() (interface{}, error)

func (ArtifactDeletedEventV0_1_0) GetCustomDataAs added in v0.4.1

func (e ArtifactDeletedEventV0_1_0) GetCustomDataAs(receiver interface{}) error

func (ArtifactDeletedEventV0_1_0) GetCustomDataContentType added in v0.4.1

func (e ArtifactDeletedEventV0_1_0) GetCustomDataContentType() string

func (ArtifactDeletedEventV0_1_0) GetCustomDataRaw added in v0.4.1

func (e ArtifactDeletedEventV0_1_0) GetCustomDataRaw() ([]byte, error)

func (ArtifactDeletedEventV0_1_0) GetCustomSchema added in v0.4.1

func (e ArtifactDeletedEventV0_1_0) GetCustomSchema() (*jsonschema.Schema, error)

GetCustomSchema looks up the SchemaUri, if any is defined. If none is defined, it returns nil. If it's defined and cannot be found, it returns an error.

func (ArtifactDeletedEventV0_1_0) GetId added in v0.4.1

func (ArtifactDeletedEventV0_1_0) GetSchema added in v0.4.1

func (ArtifactDeletedEventV0_1_0) GetSchemaUri added in v0.4.1

func (e ArtifactDeletedEventV0_1_0) GetSchemaUri() string

func (ArtifactDeletedEventV0_1_0) GetSource added in v0.4.1

func (e ArtifactDeletedEventV0_1_0) GetSource() string

func (ArtifactDeletedEventV0_1_0) GetSubject added in v0.4.1

func (e ArtifactDeletedEventV0_1_0) GetSubject() Subject

func (ArtifactDeletedEventV0_1_0) GetSubjectContent added in v0.4.1

func (e ArtifactDeletedEventV0_1_0) GetSubjectContent() interface{}

func (ArtifactDeletedEventV0_1_0) GetSubjectId added in v0.4.1

func (e ArtifactDeletedEventV0_1_0) GetSubjectId() string

func (ArtifactDeletedEventV0_1_0) GetSubjectSource added in v0.4.1

func (e ArtifactDeletedEventV0_1_0) GetSubjectSource() string

func (ArtifactDeletedEventV0_1_0) GetTimestamp added in v0.4.1

func (e ArtifactDeletedEventV0_1_0) GetTimestamp() time.Time

func (ArtifactDeletedEventV0_1_0) GetType added in v0.4.1

func (ArtifactDeletedEventV0_1_0) GetVersion added in v0.4.1

func (e ArtifactDeletedEventV0_1_0) GetVersion() string

func (*ArtifactDeletedEventV0_1_0) SetChainId added in v0.4.1

func (e *ArtifactDeletedEventV0_1_0) SetChainId(chainId string)

func (*ArtifactDeletedEventV0_1_0) SetCustomData added in v0.4.1

func (e *ArtifactDeletedEventV0_1_0) SetCustomData(contentType string, data interface{}) error

func (*ArtifactDeletedEventV0_1_0) SetId added in v0.4.1

func (e *ArtifactDeletedEventV0_1_0) SetId(id string)

func (*ArtifactDeletedEventV0_1_0) SetSchemaUri added in v0.4.1

func (e *ArtifactDeletedEventV0_1_0) SetSchemaUri(schema string)

func (*ArtifactDeletedEventV0_1_0) SetSource added in v0.4.1

func (e *ArtifactDeletedEventV0_1_0) SetSource(source string)

func (*ArtifactDeletedEventV0_1_0) SetSubjectId added in v0.4.1

func (e *ArtifactDeletedEventV0_1_0) SetSubjectId(subjectId string)

func (*ArtifactDeletedEventV0_1_0) SetSubjectSource added in v0.4.1

func (e *ArtifactDeletedEventV0_1_0) SetSubjectSource(subjectSource string)

func (*ArtifactDeletedEventV0_1_0) SetSubjectUser added in v0.4.1

func (e *ArtifactDeletedEventV0_1_0) SetSubjectUser(user string)

func (*ArtifactDeletedEventV0_1_0) SetTimestamp added in v0.4.1

func (e *ArtifactDeletedEventV0_1_0) SetTimestamp(timestamp time.Time)

type ArtifactDeletedSubjectContentV0_1_0 added in v0.4.1

type ArtifactDeletedSubjectContentV0_1_0 struct {
	User string `json:"user,omitempty"`
}

type ArtifactDeletedSubjectV0_1_0 added in v0.4.1

type ArtifactDeletedSubjectV0_1_0 struct {
	SubjectBase
	Content ArtifactDeletedSubjectContentV0_1_0 `json:"content"`
}

func (ArtifactDeletedSubjectV0_1_0) GetSubjectType added in v0.4.1

func (sc ArtifactDeletedSubjectV0_1_0) GetSubjectType() SubjectType

type ArtifactDownloadedEventV0_1_0 added in v0.4.1

type ArtifactDownloadedEventV0_1_0 struct {
	Context ContextV04                      `json:"context"`
	Subject ArtifactDownloadedSubjectV0_1_0 `json:"subject"`
	CDEventCustomData
}

func NewArtifactDownloadedEventV0_1_0 added in v0.4.1

func NewArtifactDownloadedEventV0_1_0(specVersion string) (*ArtifactDownloadedEventV0_1_0, error)

New creates a new ArtifactDownloadedEventV0_1_0

func (ArtifactDownloadedEventV0_1_0) GetChainId added in v0.4.1

func (e ArtifactDownloadedEventV0_1_0) GetChainId() string

func (ArtifactDownloadedEventV0_1_0) GetCustomData added in v0.4.1

func (e ArtifactDownloadedEventV0_1_0) GetCustomData() (interface{}, error)

func (ArtifactDownloadedEventV0_1_0) GetCustomDataAs added in v0.4.1

func (e ArtifactDownloadedEventV0_1_0) GetCustomDataAs(receiver interface{}) error

func (ArtifactDownloadedEventV0_1_0) GetCustomDataContentType added in v0.4.1

func (e ArtifactDownloadedEventV0_1_0) GetCustomDataContentType() string

func (ArtifactDownloadedEventV0_1_0) GetCustomDataRaw added in v0.4.1

func (e ArtifactDownloadedEventV0_1_0) GetCustomDataRaw() ([]byte, error)

func (ArtifactDownloadedEventV0_1_0) GetCustomSchema added in v0.4.1

func (e ArtifactDownloadedEventV0_1_0) GetCustomSchema() (*jsonschema.Schema, error)

GetCustomSchema looks up the SchemaUri, if any is defined. If none is defined, it returns nil. If it's defined and cannot be found, it returns an error.

func (ArtifactDownloadedEventV0_1_0) GetId added in v0.4.1

func (ArtifactDownloadedEventV0_1_0) GetSchema added in v0.4.1

func (ArtifactDownloadedEventV0_1_0) GetSchemaUri added in v0.4.1

func (e ArtifactDownloadedEventV0_1_0) GetSchemaUri() string

func (ArtifactDownloadedEventV0_1_0) GetSource added in v0.4.1

func (e ArtifactDownloadedEventV0_1_0) GetSource() string

func (ArtifactDownloadedEventV0_1_0) GetSubject added in v0.4.1

func (e ArtifactDownloadedEventV0_1_0) GetSubject() Subject

func (ArtifactDownloadedEventV0_1_0) GetSubjectContent added in v0.4.1

func (e ArtifactDownloadedEventV0_1_0) GetSubjectContent() interface{}

func (ArtifactDownloadedEventV0_1_0) GetSubjectId added in v0.4.1

func (e ArtifactDownloadedEventV0_1_0) GetSubjectId() string

func (ArtifactDownloadedEventV0_1_0) GetSubjectSource added in v0.4.1

func (e ArtifactDownloadedEventV0_1_0) GetSubjectSource() string

func (ArtifactDownloadedEventV0_1_0) GetTimestamp added in v0.4.1

func (e ArtifactDownloadedEventV0_1_0) GetTimestamp() time.Time

func (ArtifactDownloadedEventV0_1_0) GetType added in v0.4.1

func (ArtifactDownloadedEventV0_1_0) GetVersion added in v0.4.1

func (e ArtifactDownloadedEventV0_1_0) GetVersion() string

func (*ArtifactDownloadedEventV0_1_0) SetChainId added in v0.4.1

func (e *ArtifactDownloadedEventV0_1_0) SetChainId(chainId string)

func (*ArtifactDownloadedEventV0_1_0) SetCustomData added in v0.4.1

func (e *ArtifactDownloadedEventV0_1_0) SetCustomData(contentType string, data interface{}) error

func (*ArtifactDownloadedEventV0_1_0) SetId added in v0.4.1

func (*ArtifactDownloadedEventV0_1_0) SetSchemaUri added in v0.4.1

func (e *ArtifactDownloadedEventV0_1_0) SetSchemaUri(schema string)

func (*ArtifactDownloadedEventV0_1_0) SetSource added in v0.4.1

func (e *ArtifactDownloadedEventV0_1_0) SetSource(source string)

func (*ArtifactDownloadedEventV0_1_0) SetSubjectId added in v0.4.1

func (e *ArtifactDownloadedEventV0_1_0) SetSubjectId(subjectId string)

func (*ArtifactDownloadedEventV0_1_0) SetSubjectSource added in v0.4.1

func (e *ArtifactDownloadedEventV0_1_0) SetSubjectSource(subjectSource string)

func (*ArtifactDownloadedEventV0_1_0) SetSubjectUser added in v0.4.1

func (e *ArtifactDownloadedEventV0_1_0) SetSubjectUser(user string)

func (*ArtifactDownloadedEventV0_1_0) SetTimestamp added in v0.4.1

func (e *ArtifactDownloadedEventV0_1_0) SetTimestamp(timestamp time.Time)

type ArtifactDownloadedSubjectContentV0_1_0 added in v0.4.1

type ArtifactDownloadedSubjectContentV0_1_0 struct {
	User string `json:"user,omitempty"`
}

type ArtifactDownloadedSubjectV0_1_0 added in v0.4.1

type ArtifactDownloadedSubjectV0_1_0 struct {
	SubjectBase
	Content ArtifactDownloadedSubjectContentV0_1_0 `json:"content"`
}

func (ArtifactDownloadedSubjectV0_1_0) GetSubjectType added in v0.4.1

func (sc ArtifactDownloadedSubjectV0_1_0) GetSubjectType() SubjectType

type ArtifactPackagedEventV0_1_1 added in v0.4.1

type ArtifactPackagedEventV0_1_1 struct {
	Context Context                       `json:"context"`
	Subject ArtifactPackagedSubjectV0_1_1 `json:"subject"`
	CDEventCustomData
}

func NewArtifactPackagedEventV0_1_1 added in v0.4.1

func NewArtifactPackagedEventV0_1_1(specVersion string) (*ArtifactPackagedEventV0_1_1, error)

New creates a new ArtifactPackagedEventV0_1_1

func (ArtifactPackagedEventV0_1_1) GetCustomData added in v0.4.1

func (e ArtifactPackagedEventV0_1_1) GetCustomData() (interface{}, error)

func (ArtifactPackagedEventV0_1_1) GetCustomDataAs added in v0.4.1

func (e ArtifactPackagedEventV0_1_1) GetCustomDataAs(receiver interface{}) error

func (ArtifactPackagedEventV0_1_1) GetCustomDataContentType added in v0.4.1

func (e ArtifactPackagedEventV0_1_1) GetCustomDataContentType() string

func (ArtifactPackagedEventV0_1_1) GetCustomDataRaw added in v0.4.1

func (e ArtifactPackagedEventV0_1_1) GetCustomDataRaw() ([]byte, error)

func (ArtifactPackagedEventV0_1_1) GetId added in v0.4.1

func (ArtifactPackagedEventV0_1_1) GetSchema added in v0.4.1

func (ArtifactPackagedEventV0_1_1) GetSource added in v0.4.1

func (e ArtifactPackagedEventV0_1_1) GetSource() string

func (ArtifactPackagedEventV0_1_1) GetSubject added in v0.4.1

func (e ArtifactPackagedEventV0_1_1) GetSubject() Subject

func (ArtifactPackagedEventV0_1_1) GetSubjectContent added in v0.4.1

func (e ArtifactPackagedEventV0_1_1) GetSubjectContent() interface{}

func (ArtifactPackagedEventV0_1_1) GetSubjectId added in v0.4.1

func (e ArtifactPackagedEventV0_1_1) GetSubjectId() string

func (ArtifactPackagedEventV0_1_1) GetSubjectSource added in v0.4.1

func (e ArtifactPackagedEventV0_1_1) GetSubjectSource() string

func (ArtifactPackagedEventV0_1_1) GetTimestamp added in v0.4.1

func (e ArtifactPackagedEventV0_1_1) GetTimestamp() time.Time

func (ArtifactPackagedEventV0_1_1) GetType added in v0.4.1

func (ArtifactPackagedEventV0_1_1) GetVersion added in v0.4.1

func (e ArtifactPackagedEventV0_1_1) GetVersion() string

func (*ArtifactPackagedEventV0_1_1) SetCustomData added in v0.4.1

func (e *ArtifactPackagedEventV0_1_1) SetCustomData(contentType string, data interface{}) error

func (*ArtifactPackagedEventV0_1_1) SetId added in v0.4.1

func (e *ArtifactPackagedEventV0_1_1) SetId(id string)

func (*ArtifactPackagedEventV0_1_1) SetSource added in v0.4.1

func (e *ArtifactPackagedEventV0_1_1) SetSource(source string)

func (*ArtifactPackagedEventV0_1_1) SetSubjectChange added in v0.4.1

func (e *ArtifactPackagedEventV0_1_1) SetSubjectChange(change *Reference)

func (*ArtifactPackagedEventV0_1_1) SetSubjectId added in v0.4.1

func (e *ArtifactPackagedEventV0_1_1) SetSubjectId(subjectId string)

func (*ArtifactPackagedEventV0_1_1) SetSubjectSource added in v0.4.1

func (e *ArtifactPackagedEventV0_1_1) SetSubjectSource(subjectSource string)

func (*ArtifactPackagedEventV0_1_1) SetTimestamp added in v0.4.1

func (e *ArtifactPackagedEventV0_1_1) SetTimestamp(timestamp time.Time)

type ArtifactPackagedEventV0_2_0 added in v0.4.1

type ArtifactPackagedEventV0_2_0 struct {
	Context ContextV04                    `json:"context"`
	Subject ArtifactPackagedSubjectV0_2_0 `json:"subject"`
	CDEventCustomData
}

func NewArtifactPackagedEventV0_2_0 added in v0.4.1

func NewArtifactPackagedEventV0_2_0(specVersion string) (*ArtifactPackagedEventV0_2_0, error)

New creates a new ArtifactPackagedEventV0_2_0

func (ArtifactPackagedEventV0_2_0) GetChainId added in v0.4.1

func (e ArtifactPackagedEventV0_2_0) GetChainId() string

func (ArtifactPackagedEventV0_2_0) GetCustomData added in v0.4.1

func (e ArtifactPackagedEventV0_2_0) GetCustomData() (interface{}, error)

func (ArtifactPackagedEventV0_2_0) GetCustomDataAs added in v0.4.1

func (e ArtifactPackagedEventV0_2_0) GetCustomDataAs(receiver interface{}) error

func (ArtifactPackagedEventV0_2_0) GetCustomDataContentType added in v0.4.1

func (e ArtifactPackagedEventV0_2_0) GetCustomDataContentType() string

func (ArtifactPackagedEventV0_2_0) GetCustomDataRaw added in v0.4.1

func (e ArtifactPackagedEventV0_2_0) GetCustomDataRaw() ([]byte, error)

func (ArtifactPackagedEventV0_2_0) GetCustomSchema added in v0.4.1

func (e ArtifactPackagedEventV0_2_0) GetCustomSchema() (*jsonschema.Schema, error)

GetCustomSchema looks up the SchemaUri, if any is defined. If none is defined, it returns nil. If it's defined and cannot be found, it returns an error.

func (ArtifactPackagedEventV0_2_0) GetId added in v0.4.1

func (ArtifactPackagedEventV0_2_0) GetSchema added in v0.4.1

func (ArtifactPackagedEventV0_2_0) GetSchemaUri added in v0.4.1

func (e ArtifactPackagedEventV0_2_0) GetSchemaUri() string

func (ArtifactPackagedEventV0_2_0) GetSource added in v0.4.1

func (e ArtifactPackagedEventV0_2_0) GetSource() string

func (ArtifactPackagedEventV0_2_0) GetSubject added in v0.4.1

func (e ArtifactPackagedEventV0_2_0) GetSubject() Subject

func (ArtifactPackagedEventV0_2_0) GetSubjectContent added in v0.4.1

func (e ArtifactPackagedEventV0_2_0) GetSubjectContent() interface{}

func (ArtifactPackagedEventV0_2_0) GetSubjectId added in v0.4.1

func (e ArtifactPackagedEventV0_2_0) GetSubjectId() string

func (ArtifactPackagedEventV0_2_0) GetSubjectSource added in v0.4.1

func (e ArtifactPackagedEventV0_2_0) GetSubjectSource() string

func (ArtifactPackagedEventV0_2_0) GetTimestamp added in v0.4.1

func (e ArtifactPackagedEventV0_2_0) GetTimestamp() time.Time

func (ArtifactPackagedEventV0_2_0) GetType added in v0.4.1

func (ArtifactPackagedEventV0_2_0) GetVersion added in v0.4.1

func (e ArtifactPackagedEventV0_2_0) GetVersion() string

func (*ArtifactPackagedEventV0_2_0) SetChainId added in v0.4.1

func (e *ArtifactPackagedEventV0_2_0) SetChainId(chainId string)

func (*ArtifactPackagedEventV0_2_0) SetCustomData added in v0.4.1

func (e *ArtifactPackagedEventV0_2_0) SetCustomData(contentType string, data interface{}) error

func (*ArtifactPackagedEventV0_2_0) SetId added in v0.4.1

func (e *ArtifactPackagedEventV0_2_0) SetId(id string)

func (*ArtifactPackagedEventV0_2_0) SetSchemaUri added in v0.4.1

func (e *ArtifactPackagedEventV0_2_0) SetSchemaUri(schema string)

func (*ArtifactPackagedEventV0_2_0) SetSource added in v0.4.1

func (e *ArtifactPackagedEventV0_2_0) SetSource(source string)

func (*ArtifactPackagedEventV0_2_0) SetSubjectChange added in v0.4.1

func (e *ArtifactPackagedEventV0_2_0) SetSubjectChange(change *Reference)

func (*ArtifactPackagedEventV0_2_0) SetSubjectId added in v0.4.1

func (e *ArtifactPackagedEventV0_2_0) SetSubjectId(subjectId string)

func (*ArtifactPackagedEventV0_2_0) SetSubjectSbom added in v0.4.1

func (*ArtifactPackagedEventV0_2_0) SetSubjectSource added in v0.4.1

func (e *ArtifactPackagedEventV0_2_0) SetSubjectSource(subjectSource string)

func (*ArtifactPackagedEventV0_2_0) SetTimestamp added in v0.4.1

func (e *ArtifactPackagedEventV0_2_0) SetTimestamp(timestamp time.Time)

type ArtifactPackagedSubjectContentSbomV0_2_0 added in v0.4.1

type ArtifactPackagedSubjectContentSbomV0_2_0 struct {
	Uri string `json:"uri"`
}

ArtifactPackagedSubjectContentSbomV0_2_0 holds the content of a Sbom field in the content

type ArtifactPackagedSubjectContentV0_1_1 added in v0.4.1

type ArtifactPackagedSubjectContentV0_1_1 struct {
	Change *Reference `json:"change"`
}

type ArtifactPackagedSubjectContentV0_2_0 added in v0.4.1

type ArtifactPackagedSubjectContentV0_2_0 struct {
	Change *Reference `json:"change"`

	Sbom *ArtifactPackagedSubjectContentSbomV0_2_0 `json:"sbom,omitempty"`
}

type ArtifactPackagedSubjectV0_1_1 added in v0.4.1

type ArtifactPackagedSubjectV0_1_1 struct {
	SubjectBase
	Content ArtifactPackagedSubjectContentV0_1_1 `json:"content"`
}

func (ArtifactPackagedSubjectV0_1_1) GetSubjectType added in v0.4.1

func (sc ArtifactPackagedSubjectV0_1_1) GetSubjectType() SubjectType

type ArtifactPackagedSubjectV0_2_0 added in v0.4.1

type ArtifactPackagedSubjectV0_2_0 struct {
	SubjectBase
	Content ArtifactPackagedSubjectContentV0_2_0 `json:"content"`
}

func (ArtifactPackagedSubjectV0_2_0) GetSubjectType added in v0.4.1

func (sc ArtifactPackagedSubjectV0_2_0) GetSubjectType() SubjectType

type ArtifactPublishedEventV0_1_1 added in v0.4.1

type ArtifactPublishedEventV0_1_1 struct {
	Context Context                        `json:"context"`
	Subject ArtifactPublishedSubjectV0_1_1 `json:"subject"`
	CDEventCustomData
}

func NewArtifactPublishedEventV0_1_1 added in v0.4.1

func NewArtifactPublishedEventV0_1_1(specVersion string) (*ArtifactPublishedEventV0_1_1, error)

New creates a new ArtifactPublishedEventV0_1_1

func (ArtifactPublishedEventV0_1_1) GetCustomData added in v0.4.1

func (e ArtifactPublishedEventV0_1_1) GetCustomData() (interface{}, error)

func (ArtifactPublishedEventV0_1_1) GetCustomDataAs added in v0.4.1

func (e ArtifactPublishedEventV0_1_1) GetCustomDataAs(receiver interface{}) error

func (ArtifactPublishedEventV0_1_1) GetCustomDataContentType added in v0.4.1

func (e ArtifactPublishedEventV0_1_1) GetCustomDataContentType() string

func (ArtifactPublishedEventV0_1_1) GetCustomDataRaw added in v0.4.1

func (e ArtifactPublishedEventV0_1_1) GetCustomDataRaw() ([]byte, error)

func (ArtifactPublishedEventV0_1_1) GetId added in v0.4.1

func (ArtifactPublishedEventV0_1_1) GetSchema added in v0.4.1

func (ArtifactPublishedEventV0_1_1) GetSource added in v0.4.1

func (e ArtifactPublishedEventV0_1_1) GetSource() string

func (ArtifactPublishedEventV0_1_1) GetSubject added in v0.4.1

func (e ArtifactPublishedEventV0_1_1) GetSubject() Subject

func (ArtifactPublishedEventV0_1_1) GetSubjectContent added in v0.4.1

func (e ArtifactPublishedEventV0_1_1) GetSubjectContent() interface{}

func (ArtifactPublishedEventV0_1_1) GetSubjectId added in v0.4.1

func (e ArtifactPublishedEventV0_1_1) GetSubjectId() string

func (ArtifactPublishedEventV0_1_1) GetSubjectSource added in v0.4.1

func (e ArtifactPublishedEventV0_1_1) GetSubjectSource() string

func (ArtifactPublishedEventV0_1_1) GetTimestamp added in v0.4.1

func (e ArtifactPublishedEventV0_1_1) GetTimestamp() time.Time

func (ArtifactPublishedEventV0_1_1) GetType added in v0.4.1

func (ArtifactPublishedEventV0_1_1) GetVersion added in v0.4.1

func (e ArtifactPublishedEventV0_1_1) GetVersion() string

func (*ArtifactPublishedEventV0_1_1) SetCustomData added in v0.4.1

func (e *ArtifactPublishedEventV0_1_1) SetCustomData(contentType string, data interface{}) error

func (*ArtifactPublishedEventV0_1_1) SetId added in v0.4.1

func (e *ArtifactPublishedEventV0_1_1) SetId(id string)

func (*ArtifactPublishedEventV0_1_1) SetSource added in v0.4.1

func (e *ArtifactPublishedEventV0_1_1) SetSource(source string)

func (*ArtifactPublishedEventV0_1_1) SetSubjectId added in v0.4.1

func (e *ArtifactPublishedEventV0_1_1) SetSubjectId(subjectId string)

func (*ArtifactPublishedEventV0_1_1) SetSubjectSource added in v0.4.1

func (e *ArtifactPublishedEventV0_1_1) SetSubjectSource(subjectSource string)

func (*ArtifactPublishedEventV0_1_1) SetTimestamp added in v0.4.1

func (e *ArtifactPublishedEventV0_1_1) SetTimestamp(timestamp time.Time)

type ArtifactPublishedEventV0_2_0 added in v0.4.1

type ArtifactPublishedEventV0_2_0 struct {
	Context ContextV04                     `json:"context"`
	Subject ArtifactPublishedSubjectV0_2_0 `json:"subject"`
	CDEventCustomData
}

func NewArtifactPublishedEventV0_2_0 added in v0.4.1

func NewArtifactPublishedEventV0_2_0(specVersion string) (*ArtifactPublishedEventV0_2_0, error)

New creates a new ArtifactPublishedEventV0_2_0

func (ArtifactPublishedEventV0_2_0) GetChainId added in v0.4.1

func (e ArtifactPublishedEventV0_2_0) GetChainId() string

func (ArtifactPublishedEventV0_2_0) GetCustomData added in v0.4.1

func (e ArtifactPublishedEventV0_2_0) GetCustomData() (interface{}, error)

func (ArtifactPublishedEventV0_2_0) GetCustomDataAs added in v0.4.1

func (e ArtifactPublishedEventV0_2_0) GetCustomDataAs(receiver interface{}) error

func (ArtifactPublishedEventV0_2_0) GetCustomDataContentType added in v0.4.1

func (e ArtifactPublishedEventV0_2_0) GetCustomDataContentType() string

func (ArtifactPublishedEventV0_2_0) GetCustomDataRaw added in v0.4.1

func (e ArtifactPublishedEventV0_2_0) GetCustomDataRaw() ([]byte, error)

func (ArtifactPublishedEventV0_2_0) GetCustomSchema added in v0.4.1

func (e ArtifactPublishedEventV0_2_0) GetCustomSchema() (*jsonschema.Schema, error)

GetCustomSchema looks up the SchemaUri, if any is defined. If none is defined, it returns nil. If it's defined and cannot be found, it returns an error.

func (ArtifactPublishedEventV0_2_0) GetId added in v0.4.1

func (ArtifactPublishedEventV0_2_0) GetSchema added in v0.4.1

func (ArtifactPublishedEventV0_2_0) GetSchemaUri added in v0.4.1

func (e ArtifactPublishedEventV0_2_0) GetSchemaUri() string

func (ArtifactPublishedEventV0_2_0) GetSource added in v0.4.1

func (e ArtifactPublishedEventV0_2_0) GetSource() string

func (ArtifactPublishedEventV0_2_0) GetSubject added in v0.4.1

func (e ArtifactPublishedEventV0_2_0) GetSubject() Subject

func (ArtifactPublishedEventV0_2_0) GetSubjectContent added in v0.4.1

func (e ArtifactPublishedEventV0_2_0) GetSubjectContent() interface{}

func (ArtifactPublishedEventV0_2_0) GetSubjectId added in v0.4.1

func (e ArtifactPublishedEventV0_2_0) GetSubjectId() string

func (ArtifactPublishedEventV0_2_0) GetSubjectSource added in v0.4.1

func (e ArtifactPublishedEventV0_2_0) GetSubjectSource() string

func (ArtifactPublishedEventV0_2_0) GetTimestamp added in v0.4.1

func (e ArtifactPublishedEventV0_2_0) GetTimestamp() time.Time

func (ArtifactPublishedEventV0_2_0) GetType added in v0.4.1

func (ArtifactPublishedEventV0_2_0) GetVersion added in v0.4.1

func (e ArtifactPublishedEventV0_2_0) GetVersion() string

func (*ArtifactPublishedEventV0_2_0) SetChainId added in v0.4.1

func (e *ArtifactPublishedEventV0_2_0) SetChainId(chainId string)

func (*ArtifactPublishedEventV0_2_0) SetCustomData added in v0.4.1

func (e *ArtifactPublishedEventV0_2_0) SetCustomData(contentType string, data interface{}) error

func (*ArtifactPublishedEventV0_2_0) SetId added in v0.4.1

func (e *ArtifactPublishedEventV0_2_0) SetId(id string)

func (*ArtifactPublishedEventV0_2_0) SetSchemaUri added in v0.4.1

func (e *ArtifactPublishedEventV0_2_0) SetSchemaUri(schema string)

func (*ArtifactPublishedEventV0_2_0) SetSource added in v0.4.1

func (e *ArtifactPublishedEventV0_2_0) SetSource(source string)

func (*ArtifactPublishedEventV0_2_0) SetSubjectId added in v0.4.1

func (e *ArtifactPublishedEventV0_2_0) SetSubjectId(subjectId string)

func (*ArtifactPublishedEventV0_2_0) SetSubjectSbom added in v0.4.1

func (*ArtifactPublishedEventV0_2_0) SetSubjectSource added in v0.4.1

func (e *ArtifactPublishedEventV0_2_0) SetSubjectSource(subjectSource string)

func (*ArtifactPublishedEventV0_2_0) SetSubjectUser added in v0.4.1

func (e *ArtifactPublishedEventV0_2_0) SetSubjectUser(user string)

func (*ArtifactPublishedEventV0_2_0) SetTimestamp added in v0.4.1

func (e *ArtifactPublishedEventV0_2_0) SetTimestamp(timestamp time.Time)

type ArtifactPublishedSubjectContentSbomV0_2_0 added in v0.4.1

type ArtifactPublishedSubjectContentSbomV0_2_0 struct {
	Uri string `json:"uri"`
}

ArtifactPublishedSubjectContentSbomV0_2_0 holds the content of a Sbom field in the content

type ArtifactPublishedSubjectContentV0_1_1 added in v0.4.1

type ArtifactPublishedSubjectContentV0_1_1 struct {
}

type ArtifactPublishedSubjectContentV0_2_0 added in v0.4.1

type ArtifactPublishedSubjectContentV0_2_0 struct {
	Sbom *ArtifactPublishedSubjectContentSbomV0_2_0 `json:"sbom,omitempty"`

	User string `json:"user,omitempty"`
}

type ArtifactPublishedSubjectV0_1_1 added in v0.4.1

type ArtifactPublishedSubjectV0_1_1 struct {
	SubjectBase
	Content ArtifactPublishedSubjectContentV0_1_1 `json:"content"`
}

func (ArtifactPublishedSubjectV0_1_1) GetSubjectType added in v0.4.1

func (sc ArtifactPublishedSubjectV0_1_1) GetSubjectType() SubjectType

type ArtifactPublishedSubjectV0_2_0 added in v0.4.1

type ArtifactPublishedSubjectV0_2_0 struct {
	SubjectBase
	Content ArtifactPublishedSubjectContentV0_2_0 `json:"content"`
}

func (ArtifactPublishedSubjectV0_2_0) GetSubjectType added in v0.4.1

func (sc ArtifactPublishedSubjectV0_2_0) GetSubjectType() SubjectType

type ArtifactSignedEventV0_1_0 added in v0.4.1

type ArtifactSignedEventV0_1_0 struct {
	Context Context                     `json:"context"`
	Subject ArtifactSignedSubjectV0_1_0 `json:"subject"`
	CDEventCustomData
}

func NewArtifactSignedEventV0_1_0 added in v0.4.1

func NewArtifactSignedEventV0_1_0(specVersion string) (*ArtifactSignedEventV0_1_0, error)

New creates a new ArtifactSignedEventV0_1_0

func (ArtifactSignedEventV0_1_0) GetCustomData added in v0.4.1

func (e ArtifactSignedEventV0_1_0) GetCustomData() (interface{}, error)

func (ArtifactSignedEventV0_1_0) GetCustomDataAs added in v0.4.1

func (e ArtifactSignedEventV0_1_0) GetCustomDataAs(receiver interface{}) error

func (ArtifactSignedEventV0_1_0) GetCustomDataContentType added in v0.4.1

func (e ArtifactSignedEventV0_1_0) GetCustomDataContentType() string

func (ArtifactSignedEventV0_1_0) GetCustomDataRaw added in v0.4.1

func (e ArtifactSignedEventV0_1_0) GetCustomDataRaw() ([]byte, error)

func (ArtifactSignedEventV0_1_0) GetId added in v0.4.1

func (ArtifactSignedEventV0_1_0) GetSchema added in v0.4.1

func (ArtifactSignedEventV0_1_0) GetSource added in v0.4.1

func (e ArtifactSignedEventV0_1_0) GetSource() string

func (ArtifactSignedEventV0_1_0) GetSubject added in v0.4.1

func (e ArtifactSignedEventV0_1_0) GetSubject() Subject

func (ArtifactSignedEventV0_1_0) GetSubjectContent added in v0.4.1

func (e ArtifactSignedEventV0_1_0) GetSubjectContent() interface{}

func (ArtifactSignedEventV0_1_0) GetSubjectId added in v0.4.1

func (e ArtifactSignedEventV0_1_0) GetSubjectId() string

func (ArtifactSignedEventV0_1_0) GetSubjectSource added in v0.4.1

func (e ArtifactSignedEventV0_1_0) GetSubjectSource() string

func (ArtifactSignedEventV0_1_0) GetTimestamp added in v0.4.1

func (e ArtifactSignedEventV0_1_0) GetTimestamp() time.Time

func (ArtifactSignedEventV0_1_0) GetType added in v0.4.1

func (ArtifactSignedEventV0_1_0) GetVersion added in v0.4.1

func (e ArtifactSignedEventV0_1_0) GetVersion() string

func (*ArtifactSignedEventV0_1_0) SetCustomData added in v0.4.1

func (e *ArtifactSignedEventV0_1_0) SetCustomData(contentType string, data interface{}) error

func (*ArtifactSignedEventV0_1_0) SetId added in v0.4.1

func (e *ArtifactSignedEventV0_1_0) SetId(id string)

func (*ArtifactSignedEventV0_1_0) SetSource added in v0.4.1

func (e *ArtifactSignedEventV0_1_0) SetSource(source string)

func (*ArtifactSignedEventV0_1_0) SetSubjectId added in v0.4.1

func (e *ArtifactSignedEventV0_1_0) SetSubjectId(subjectId string)

func (*ArtifactSignedEventV0_1_0) SetSubjectSignature added in v0.4.1

func (e *ArtifactSignedEventV0_1_0) SetSubjectSignature(signature string)

func (*ArtifactSignedEventV0_1_0) SetSubjectSource added in v0.4.1

func (e *ArtifactSignedEventV0_1_0) SetSubjectSource(subjectSource string)

func (*ArtifactSignedEventV0_1_0) SetTimestamp added in v0.4.1

func (e *ArtifactSignedEventV0_1_0) SetTimestamp(timestamp time.Time)

type ArtifactSignedEventV0_2_0 added in v0.4.1

type ArtifactSignedEventV0_2_0 struct {
	Context ContextV04                  `json:"context"`
	Subject ArtifactSignedSubjectV0_2_0 `json:"subject"`
	CDEventCustomData
}

func NewArtifactSignedEventV0_2_0 added in v0.4.1

func NewArtifactSignedEventV0_2_0(specVersion string) (*ArtifactSignedEventV0_2_0, error)

New creates a new ArtifactSignedEventV0_2_0

func (ArtifactSignedEventV0_2_0) GetChainId added in v0.4.1

func (e ArtifactSignedEventV0_2_0) GetChainId() string

func (ArtifactSignedEventV0_2_0) GetCustomData added in v0.4.1

func (e ArtifactSignedEventV0_2_0) GetCustomData() (interface{}, error)

func (ArtifactSignedEventV0_2_0) GetCustomDataAs added in v0.4.1

func (e ArtifactSignedEventV0_2_0) GetCustomDataAs(receiver interface{}) error

func (ArtifactSignedEventV0_2_0) GetCustomDataContentType added in v0.4.1

func (e ArtifactSignedEventV0_2_0) GetCustomDataContentType() string

func (ArtifactSignedEventV0_2_0) GetCustomDataRaw added in v0.4.1

func (e ArtifactSignedEventV0_2_0) GetCustomDataRaw() ([]byte, error)

func (ArtifactSignedEventV0_2_0) GetCustomSchema added in v0.4.1

func (e ArtifactSignedEventV0_2_0) GetCustomSchema() (*jsonschema.Schema, error)

GetCustomSchema looks up the SchemaUri, if any is defined. If none is defined, it returns nil. If it's defined and cannot be found, it returns an error.

func (ArtifactSignedEventV0_2_0) GetId added in v0.4.1

func (ArtifactSignedEventV0_2_0) GetSchema added in v0.4.1

func (ArtifactSignedEventV0_2_0) GetSchemaUri added in v0.4.1

func (e ArtifactSignedEventV0_2_0) GetSchemaUri() string

func (ArtifactSignedEventV0_2_0) GetSource added in v0.4.1

func (e ArtifactSignedEventV0_2_0) GetSource() string

func (ArtifactSignedEventV0_2_0) GetSubject added in v0.4.1

func (e ArtifactSignedEventV0_2_0) GetSubject() Subject

func (ArtifactSignedEventV0_2_0) GetSubjectContent added in v0.4.1

func (e ArtifactSignedEventV0_2_0) GetSubjectContent() interface{}

func (ArtifactSignedEventV0_2_0) GetSubjectId added in v0.4.1

func (e ArtifactSignedEventV0_2_0) GetSubjectId() string

func (ArtifactSignedEventV0_2_0) GetSubjectSource added in v0.4.1

func (e ArtifactSignedEventV0_2_0) GetSubjectSource() string

func (ArtifactSignedEventV0_2_0) GetTimestamp added in v0.4.1

func (e ArtifactSignedEventV0_2_0) GetTimestamp() time.Time

func (ArtifactSignedEventV0_2_0) GetType added in v0.4.1

func (ArtifactSignedEventV0_2_0) GetVersion added in v0.4.1

func (e ArtifactSignedEventV0_2_0) GetVersion() string

func (*ArtifactSignedEventV0_2_0) SetChainId added in v0.4.1

func (e *ArtifactSignedEventV0_2_0) SetChainId(chainId string)

func (*ArtifactSignedEventV0_2_0) SetCustomData added in v0.4.1

func (e *ArtifactSignedEventV0_2_0) SetCustomData(contentType string, data interface{}) error

func (*ArtifactSignedEventV0_2_0) SetId added in v0.4.1

func (e *ArtifactSignedEventV0_2_0) SetId(id string)
func (e *ArtifactSignedEventV0_2_0) SetLinks(links EmbeddedLinksArray)

func (*ArtifactSignedEventV0_2_0) SetSchemaUri added in v0.4.1

func (e *ArtifactSignedEventV0_2_0) SetSchemaUri(schema string)

func (*ArtifactSignedEventV0_2_0) SetSource added in v0.4.1

func (e *ArtifactSignedEventV0_2_0) SetSource(source string)

func (*ArtifactSignedEventV0_2_0) SetSubjectId added in v0.4.1

func (e *ArtifactSignedEventV0_2_0) SetSubjectId(subjectId string)

func (*ArtifactSignedEventV0_2_0) SetSubjectSignature added in v0.4.1

func (e *ArtifactSignedEventV0_2_0) SetSubjectSignature(signature string)

func (*ArtifactSignedEventV0_2_0) SetSubjectSource added in v0.4.1

func (e *ArtifactSignedEventV0_2_0) SetSubjectSource(subjectSource string)

func (*ArtifactSignedEventV0_2_0) SetTimestamp added in v0.4.1

func (e *ArtifactSignedEventV0_2_0) SetTimestamp(timestamp time.Time)

type ArtifactSignedSubjectContentV0_1_0 added in v0.4.1

type ArtifactSignedSubjectContentV0_1_0 struct {
	Signature string `json:"signature"`
}

type ArtifactSignedSubjectContentV0_2_0 added in v0.4.1

type ArtifactSignedSubjectContentV0_2_0 struct {
	Signature string `json:"signature"`
}

type ArtifactSignedSubjectV0_1_0 added in v0.4.1

type ArtifactSignedSubjectV0_1_0 struct {
	SubjectBase
	Content ArtifactSignedSubjectContentV0_1_0 `json:"content"`
}

func (ArtifactSignedSubjectV0_1_0) GetSubjectType added in v0.4.1

func (sc ArtifactSignedSubjectV0_1_0) GetSubjectType() SubjectType

type ArtifactSignedSubjectV0_2_0 added in v0.4.1

type ArtifactSignedSubjectV0_2_0 struct {
	SubjectBase
	Content ArtifactSignedSubjectContentV0_2_0 `json:"content"`
}

func (ArtifactSignedSubjectV0_2_0) GetSubjectType added in v0.4.1

func (sc ArtifactSignedSubjectV0_2_0) GetSubjectType() SubjectType

type BaseContextReader added in v0.4.1

type BaseContextReader interface {

	// GetVersion returns the CDEvents spec version
	GetVersion() string

	// GetType returns the CDEvents event type as string
	GetType() CDEventType
}

type BranchCreatedEventV0_1_2 added in v0.4.1

type BranchCreatedEventV0_1_2 struct {
	Context Context                    `json:"context"`
	Subject BranchCreatedSubjectV0_1_2 `json:"subject"`
	CDEventCustomData
}

func NewBranchCreatedEventV0_1_2 added in v0.4.1

func NewBranchCreatedEventV0_1_2(specVersion string) (*BranchCreatedEventV0_1_2, error)

New creates a new BranchCreatedEventV0_1_2

func (BranchCreatedEventV0_1_2) GetCustomData added in v0.4.1

func (e BranchCreatedEventV0_1_2) GetCustomData() (interface{}, error)

func (BranchCreatedEventV0_1_2) GetCustomDataAs added in v0.4.1

func (e BranchCreatedEventV0_1_2) GetCustomDataAs(receiver interface{}) error

func (BranchCreatedEventV0_1_2) GetCustomDataContentType added in v0.4.1

func (e BranchCreatedEventV0_1_2) GetCustomDataContentType() string

func (BranchCreatedEventV0_1_2) GetCustomDataRaw added in v0.4.1

func (e BranchCreatedEventV0_1_2) GetCustomDataRaw() ([]byte, error)

func (BranchCreatedEventV0_1_2) GetId added in v0.4.1

func (e BranchCreatedEventV0_1_2) GetId() string

func (BranchCreatedEventV0_1_2) GetSchema added in v0.4.1

func (BranchCreatedEventV0_1_2) GetSource added in v0.4.1

func (e BranchCreatedEventV0_1_2) GetSource() string

func (BranchCreatedEventV0_1_2) GetSubject added in v0.4.1

func (e BranchCreatedEventV0_1_2) GetSubject() Subject

func (BranchCreatedEventV0_1_2) GetSubjectContent added in v0.4.1

func (e BranchCreatedEventV0_1_2) GetSubjectContent() interface{}

func (BranchCreatedEventV0_1_2) GetSubjectId added in v0.4.1

func (e BranchCreatedEventV0_1_2) GetSubjectId() string

func (BranchCreatedEventV0_1_2) GetSubjectSource added in v0.4.1

func (e BranchCreatedEventV0_1_2) GetSubjectSource() string

func (BranchCreatedEventV0_1_2) GetTimestamp added in v0.4.1

func (e BranchCreatedEventV0_1_2) GetTimestamp() time.Time

func (BranchCreatedEventV0_1_2) GetType added in v0.4.1

func (BranchCreatedEventV0_1_2) GetVersion added in v0.4.1

func (e BranchCreatedEventV0_1_2) GetVersion() string

func (*BranchCreatedEventV0_1_2) SetCustomData added in v0.4.1

func (e *BranchCreatedEventV0_1_2) SetCustomData(contentType string, data interface{}) error

func (*BranchCreatedEventV0_1_2) SetId added in v0.4.1

func (e *BranchCreatedEventV0_1_2) SetId(id string)

func (*BranchCreatedEventV0_1_2) SetSource added in v0.4.1

func (e *BranchCreatedEventV0_1_2) SetSource(source string)

func (*BranchCreatedEventV0_1_2) SetSubjectId added in v0.4.1

func (e *BranchCreatedEventV0_1_2) SetSubjectId(subjectId string)

func (*BranchCreatedEventV0_1_2) SetSubjectRepository added in v0.4.1

func (e *BranchCreatedEventV0_1_2) SetSubjectRepository(repository *Reference)

func (*BranchCreatedEventV0_1_2) SetSubjectSource added in v0.4.1

func (e *BranchCreatedEventV0_1_2) SetSubjectSource(subjectSource string)

func (*BranchCreatedEventV0_1_2) SetTimestamp added in v0.4.1

func (e *BranchCreatedEventV0_1_2) SetTimestamp(timestamp time.Time)

type BranchCreatedEventV0_2_0 added in v0.4.1

type BranchCreatedEventV0_2_0 struct {
	Context ContextV04                 `json:"context"`
	Subject BranchCreatedSubjectV0_2_0 `json:"subject"`
	CDEventCustomData
}

func NewBranchCreatedEventV0_2_0 added in v0.4.1

func NewBranchCreatedEventV0_2_0(specVersion string) (*BranchCreatedEventV0_2_0, error)

New creates a new BranchCreatedEventV0_2_0

func (BranchCreatedEventV0_2_0) GetChainId added in v0.4.1

func (e BranchCreatedEventV0_2_0) GetChainId() string

func (BranchCreatedEventV0_2_0) GetCustomData added in v0.4.1

func (e BranchCreatedEventV0_2_0) GetCustomData() (interface{}, error)

func (BranchCreatedEventV0_2_0) GetCustomDataAs added in v0.4.1

func (e BranchCreatedEventV0_2_0) GetCustomDataAs(receiver interface{}) error

func (BranchCreatedEventV0_2_0) GetCustomDataContentType added in v0.4.1

func (e BranchCreatedEventV0_2_0) GetCustomDataContentType() string

func (BranchCreatedEventV0_2_0) GetCustomDataRaw added in v0.4.1

func (e BranchCreatedEventV0_2_0) GetCustomDataRaw() ([]byte, error)

func (BranchCreatedEventV0_2_0) GetCustomSchema added in v0.4.1

func (e BranchCreatedEventV0_2_0) GetCustomSchema() (*jsonschema.Schema, error)

GetCustomSchema looks up the SchemaUri, if any is defined. If none is defined, it returns nil. If it's defined and cannot be found, it returns an error.

func (BranchCreatedEventV0_2_0) GetId added in v0.4.1

func (e BranchCreatedEventV0_2_0) GetId() string

func (BranchCreatedEventV0_2_0) GetSchema added in v0.4.1

func (BranchCreatedEventV0_2_0) GetSchemaUri added in v0.4.1

func (e BranchCreatedEventV0_2_0) GetSchemaUri() string

func (BranchCreatedEventV0_2_0) GetSource added in v0.4.1

func (e BranchCreatedEventV0_2_0) GetSource() string

func (BranchCreatedEventV0_2_0) GetSubject added in v0.4.1

func (e BranchCreatedEventV0_2_0) GetSubject() Subject

func (BranchCreatedEventV0_2_0) GetSubjectContent added in v0.4.1

func (e BranchCreatedEventV0_2_0) GetSubjectContent() interface{}

func (BranchCreatedEventV0_2_0) GetSubjectId added in v0.4.1

func (e BranchCreatedEventV0_2_0) GetSubjectId() string

func (BranchCreatedEventV0_2_0) GetSubjectSource added in v0.4.1

func (e BranchCreatedEventV0_2_0) GetSubjectSource() string

func (BranchCreatedEventV0_2_0) GetTimestamp added in v0.4.1

func (e BranchCreatedEventV0_2_0) GetTimestamp() time.Time

func (BranchCreatedEventV0_2_0) GetType added in v0.4.1

func (BranchCreatedEventV0_2_0) GetVersion added in v0.4.1

func (e BranchCreatedEventV0_2_0) GetVersion() string

func (*BranchCreatedEventV0_2_0) SetChainId added in v0.4.1

func (e *BranchCreatedEventV0_2_0) SetChainId(chainId string)

func (*BranchCreatedEventV0_2_0) SetCustomData added in v0.4.1

func (e *BranchCreatedEventV0_2_0) SetCustomData(contentType string, data interface{}) error

func (*BranchCreatedEventV0_2_0) SetId added in v0.4.1

func (e *BranchCreatedEventV0_2_0) SetId(id string)
func (e *BranchCreatedEventV0_2_0) SetLinks(links EmbeddedLinksArray)

func (*BranchCreatedEventV0_2_0) SetSchemaUri added in v0.4.1

func (e *BranchCreatedEventV0_2_0) SetSchemaUri(schema string)

func (*BranchCreatedEventV0_2_0) SetSource added in v0.4.1

func (e *BranchCreatedEventV0_2_0) SetSource(source string)

func (*BranchCreatedEventV0_2_0) SetSubjectId added in v0.4.1

func (e *BranchCreatedEventV0_2_0) SetSubjectId(subjectId string)

func (*BranchCreatedEventV0_2_0) SetSubjectRepository added in v0.4.1

func (e *BranchCreatedEventV0_2_0) SetSubjectRepository(repository *Reference)

func (*BranchCreatedEventV0_2_0) SetSubjectSource added in v0.4.1

func (e *BranchCreatedEventV0_2_0) SetSubjectSource(subjectSource string)

func (*BranchCreatedEventV0_2_0) SetTimestamp added in v0.4.1

func (e *BranchCreatedEventV0_2_0) SetTimestamp(timestamp time.Time)

type BranchCreatedSubjectContentV0_1_2 added in v0.4.1

type BranchCreatedSubjectContentV0_1_2 struct {
	Repository *Reference `json:"repository,omitempty"`
}

type BranchCreatedSubjectContentV0_2_0 added in v0.4.1

type BranchCreatedSubjectContentV0_2_0 struct {
	Repository *Reference `json:"repository,omitempty"`
}

type BranchCreatedSubjectV0_1_2 added in v0.4.1

type BranchCreatedSubjectV0_1_2 struct {
	SubjectBase
	Content BranchCreatedSubjectContentV0_1_2 `json:"content"`
}

func (BranchCreatedSubjectV0_1_2) GetSubjectType added in v0.4.1

func (sc BranchCreatedSubjectV0_1_2) GetSubjectType() SubjectType

type BranchCreatedSubjectV0_2_0 added in v0.4.1

type BranchCreatedSubjectV0_2_0 struct {
	SubjectBase
	Content BranchCreatedSubjectContentV0_2_0 `json:"content"`
}

func (BranchCreatedSubjectV0_2_0) GetSubjectType added in v0.4.1

func (sc BranchCreatedSubjectV0_2_0) GetSubjectType() SubjectType

type BranchDeletedEventV0_1_2 added in v0.4.1

type BranchDeletedEventV0_1_2 struct {
	Context Context                    `json:"context"`
	Subject BranchDeletedSubjectV0_1_2 `json:"subject"`
	CDEventCustomData
}

func NewBranchDeletedEventV0_1_2 added in v0.4.1

func NewBranchDeletedEventV0_1_2(specVersion string) (*BranchDeletedEventV0_1_2, error)

New creates a new BranchDeletedEventV0_1_2

func (BranchDeletedEventV0_1_2) GetCustomData added in v0.4.1

func (e BranchDeletedEventV0_1_2) GetCustomData() (interface{}, error)

func (BranchDeletedEventV0_1_2) GetCustomDataAs added in v0.4.1

func (e BranchDeletedEventV0_1_2) GetCustomDataAs(receiver interface{}) error

func (BranchDeletedEventV0_1_2) GetCustomDataContentType added in v0.4.1

func (e BranchDeletedEventV0_1_2) GetCustomDataContentType() string

func (BranchDeletedEventV0_1_2) GetCustomDataRaw added in v0.4.1

func (e BranchDeletedEventV0_1_2) GetCustomDataRaw() ([]byte, error)

func (BranchDeletedEventV0_1_2) GetId added in v0.4.1

func (e BranchDeletedEventV0_1_2) GetId() string

func (BranchDeletedEventV0_1_2) GetSchema added in v0.4.1

func (BranchDeletedEventV0_1_2) GetSource added in v0.4.1

func (e BranchDeletedEventV0_1_2) GetSource() string

func (BranchDeletedEventV0_1_2) GetSubject added in v0.4.1

func (e BranchDeletedEventV0_1_2) GetSubject() Subject

func (BranchDeletedEventV0_1_2) GetSubjectContent added in v0.4.1

func (e BranchDeletedEventV0_1_2) GetSubjectContent() interface{}

func (BranchDeletedEventV0_1_2) GetSubjectId added in v0.4.1

func (e BranchDeletedEventV0_1_2) GetSubjectId() string

func (BranchDeletedEventV0_1_2) GetSubjectSource added in v0.4.1

func (e BranchDeletedEventV0_1_2) GetSubjectSource() string

func (BranchDeletedEventV0_1_2) GetTimestamp added in v0.4.1

func (e BranchDeletedEventV0_1_2) GetTimestamp() time.Time

func (BranchDeletedEventV0_1_2) GetType added in v0.4.1

func (BranchDeletedEventV0_1_2) GetVersion added in v0.4.1

func (e BranchDeletedEventV0_1_2) GetVersion() string

func (*BranchDeletedEventV0_1_2) SetCustomData added in v0.4.1

func (e *BranchDeletedEventV0_1_2) SetCustomData(contentType string, data interface{}) error

func (*BranchDeletedEventV0_1_2) SetId added in v0.4.1

func (e *BranchDeletedEventV0_1_2) SetId(id string)

func (*BranchDeletedEventV0_1_2) SetSource added in v0.4.1

func (e *BranchDeletedEventV0_1_2) SetSource(source string)

func (*BranchDeletedEventV0_1_2) SetSubjectId added in v0.4.1

func (e *BranchDeletedEventV0_1_2) SetSubjectId(subjectId string)

func (*BranchDeletedEventV0_1_2) SetSubjectRepository added in v0.4.1

func (e *BranchDeletedEventV0_1_2) SetSubjectRepository(repository *Reference)

func (*BranchDeletedEventV0_1_2) SetSubjectSource added in v0.4.1

func (e *BranchDeletedEventV0_1_2) SetSubjectSource(subjectSource string)

func (*BranchDeletedEventV0_1_2) SetTimestamp added in v0.4.1

func (e *BranchDeletedEventV0_1_2) SetTimestamp(timestamp time.Time)

type BranchDeletedEventV0_2_0 added in v0.4.1

type BranchDeletedEventV0_2_0 struct {
	Context ContextV04                 `json:"context"`
	Subject BranchDeletedSubjectV0_2_0 `json:"subject"`
	CDEventCustomData
}

func NewBranchDeletedEventV0_2_0 added in v0.4.1

func NewBranchDeletedEventV0_2_0(specVersion string) (*BranchDeletedEventV0_2_0, error)

New creates a new BranchDeletedEventV0_2_0

func (BranchDeletedEventV0_2_0) GetChainId added in v0.4.1

func (e BranchDeletedEventV0_2_0) GetChainId() string

func (BranchDeletedEventV0_2_0) GetCustomData added in v0.4.1

func (e BranchDeletedEventV0_2_0) GetCustomData() (interface{}, error)

func (BranchDeletedEventV0_2_0) GetCustomDataAs added in v0.4.1

func (e BranchDeletedEventV0_2_0) GetCustomDataAs(receiver interface{}) error

func (BranchDeletedEventV0_2_0) GetCustomDataContentType added in v0.4.1

func (e BranchDeletedEventV0_2_0) GetCustomDataContentType() string

func (BranchDeletedEventV0_2_0) GetCustomDataRaw added in v0.4.1

func (e BranchDeletedEventV0_2_0) GetCustomDataRaw() ([]byte, error)

func (BranchDeletedEventV0_2_0) GetCustomSchema added in v0.4.1

func (e BranchDeletedEventV0_2_0) GetCustomSchema() (*jsonschema.Schema, error)

GetCustomSchema looks up the SchemaUri, if any is defined. If none is defined, it returns nil. If it's defined and cannot be found, it returns an error.

func (BranchDeletedEventV0_2_0) GetId added in v0.4.1

func (e BranchDeletedEventV0_2_0) GetId() string

func (BranchDeletedEventV0_2_0) GetSchema added in v0.4.1

func (BranchDeletedEventV0_2_0) GetSchemaUri added in v0.4.1

func (e BranchDeletedEventV0_2_0) GetSchemaUri() string

func (BranchDeletedEventV0_2_0) GetSource added in v0.4.1

func (e BranchDeletedEventV0_2_0) GetSource() string

func (BranchDeletedEventV0_2_0) GetSubject added in v0.4.1

func (e BranchDeletedEventV0_2_0) GetSubject() Subject

func (BranchDeletedEventV0_2_0) GetSubjectContent added in v0.4.1

func (e BranchDeletedEventV0_2_0) GetSubjectContent() interface{}

func (BranchDeletedEventV0_2_0) GetSubjectId added in v0.4.1

func (e BranchDeletedEventV0_2_0) GetSubjectId() string

func (BranchDeletedEventV0_2_0) GetSubjectSource added in v0.4.1

func (e BranchDeletedEventV0_2_0) GetSubjectSource() string

func (BranchDeletedEventV0_2_0) GetTimestamp added in v0.4.1

func (e BranchDeletedEventV0_2_0) GetTimestamp() time.Time

func (BranchDeletedEventV0_2_0) GetType added in v0.4.1

func (BranchDeletedEventV0_2_0) GetVersion added in v0.4.1

func (e BranchDeletedEventV0_2_0) GetVersion() string

func (*BranchDeletedEventV0_2_0) SetChainId added in v0.4.1

func (e *BranchDeletedEventV0_2_0) SetChainId(chainId string)

func (*BranchDeletedEventV0_2_0) SetCustomData added in v0.4.1

func (e *BranchDeletedEventV0_2_0) SetCustomData(contentType string, data interface{}) error

func (*BranchDeletedEventV0_2_0) SetId added in v0.4.1

func (e *BranchDeletedEventV0_2_0) SetId(id string)
func (e *BranchDeletedEventV0_2_0) SetLinks(links EmbeddedLinksArray)

func (*BranchDeletedEventV0_2_0) SetSchemaUri added in v0.4.1

func (e *BranchDeletedEventV0_2_0) SetSchemaUri(schema string)

func (*BranchDeletedEventV0_2_0) SetSource added in v0.4.1

func (e *BranchDeletedEventV0_2_0) SetSource(source string)

func (*BranchDeletedEventV0_2_0) SetSubjectId added in v0.4.1

func (e *BranchDeletedEventV0_2_0) SetSubjectId(subjectId string)

func (*BranchDeletedEventV0_2_0) SetSubjectRepository added in v0.4.1

func (e *BranchDeletedEventV0_2_0) SetSubjectRepository(repository *Reference)

func (*BranchDeletedEventV0_2_0) SetSubjectSource added in v0.4.1

func (e *BranchDeletedEventV0_2_0) SetSubjectSource(subjectSource string)

func (*BranchDeletedEventV0_2_0) SetTimestamp added in v0.4.1

func (e *BranchDeletedEventV0_2_0) SetTimestamp(timestamp time.Time)

type BranchDeletedSubjectContentV0_1_2 added in v0.4.1

type BranchDeletedSubjectContentV0_1_2 struct {
	Repository *Reference `json:"repository,omitempty"`
}

type BranchDeletedSubjectContentV0_2_0 added in v0.4.1

type BranchDeletedSubjectContentV0_2_0 struct {
	Repository *Reference `json:"repository,omitempty"`
}

type BranchDeletedSubjectV0_1_2 added in v0.4.1

type BranchDeletedSubjectV0_1_2 struct {
	SubjectBase
	Content BranchDeletedSubjectContentV0_1_2 `json:"content"`
}

func (BranchDeletedSubjectV0_1_2) GetSubjectType added in v0.4.1

func (sc BranchDeletedSubjectV0_1_2) GetSubjectType() SubjectType

type BranchDeletedSubjectV0_2_0 added in v0.4.1

type BranchDeletedSubjectV0_2_0 struct {
	SubjectBase
	Content BranchDeletedSubjectContentV0_2_0 `json:"content"`
}

func (BranchDeletedSubjectV0_2_0) GetSubjectType added in v0.4.1

func (sc BranchDeletedSubjectV0_2_0) GetSubjectType() SubjectType

type BuildFinishedEventV0_1_1 added in v0.4.1

type BuildFinishedEventV0_1_1 struct {
	Context Context                    `json:"context"`
	Subject BuildFinishedSubjectV0_1_1 `json:"subject"`
	CDEventCustomData
}

func NewBuildFinishedEventV0_1_1 added in v0.4.1

func NewBuildFinishedEventV0_1_1(specVersion string) (*BuildFinishedEventV0_1_1, error)

New creates a new BuildFinishedEventV0_1_1

func (BuildFinishedEventV0_1_1) GetCustomData added in v0.4.1

func (e BuildFinishedEventV0_1_1) GetCustomData() (interface{}, error)

func (BuildFinishedEventV0_1_1) GetCustomDataAs added in v0.4.1

func (e BuildFinishedEventV0_1_1) GetCustomDataAs(receiver interface{}) error

func (BuildFinishedEventV0_1_1) GetCustomDataContentType added in v0.4.1

func (e BuildFinishedEventV0_1_1) GetCustomDataContentType() string

func (BuildFinishedEventV0_1_1) GetCustomDataRaw added in v0.4.1

func (e BuildFinishedEventV0_1_1) GetCustomDataRaw() ([]byte, error)

func (BuildFinishedEventV0_1_1) GetId added in v0.4.1

func (e BuildFinishedEventV0_1_1) GetId() string

func (BuildFinishedEventV0_1_1) GetSchema added in v0.4.1

func (BuildFinishedEventV0_1_1) GetSource added in v0.4.1

func (e BuildFinishedEventV0_1_1) GetSource() string

func (BuildFinishedEventV0_1_1) GetSubject added in v0.4.1

func (e BuildFinishedEventV0_1_1) GetSubject() Subject

func (BuildFinishedEventV0_1_1) GetSubjectContent added in v0.4.1

func (e BuildFinishedEventV0_1_1) GetSubjectContent() interface{}

func (BuildFinishedEventV0_1_1) GetSubjectId added in v0.4.1

func (e BuildFinishedEventV0_1_1) GetSubjectId() string

func (BuildFinishedEventV0_1_1) GetSubjectSource added in v0.4.1

func (e BuildFinishedEventV0_1_1) GetSubjectSource() string

func (BuildFinishedEventV0_1_1) GetTimestamp added in v0.4.1

func (e BuildFinishedEventV0_1_1) GetTimestamp() time.Time

func (BuildFinishedEventV0_1_1) GetType added in v0.4.1

func (BuildFinishedEventV0_1_1) GetVersion added in v0.4.1

func (e BuildFinishedEventV0_1_1) GetVersion() string

func (*BuildFinishedEventV0_1_1) SetCustomData added in v0.4.1

func (e *BuildFinishedEventV0_1_1) SetCustomData(contentType string, data interface{}) error

func (*BuildFinishedEventV0_1_1) SetId added in v0.4.1

func (e *BuildFinishedEventV0_1_1) SetId(id string)

func (*BuildFinishedEventV0_1_1) SetSource added in v0.4.1

func (e *BuildFinishedEventV0_1_1) SetSource(source string)

func (*BuildFinishedEventV0_1_1) SetSubjectArtifactId added in v0.4.1

func (e *BuildFinishedEventV0_1_1) SetSubjectArtifactId(artifactId string)

func (*BuildFinishedEventV0_1_1) SetSubjectId added in v0.4.1

func (e *BuildFinishedEventV0_1_1) SetSubjectId(subjectId string)

func (*BuildFinishedEventV0_1_1) SetSubjectSource added in v0.4.1

func (e *BuildFinishedEventV0_1_1) SetSubjectSource(subjectSource string)

func (*BuildFinishedEventV0_1_1) SetTimestamp added in v0.4.1

func (e *BuildFinishedEventV0_1_1) SetTimestamp(timestamp time.Time)

type BuildFinishedEventV0_2_0 added in v0.4.1

type BuildFinishedEventV0_2_0 struct {
	Context ContextV04                 `json:"context"`
	Subject BuildFinishedSubjectV0_2_0 `json:"subject"`
	CDEventCustomData
}

func NewBuildFinishedEventV0_2_0 added in v0.4.1

func NewBuildFinishedEventV0_2_0(specVersion string) (*BuildFinishedEventV0_2_0, error)

New creates a new BuildFinishedEventV0_2_0

func (BuildFinishedEventV0_2_0) GetChainId added in v0.4.1

func (e BuildFinishedEventV0_2_0) GetChainId() string

func (BuildFinishedEventV0_2_0) GetCustomData added in v0.4.1

func (e BuildFinishedEventV0_2_0) GetCustomData() (interface{}, error)

func (BuildFinishedEventV0_2_0) GetCustomDataAs added in v0.4.1

func (e BuildFinishedEventV0_2_0) GetCustomDataAs(receiver interface{}) error

func (BuildFinishedEventV0_2_0) GetCustomDataContentType added in v0.4.1

func (e BuildFinishedEventV0_2_0) GetCustomDataContentType() string

func (BuildFinishedEventV0_2_0) GetCustomDataRaw added in v0.4.1

func (e BuildFinishedEventV0_2_0) GetCustomDataRaw() ([]byte, error)

func (BuildFinishedEventV0_2_0) GetCustomSchema added in v0.4.1

func (e BuildFinishedEventV0_2_0) GetCustomSchema() (*jsonschema.Schema, error)

GetCustomSchema looks up the SchemaUri, if any is defined. If none is defined, it returns nil. If it's defined and cannot be found, it returns an error.

func (BuildFinishedEventV0_2_0) GetId added in v0.4.1

func (e BuildFinishedEventV0_2_0) GetId() string

func (BuildFinishedEventV0_2_0) GetSchema added in v0.4.1

func (BuildFinishedEventV0_2_0) GetSchemaUri added in v0.4.1

func (e BuildFinishedEventV0_2_0) GetSchemaUri() string

func (BuildFinishedEventV0_2_0) GetSource added in v0.4.1

func (e BuildFinishedEventV0_2_0) GetSource() string

func (BuildFinishedEventV0_2_0) GetSubject added in v0.4.1

func (e BuildFinishedEventV0_2_0) GetSubject() Subject

func (BuildFinishedEventV0_2_0) GetSubjectContent added in v0.4.1

func (e BuildFinishedEventV0_2_0) GetSubjectContent() interface{}

func (BuildFinishedEventV0_2_0) GetSubjectId added in v0.4.1

func (e BuildFinishedEventV0_2_0) GetSubjectId() string

func (BuildFinishedEventV0_2_0) GetSubjectSource added in v0.4.1

func (e BuildFinishedEventV0_2_0) GetSubjectSource() string

func (BuildFinishedEventV0_2_0) GetTimestamp added in v0.4.1

func (e BuildFinishedEventV0_2_0) GetTimestamp() time.Time

func (BuildFinishedEventV0_2_0) GetType added in v0.4.1

func (BuildFinishedEventV0_2_0) GetVersion added in v0.4.1

func (e BuildFinishedEventV0_2_0) GetVersion() string

func (*BuildFinishedEventV0_2_0) SetChainId added in v0.4.1

func (e *BuildFinishedEventV0_2_0) SetChainId(chainId string)

func (*BuildFinishedEventV0_2_0) SetCustomData added in v0.4.1

func (e *BuildFinishedEventV0_2_0) SetCustomData(contentType string, data interface{}) error

func (*BuildFinishedEventV0_2_0) SetId added in v0.4.1

func (e *BuildFinishedEventV0_2_0) SetId(id string)
func (e *BuildFinishedEventV0_2_0) SetLinks(links EmbeddedLinksArray)

func (*BuildFinishedEventV0_2_0) SetSchemaUri added in v0.4.1

func (e *BuildFinishedEventV0_2_0) SetSchemaUri(schema string)

func (*BuildFinishedEventV0_2_0) SetSource added in v0.4.1

func (e *BuildFinishedEventV0_2_0) SetSource(source string)

func (*BuildFinishedEventV0_2_0) SetSubjectArtifactId added in v0.4.1

func (e *BuildFinishedEventV0_2_0) SetSubjectArtifactId(artifactId string)

func (*BuildFinishedEventV0_2_0) SetSubjectId added in v0.4.1

func (e *BuildFinishedEventV0_2_0) SetSubjectId(subjectId string)

func (*BuildFinishedEventV0_2_0) SetSubjectSource added in v0.4.1

func (e *BuildFinishedEventV0_2_0) SetSubjectSource(subjectSource string)

func (*BuildFinishedEventV0_2_0) SetTimestamp added in v0.4.1

func (e *BuildFinishedEventV0_2_0) SetTimestamp(timestamp time.Time)

type BuildFinishedSubjectContentV0_1_1 added in v0.4.1

type BuildFinishedSubjectContentV0_1_1 struct {
	ArtifactId string `json:"artifactId,omitempty" validate:"purl"`
}

type BuildFinishedSubjectContentV0_2_0 added in v0.4.1

type BuildFinishedSubjectContentV0_2_0 struct {
	ArtifactId string `json:"artifactId,omitempty" validate:"purl"`
}

type BuildFinishedSubjectV0_1_1 added in v0.4.1

type BuildFinishedSubjectV0_1_1 struct {
	SubjectBase
	Content BuildFinishedSubjectContentV0_1_1 `json:"content"`
}

func (BuildFinishedSubjectV0_1_1) GetSubjectType added in v0.4.1

func (sc BuildFinishedSubjectV0_1_1) GetSubjectType() SubjectType

type BuildFinishedSubjectV0_2_0 added in v0.4.1

type BuildFinishedSubjectV0_2_0 struct {
	SubjectBase
	Content BuildFinishedSubjectContentV0_2_0 `json:"content"`
}

func (BuildFinishedSubjectV0_2_0) GetSubjectType added in v0.4.1

func (sc BuildFinishedSubjectV0_2_0) GetSubjectType() SubjectType

type BuildQueuedEventV0_1_1 added in v0.4.1

type BuildQueuedEventV0_1_1 struct {
	Context Context                  `json:"context"`
	Subject BuildQueuedSubjectV0_1_1 `json:"subject"`
	CDEventCustomData
}

func NewBuildQueuedEventV0_1_1 added in v0.4.1

func NewBuildQueuedEventV0_1_1(specVersion string) (*BuildQueuedEventV0_1_1, error)

New creates a new BuildQueuedEventV0_1_1

func (BuildQueuedEventV0_1_1) GetCustomData added in v0.4.1

func (e BuildQueuedEventV0_1_1) GetCustomData() (interface{}, error)

func (BuildQueuedEventV0_1_1) GetCustomDataAs added in v0.4.1

func (e BuildQueuedEventV0_1_1) GetCustomDataAs(receiver interface{}) error

func (BuildQueuedEventV0_1_1) GetCustomDataContentType added in v0.4.1

func (e BuildQueuedEventV0_1_1) GetCustomDataContentType() string

func (BuildQueuedEventV0_1_1) GetCustomDataRaw added in v0.4.1

func (e BuildQueuedEventV0_1_1) GetCustomDataRaw() ([]byte, error)

func (BuildQueuedEventV0_1_1) GetId added in v0.4.1

func (e BuildQueuedEventV0_1_1) GetId() string

func (BuildQueuedEventV0_1_1) GetSchema added in v0.4.1

func (BuildQueuedEventV0_1_1) GetSource added in v0.4.1

func (e BuildQueuedEventV0_1_1) GetSource() string

func (BuildQueuedEventV0_1_1) GetSubject added in v0.4.1

func (e BuildQueuedEventV0_1_1) GetSubject() Subject

func (BuildQueuedEventV0_1_1) GetSubjectContent added in v0.4.1

func (e BuildQueuedEventV0_1_1) GetSubjectContent() interface{}

func (BuildQueuedEventV0_1_1) GetSubjectId added in v0.4.1

func (e BuildQueuedEventV0_1_1) GetSubjectId() string

func (BuildQueuedEventV0_1_1) GetSubjectSource added in v0.4.1

func (e BuildQueuedEventV0_1_1) GetSubjectSource() string

func (BuildQueuedEventV0_1_1) GetTimestamp added in v0.4.1

func (e BuildQueuedEventV0_1_1) GetTimestamp() time.Time

func (BuildQueuedEventV0_1_1) GetType added in v0.4.1

func (e BuildQueuedEventV0_1_1) GetType() CDEventType

func (BuildQueuedEventV0_1_1) GetVersion added in v0.4.1

func (e BuildQueuedEventV0_1_1) GetVersion() string

func (*BuildQueuedEventV0_1_1) SetCustomData added in v0.4.1

func (e *BuildQueuedEventV0_1_1) SetCustomData(contentType string, data interface{}) error

func (*BuildQueuedEventV0_1_1) SetId added in v0.4.1

func (e *BuildQueuedEventV0_1_1) SetId(id string)

func (*BuildQueuedEventV0_1_1) SetSource added in v0.4.1

func (e *BuildQueuedEventV0_1_1) SetSource(source string)

func (*BuildQueuedEventV0_1_1) SetSubjectId added in v0.4.1

func (e *BuildQueuedEventV0_1_1) SetSubjectId(subjectId string)

func (*BuildQueuedEventV0_1_1) SetSubjectSource added in v0.4.1

func (e *BuildQueuedEventV0_1_1) SetSubjectSource(subjectSource string)

func (*BuildQueuedEventV0_1_1) SetTimestamp added in v0.4.1

func (e *BuildQueuedEventV0_1_1) SetTimestamp(timestamp time.Time)

type BuildQueuedEventV0_2_0 added in v0.4.1

type BuildQueuedEventV0_2_0 struct {
	Context ContextV04               `json:"context"`
	Subject BuildQueuedSubjectV0_2_0 `json:"subject"`
	CDEventCustomData
}

func NewBuildQueuedEventV0_2_0 added in v0.4.1

func NewBuildQueuedEventV0_2_0(specVersion string) (*BuildQueuedEventV0_2_0, error)

New creates a new BuildQueuedEventV0_2_0

func (BuildQueuedEventV0_2_0) GetChainId added in v0.4.1

func (e BuildQueuedEventV0_2_0) GetChainId() string

func (BuildQueuedEventV0_2_0) GetCustomData added in v0.4.1

func (e BuildQueuedEventV0_2_0) GetCustomData() (interface{}, error)

func (BuildQueuedEventV0_2_0) GetCustomDataAs added in v0.4.1

func (e BuildQueuedEventV0_2_0) GetCustomDataAs(receiver interface{}) error

func (BuildQueuedEventV0_2_0) GetCustomDataContentType added in v0.4.1

func (e BuildQueuedEventV0_2_0) GetCustomDataContentType() string

func (BuildQueuedEventV0_2_0) GetCustomDataRaw added in v0.4.1

func (e BuildQueuedEventV0_2_0) GetCustomDataRaw() ([]byte, error)

func (BuildQueuedEventV0_2_0) GetCustomSchema added in v0.4.1

func (e BuildQueuedEventV0_2_0) GetCustomSchema() (*jsonschema.Schema, error)

GetCustomSchema looks up the SchemaUri, if any is defined. If none is defined, it returns nil. If it's defined and cannot be found, it returns an error.

func (BuildQueuedEventV0_2_0) GetId added in v0.4.1

func (e BuildQueuedEventV0_2_0) GetId() string

func (BuildQueuedEventV0_2_0) GetSchema added in v0.4.1

func (BuildQueuedEventV0_2_0) GetSchemaUri added in v0.4.1

func (e BuildQueuedEventV0_2_0) GetSchemaUri() string

func (BuildQueuedEventV0_2_0) GetSource added in v0.4.1

func (e BuildQueuedEventV0_2_0) GetSource() string

func (BuildQueuedEventV0_2_0) GetSubject added in v0.4.1

func (e BuildQueuedEventV0_2_0) GetSubject() Subject

func (BuildQueuedEventV0_2_0) GetSubjectContent added in v0.4.1

func (e BuildQueuedEventV0_2_0) GetSubjectContent() interface{}

func (BuildQueuedEventV0_2_0) GetSubjectId added in v0.4.1

func (e BuildQueuedEventV0_2_0) GetSubjectId() string

func (BuildQueuedEventV0_2_0) GetSubjectSource added in v0.4.1

func (e BuildQueuedEventV0_2_0) GetSubjectSource() string

func (BuildQueuedEventV0_2_0) GetTimestamp added in v0.4.1

func (e BuildQueuedEventV0_2_0) GetTimestamp() time.Time

func (BuildQueuedEventV0_2_0) GetType added in v0.4.1

func (e BuildQueuedEventV0_2_0) GetType() CDEventType

func (BuildQueuedEventV0_2_0) GetVersion added in v0.4.1

func (e BuildQueuedEventV0_2_0) GetVersion() string

func (*BuildQueuedEventV0_2_0) SetChainId added in v0.4.1

func (e *BuildQueuedEventV0_2_0) SetChainId(chainId string)

func (*BuildQueuedEventV0_2_0) SetCustomData added in v0.4.1

func (e *BuildQueuedEventV0_2_0) SetCustomData(contentType string, data interface{}) error

func (*BuildQueuedEventV0_2_0) SetId added in v0.4.1

func (e *BuildQueuedEventV0_2_0) SetId(id string)
func (e *BuildQueuedEventV0_2_0) SetLinks(links EmbeddedLinksArray)

func (*BuildQueuedEventV0_2_0) SetSchemaUri added in v0.4.1

func (e *BuildQueuedEventV0_2_0) SetSchemaUri(schema string)

func (*BuildQueuedEventV0_2_0) SetSource added in v0.4.1

func (e *BuildQueuedEventV0_2_0) SetSource(source string)

func (*BuildQueuedEventV0_2_0) SetSubjectId added in v0.4.1

func (e *BuildQueuedEventV0_2_0) SetSubjectId(subjectId string)

func (*BuildQueuedEventV0_2_0) SetSubjectSource added in v0.4.1

func (e *BuildQueuedEventV0_2_0) SetSubjectSource(subjectSource string)

func (*BuildQueuedEventV0_2_0) SetTimestamp added in v0.4.1

func (e *BuildQueuedEventV0_2_0) SetTimestamp(timestamp time.Time)

type BuildQueuedSubjectContentV0_1_1 added in v0.4.1

type BuildQueuedSubjectContentV0_1_1 struct {
}

type BuildQueuedSubjectContentV0_2_0 added in v0.4.1

type BuildQueuedSubjectContentV0_2_0 struct {
}

type BuildQueuedSubjectV0_1_1 added in v0.4.1

type BuildQueuedSubjectV0_1_1 struct {
	SubjectBase
	Content BuildQueuedSubjectContentV0_1_1 `json:"content"`
}

func (BuildQueuedSubjectV0_1_1) GetSubjectType added in v0.4.1

func (sc BuildQueuedSubjectV0_1_1) GetSubjectType() SubjectType

type BuildQueuedSubjectV0_2_0 added in v0.4.1

type BuildQueuedSubjectV0_2_0 struct {
	SubjectBase
	Content BuildQueuedSubjectContentV0_2_0 `json:"content"`
}

func (BuildQueuedSubjectV0_2_0) GetSubjectType added in v0.4.1

func (sc BuildQueuedSubjectV0_2_0) GetSubjectType() SubjectType

type BuildStartedEventV0_1_1 added in v0.4.1

type BuildStartedEventV0_1_1 struct {
	Context Context                   `json:"context"`
	Subject BuildStartedSubjectV0_1_1 `json:"subject"`
	CDEventCustomData
}

func NewBuildStartedEventV0_1_1 added in v0.4.1

func NewBuildStartedEventV0_1_1(specVersion string) (*BuildStartedEventV0_1_1, error)

New creates a new BuildStartedEventV0_1_1

func (BuildStartedEventV0_1_1) GetCustomData added in v0.4.1

func (e BuildStartedEventV0_1_1) GetCustomData() (interface{}, error)

func (BuildStartedEventV0_1_1) GetCustomDataAs added in v0.4.1

func (e BuildStartedEventV0_1_1) GetCustomDataAs(receiver interface{}) error

func (BuildStartedEventV0_1_1) GetCustomDataContentType added in v0.4.1

func (e BuildStartedEventV0_1_1) GetCustomDataContentType() string

func (BuildStartedEventV0_1_1) GetCustomDataRaw added in v0.4.1

func (e BuildStartedEventV0_1_1) GetCustomDataRaw() ([]byte, error)

func (BuildStartedEventV0_1_1) GetId added in v0.4.1

func (e BuildStartedEventV0_1_1) GetId() string

func (BuildStartedEventV0_1_1) GetSchema added in v0.4.1

func (BuildStartedEventV0_1_1) GetSource added in v0.4.1

func (e BuildStartedEventV0_1_1) GetSource() string

func (BuildStartedEventV0_1_1) GetSubject added in v0.4.1

func (e BuildStartedEventV0_1_1) GetSubject() Subject

func (BuildStartedEventV0_1_1) GetSubjectContent added in v0.4.1

func (e BuildStartedEventV0_1_1) GetSubjectContent() interface{}

func (BuildStartedEventV0_1_1) GetSubjectId added in v0.4.1

func (e BuildStartedEventV0_1_1) GetSubjectId() string

func (BuildStartedEventV0_1_1) GetSubjectSource added in v0.4.1

func (e BuildStartedEventV0_1_1) GetSubjectSource() string

func (BuildStartedEventV0_1_1) GetTimestamp added in v0.4.1

func (e BuildStartedEventV0_1_1) GetTimestamp() time.Time

func (BuildStartedEventV0_1_1) GetType added in v0.4.1

func (BuildStartedEventV0_1_1) GetVersion added in v0.4.1

func (e BuildStartedEventV0_1_1) GetVersion() string

func (*BuildStartedEventV0_1_1) SetCustomData added in v0.4.1

func (e *BuildStartedEventV0_1_1) SetCustomData(contentType string, data interface{}) error

func (*BuildStartedEventV0_1_1) SetId added in v0.4.1

func (e *BuildStartedEventV0_1_1) SetId(id string)

func (*BuildStartedEventV0_1_1) SetSource added in v0.4.1

func (e *BuildStartedEventV0_1_1) SetSource(source string)

func (*BuildStartedEventV0_1_1) SetSubjectId added in v0.4.1

func (e *BuildStartedEventV0_1_1) SetSubjectId(subjectId string)

func (*BuildStartedEventV0_1_1) SetSubjectSource added in v0.4.1

func (e *BuildStartedEventV0_1_1) SetSubjectSource(subjectSource string)

func (*BuildStartedEventV0_1_1) SetTimestamp added in v0.4.1

func (e *BuildStartedEventV0_1_1) SetTimestamp(timestamp time.Time)

type BuildStartedEventV0_2_0 added in v0.4.1

type BuildStartedEventV0_2_0 struct {
	Context ContextV04                `json:"context"`
	Subject BuildStartedSubjectV0_2_0 `json:"subject"`
	CDEventCustomData
}

func NewBuildStartedEventV0_2_0 added in v0.4.1

func NewBuildStartedEventV0_2_0(specVersion string) (*BuildStartedEventV0_2_0, error)

New creates a new BuildStartedEventV0_2_0

func (BuildStartedEventV0_2_0) GetChainId added in v0.4.1

func (e BuildStartedEventV0_2_0) GetChainId() string

func (BuildStartedEventV0_2_0) GetCustomData added in v0.4.1

func (e BuildStartedEventV0_2_0) GetCustomData() (interface{}, error)

func (BuildStartedEventV0_2_0) GetCustomDataAs added in v0.4.1

func (e BuildStartedEventV0_2_0) GetCustomDataAs(receiver interface{}) error

func (BuildStartedEventV0_2_0) GetCustomDataContentType added in v0.4.1

func (e BuildStartedEventV0_2_0) GetCustomDataContentType() string

func (BuildStartedEventV0_2_0) GetCustomDataRaw added in v0.4.1

func (e BuildStartedEventV0_2_0) GetCustomDataRaw() ([]byte, error)

func (BuildStartedEventV0_2_0) GetCustomSchema added in v0.4.1

func (e BuildStartedEventV0_2_0) GetCustomSchema() (*jsonschema.Schema, error)

GetCustomSchema looks up the SchemaUri, if any is defined. If none is defined, it returns nil. If it's defined and cannot be found, it returns an error.

func (BuildStartedEventV0_2_0) GetId added in v0.4.1

func (e BuildStartedEventV0_2_0) GetId() string

func (BuildStartedEventV0_2_0) GetSchema added in v0.4.1

func (BuildStartedEventV0_2_0) GetSchemaUri added in v0.4.1

func (e BuildStartedEventV0_2_0) GetSchemaUri() string

func (BuildStartedEventV0_2_0) GetSource added in v0.4.1

func (e BuildStartedEventV0_2_0) GetSource() string

func (BuildStartedEventV0_2_0) GetSubject added in v0.4.1

func (e BuildStartedEventV0_2_0) GetSubject() Subject

func (BuildStartedEventV0_2_0) GetSubjectContent added in v0.4.1

func (e BuildStartedEventV0_2_0) GetSubjectContent() interface{}

func (BuildStartedEventV0_2_0) GetSubjectId added in v0.4.1

func (e BuildStartedEventV0_2_0) GetSubjectId() string

func (BuildStartedEventV0_2_0) GetSubjectSource added in v0.4.1

func (e BuildStartedEventV0_2_0) GetSubjectSource() string

func (BuildStartedEventV0_2_0) GetTimestamp added in v0.4.1

func (e BuildStartedEventV0_2_0) GetTimestamp() time.Time

func (BuildStartedEventV0_2_0) GetType added in v0.4.1

func (BuildStartedEventV0_2_0) GetVersion added in v0.4.1

func (e BuildStartedEventV0_2_0) GetVersion() string

func (*BuildStartedEventV0_2_0) SetChainId added in v0.4.1

func (e *BuildStartedEventV0_2_0) SetChainId(chainId string)

func (*BuildStartedEventV0_2_0) SetCustomData added in v0.4.1

func (e *BuildStartedEventV0_2_0) SetCustomData(contentType string, data interface{}) error

func (*BuildStartedEventV0_2_0) SetId added in v0.4.1

func (e *BuildStartedEventV0_2_0) SetId(id string)
func (e *BuildStartedEventV0_2_0) SetLinks(links EmbeddedLinksArray)

func (*BuildStartedEventV0_2_0) SetSchemaUri added in v0.4.1

func (e *BuildStartedEventV0_2_0) SetSchemaUri(schema string)

func (*BuildStartedEventV0_2_0) SetSource added in v0.4.1

func (e *BuildStartedEventV0_2_0) SetSource(source string)

func (*BuildStartedEventV0_2_0) SetSubjectId added in v0.4.1

func (e *BuildStartedEventV0_2_0) SetSubjectId(subjectId string)

func (*BuildStartedEventV0_2_0) SetSubjectSource added in v0.4.1

func (e *BuildStartedEventV0_2_0) SetSubjectSource(subjectSource string)

func (*BuildStartedEventV0_2_0) SetTimestamp added in v0.4.1

func (e *BuildStartedEventV0_2_0) SetTimestamp(timestamp time.Time)

type BuildStartedSubjectContentV0_1_1 added in v0.4.1

type BuildStartedSubjectContentV0_1_1 struct {
}

type BuildStartedSubjectContentV0_2_0 added in v0.4.1

type BuildStartedSubjectContentV0_2_0 struct {
}

type BuildStartedSubjectV0_1_1 added in v0.4.1

type BuildStartedSubjectV0_1_1 struct {
	SubjectBase
	Content BuildStartedSubjectContentV0_1_1 `json:"content"`
}

func (BuildStartedSubjectV0_1_1) GetSubjectType added in v0.4.1

func (sc BuildStartedSubjectV0_1_1) GetSubjectType() SubjectType

type BuildStartedSubjectV0_2_0 added in v0.4.1

type BuildStartedSubjectV0_2_0 struct {
	SubjectBase
	Content BuildStartedSubjectContentV0_2_0 `json:"content"`
}

func (BuildStartedSubjectV0_2_0) GetSubjectType added in v0.4.1

func (sc BuildStartedSubjectV0_2_0) GetSubjectType() SubjectType

type CDEvent

type CDEvent interface {
	CDEventReader
	CDEventWriter
}

type CDEventCustomData

type CDEventCustomData struct {

	// CustomData added to the CDEvent. Format not specified by the SPEC.
	CustomData interface{} `json:"customData,omitempty" jsonschema:"oneof_type=object;string"`

	// CustomDataContentType for CustomData in a CDEvent.
	CustomDataContentType string `json:"customDataContentType,omitempty"`
}

CDEventCustomData hosts the CDEvent custom data fields

`CustomDataContentType` describes the content type of the data.

`CustomData` contains the data:

- When the content type is "application/json":

  • if the CDEvent is produced via the golang API, the `CustomData` can hold an un-marshalled golang interface{} of a specific type or a marshalled byte slice

  • if the CDEvent is consumed and thus un-marshalled from a []byte the `CustomData` holds the data un-marshalled from []byte, into a generic interface{}. It may be un-marshalled into a specific golang type via the `GetCustomDataAs`

- When the content type is anything else:

  • if the CDEvent is produced via the golang API, the `CustomData` hold an byte slice with the data passed via the API

  • if the CDEvent is consumed and thus un-marshalled from a []byte the `CustomData` holds the data base64 encoded

type CDEventCustomDataEncoding

type CDEventCustomDataEncoding string

func (CDEventCustomDataEncoding) String

func (t CDEventCustomDataEncoding) String() string

type CDEventReader

type CDEventReader interface {

	// Event type and spec version readers
	BaseContextReader

	// The event ID, unique for this event within the event producer (source)
	GetId() string

	// The source of the event
	GetSource() string

	// The time when the occurrence described in the event happened, or when
	// the event was produced if the former is not available
	GetTimestamp() time.Time

	// The ID of the subject, unique within the event producer (source), it may
	// by used in multiple events
	GetSubjectId() string

	// The source of the subject. Usually this matches the source of the event
	// but it may also be different.
	GetSubjectSource() string

	// The event specific subject. It is possible to use a type assertion with
	// the generic Subject to obtain an event specific implementation of Subject
	// for direct access to the content fields
	GetSubject() Subject

	// The event specific subject. It is possible to use a type assertion with
	// the generic Subject to obtain an event specific implementation of Subject
	// for direct access to the content fields
	GetSubjectContent() interface{}

	// The URL and content of the schema file associated to the event type
	GetSchema() (string, *jsonschema.Schema, error)

	// The custom data attached to the event
	// Depends on GetCustomDataContentType()
	// - When "application/json", un-marshalled data
	// - Else, raw []byte
	GetCustomData() (interface{}, error)

	// The raw custom data attached to the event
	GetCustomDataRaw() ([]byte, error)

	// Custom data un-marshalled into receiver, only if
	// GetCustomDataContentType() returns "application/json", else error
	GetCustomDataAs(receiver interface{}) error

	// Custom data content-type
	GetCustomDataContentType() string
}

type CDEventReaderV04 added in v0.4.1

type CDEventReaderV04 interface {
	CDEventReader

	// The ChainId for the event
	GetChainId() string

	// The links array for the event
	GetLinks() EmbeddedLinksArray

	// The custom schema URI
	GetSchemaUri() string

	// The compiled schemaUri for the event
	GetCustomSchema() (*jsonschema.Schema, error)
}

type CDEventType

type CDEventType struct {
	Subject   string
	Predicate string

	// Version is a semantic version in the form <major>.<minor>.<patch>
	Version string

	// Custom holds the tool name in case of custom events
	Custom string
}
var (
	// ArtifactDeleted event type v0.1.0
	ArtifactDeletedEventTypeV0_1_0 CDEventType = CDEventType{
		Subject:   "artifact",
		Predicate: "deleted",
		Version:   "0.1.0",
	}
)
var (
	// ArtifactDownloaded event type v0.1.0
	ArtifactDownloadedEventTypeV0_1_0 CDEventType = CDEventType{
		Subject:   "artifact",
		Predicate: "downloaded",
		Version:   "0.1.0",
	}
)
var (
	// ArtifactPackaged event type v0.1.1
	ArtifactPackagedEventTypeV0_1_1 CDEventType = CDEventType{
		Subject:   "artifact",
		Predicate: "packaged",
		Version:   "0.1.1",
	}
)
var (
	// ArtifactPackaged event type v0.2.0
	ArtifactPackagedEventTypeV0_2_0 CDEventType = CDEventType{
		Subject:   "artifact",
		Predicate: "packaged",
		Version:   "0.2.0",
	}
)
var (
	// ArtifactPublished event type v0.1.1
	ArtifactPublishedEventTypeV0_1_1 CDEventType = CDEventType{
		Subject:   "artifact",
		Predicate: "published",
		Version:   "0.1.1",
	}
)
var (
	// ArtifactPublished event type v0.2.0
	ArtifactPublishedEventTypeV0_2_0 CDEventType = CDEventType{
		Subject:   "artifact",
		Predicate: "published",
		Version:   "0.2.0",
	}
)
var (
	// ArtifactSigned event type v0.1.0
	ArtifactSignedEventTypeV0_1_0 CDEventType = CDEventType{
		Subject:   "artifact",
		Predicate: "signed",
		Version:   "0.1.0",
	}
)
var (
	// ArtifactSigned event type v0.2.0
	ArtifactSignedEventTypeV0_2_0 CDEventType = CDEventType{
		Subject:   "artifact",
		Predicate: "signed",
		Version:   "0.2.0",
	}
)
var (
	// BranchCreated event type v0.1.2
	BranchCreatedEventTypeV0_1_2 CDEventType = CDEventType{
		Subject:   "branch",
		Predicate: "created",
		Version:   "0.1.2",
	}
)
var (
	// BranchCreated event type v0.2.0
	BranchCreatedEventTypeV0_2_0 CDEventType = CDEventType{
		Subject:   "branch",
		Predicate: "created",
		Version:   "0.2.0",
	}
)
var (
	// BranchDeleted event type v0.1.2
	BranchDeletedEventTypeV0_1_2 CDEventType = CDEventType{
		Subject:   "branch",
		Predicate: "deleted",
		Version:   "0.1.2",
	}
)
var (
	// BranchDeleted event type v0.2.0
	BranchDeletedEventTypeV0_2_0 CDEventType = CDEventType{
		Subject:   "branch",
		Predicate: "deleted",
		Version:   "0.2.0",
	}
)
var (
	// BuildFinished event type v0.1.1
	BuildFinishedEventTypeV0_1_1 CDEventType = CDEventType{
		Subject:   "build",
		Predicate: "finished",
		Version:   "0.1.1",
	}
)
var (
	// BuildFinished event type v0.2.0
	BuildFinishedEventTypeV0_2_0 CDEventType = CDEventType{
		Subject:   "build",
		Predicate: "finished",
		Version:   "0.2.0",
	}
)
var (
	// BuildQueued event type v0.1.1
	BuildQueuedEventTypeV0_1_1 CDEventType = CDEventType{
		Subject:   "build",
		Predicate: "queued",
		Version:   "0.1.1",
	}
)
var (
	// BuildQueued event type v0.2.0
	BuildQueuedEventTypeV0_2_0 CDEventType = CDEventType{
		Subject:   "build",
		Predicate: "queued",
		Version:   "0.2.0",
	}
)
var (
	// BuildStarted event type v0.1.1
	BuildStartedEventTypeV0_1_1 CDEventType = CDEventType{
		Subject:   "build",
		Predicate: "started",
		Version:   "0.1.1",
	}
)
var (
	// BuildStarted event type v0.2.0
	BuildStartedEventTypeV0_2_0 CDEventType = CDEventType{
		Subject:   "build",
		Predicate: "started",
		Version:   "0.2.0",
	}
)
var (
	// ChangeAbandoned event type v0.1.2
	ChangeAbandonedEventTypeV0_1_2 CDEventType = CDEventType{
		Subject:   "change",
		Predicate: "abandoned",
		Version:   "0.1.2",
	}
)
var (
	// ChangeAbandoned event type v0.2.0
	ChangeAbandonedEventTypeV0_2_0 CDEventType = CDEventType{
		Subject:   "change",
		Predicate: "abandoned",
		Version:   "0.2.0",
	}
)
var (
	// ChangeCreated event type v0.1.2
	ChangeCreatedEventTypeV0_1_2 CDEventType = CDEventType{
		Subject:   "change",
		Predicate: "created",
		Version:   "0.1.2",
	}
)
var (
	// ChangeCreated event type v0.3.0
	ChangeCreatedEventTypeV0_3_0 CDEventType = CDEventType{
		Subject:   "change",
		Predicate: "created",
		Version:   "0.3.0",
	}
)
var (
	// ChangeMerged event type v0.1.2
	ChangeMergedEventTypeV0_1_2 CDEventType = CDEventType{
		Subject:   "change",
		Predicate: "merged",
		Version:   "0.1.2",
	}
)
var (
	// ChangeMerged event type v0.2.0
	ChangeMergedEventTypeV0_2_0 CDEventType = CDEventType{
		Subject:   "change",
		Predicate: "merged",
		Version:   "0.2.0",
	}
)
var (
	// ChangeReviewed event type v0.1.2
	ChangeReviewedEventTypeV0_1_2 CDEventType = CDEventType{
		Subject:   "change",
		Predicate: "reviewed",
		Version:   "0.1.2",
	}
)
var (
	// ChangeReviewed event type v0.2.0
	ChangeReviewedEventTypeV0_2_0 CDEventType = CDEventType{
		Subject:   "change",
		Predicate: "reviewed",
		Version:   "0.2.0",
	}
)
var (
	// ChangeUpdated event type v0.1.2
	ChangeUpdatedEventTypeV0_1_2 CDEventType = CDEventType{
		Subject:   "change",
		Predicate: "updated",
		Version:   "0.1.2",
	}
)
var (
	// ChangeUpdated event type v0.2.0
	ChangeUpdatedEventTypeV0_2_0 CDEventType = CDEventType{
		Subject:   "change",
		Predicate: "updated",
		Version:   "0.2.0",
	}
)
var (
	// CustomType event type v0.4.1
	CustomTypeEventTypeV0_4_1 CDEventType = CDEventType{}
)
var (
	// EnvironmentCreated event type v0.1.1
	EnvironmentCreatedEventTypeV0_1_1 CDEventType = CDEventType{
		Subject:   "environment",
		Predicate: "created",
		Version:   "0.1.1",
	}
)
var (
	// EnvironmentCreated event type v0.2.0
	EnvironmentCreatedEventTypeV0_2_0 CDEventType = CDEventType{
		Subject:   "environment",
		Predicate: "created",
		Version:   "0.2.0",
	}
)
var (
	// EnvironmentDeleted event type v0.1.1
	EnvironmentDeletedEventTypeV0_1_1 CDEventType = CDEventType{
		Subject:   "environment",
		Predicate: "deleted",
		Version:   "0.1.1",
	}
)
var (
	// EnvironmentDeleted event type v0.2.0
	EnvironmentDeletedEventTypeV0_2_0 CDEventType = CDEventType{
		Subject:   "environment",
		Predicate: "deleted",
		Version:   "0.2.0",
	}
)
var (
	// EnvironmentModified event type v0.1.1
	EnvironmentModifiedEventTypeV0_1_1 CDEventType = CDEventType{
		Subject:   "environment",
		Predicate: "modified",
		Version:   "0.1.1",
	}
)
var (
	// EnvironmentModified event type v0.2.0
	EnvironmentModifiedEventTypeV0_2_0 CDEventType = CDEventType{
		Subject:   "environment",
		Predicate: "modified",
		Version:   "0.2.0",
	}
)
var (
	// IncidentDetected event type v0.1.0
	IncidentDetectedEventTypeV0_1_0 CDEventType = CDEventType{
		Subject:   "incident",
		Predicate: "detected",
		Version:   "0.1.0",
	}
)
var (
	// IncidentDetected event type v0.2.0
	IncidentDetectedEventTypeV0_2_0 CDEventType = CDEventType{
		Subject:   "incident",
		Predicate: "detected",
		Version:   "0.2.0",
	}
)
var (
	// IncidentReported event type v0.1.0
	IncidentReportedEventTypeV0_1_0 CDEventType = CDEventType{
		Subject:   "incident",
		Predicate: "reported",
		Version:   "0.1.0",
	}
)
var (
	// IncidentReported event type v0.2.0
	IncidentReportedEventTypeV0_2_0 CDEventType = CDEventType{
		Subject:   "incident",
		Predicate: "reported",
		Version:   "0.2.0",
	}
)
var (
	// IncidentResolved event type v0.1.0
	IncidentResolvedEventTypeV0_1_0 CDEventType = CDEventType{
		Subject:   "incident",
		Predicate: "resolved",
		Version:   "0.1.0",
	}
)
var (
	// IncidentResolved event type v0.2.0
	IncidentResolvedEventTypeV0_2_0 CDEventType = CDEventType{
		Subject:   "incident",
		Predicate: "resolved",
		Version:   "0.2.0",
	}
)
var (
	// PipelineRunFinished event type v0.1.1
	PipelineRunFinishedEventTypeV0_1_1 CDEventType = CDEventType{
		Subject:   "pipelinerun",
		Predicate: "finished",
		Version:   "0.1.1",
	}
)
var (
	// PipelineRunFinished event type v0.2.0
	PipelineRunFinishedEventTypeV0_2_0 CDEventType = CDEventType{
		Subject:   "pipelinerun",
		Predicate: "finished",
		Version:   "0.2.0",
	}
)
var (
	// PipelineRunQueued event type v0.1.1
	PipelineRunQueuedEventTypeV0_1_1 CDEventType = CDEventType{
		Subject:   "pipelinerun",
		Predicate: "queued",
		Version:   "0.1.1",
	}
)
var (
	// PipelineRunQueued event type v0.2.0
	PipelineRunQueuedEventTypeV0_2_0 CDEventType = CDEventType{
		Subject:   "pipelinerun",
		Predicate: "queued",
		Version:   "0.2.0",
	}
)
var (
	// PipelineRunStarted event type v0.1.1
	PipelineRunStartedEventTypeV0_1_1 CDEventType = CDEventType{
		Subject:   "pipelinerun",
		Predicate: "started",
		Version:   "0.1.1",
	}
)
var (
	// PipelineRunStarted event type v0.2.0
	PipelineRunStartedEventTypeV0_2_0 CDEventType = CDEventType{
		Subject:   "pipelinerun",
		Predicate: "started",
		Version:   "0.2.0",
	}
)
var (
	// RepositoryCreated event type v0.1.1
	RepositoryCreatedEventTypeV0_1_1 CDEventType = CDEventType{
		Subject:   "repository",
		Predicate: "created",
		Version:   "0.1.1",
	}
)
var (
	// RepositoryCreated event type v0.2.0
	RepositoryCreatedEventTypeV0_2_0 CDEventType = CDEventType{
		Subject:   "repository",
		Predicate: "created",
		Version:   "0.2.0",
	}
)
var (
	// RepositoryDeleted event type v0.1.1
	RepositoryDeletedEventTypeV0_1_1 CDEventType = CDEventType{
		Subject:   "repository",
		Predicate: "deleted",
		Version:   "0.1.1",
	}
)
var (
	// RepositoryDeleted event type v0.2.0
	RepositoryDeletedEventTypeV0_2_0 CDEventType = CDEventType{
		Subject:   "repository",
		Predicate: "deleted",
		Version:   "0.2.0",
	}
)
var (
	// RepositoryModified event type v0.1.1
	RepositoryModifiedEventTypeV0_1_1 CDEventType = CDEventType{
		Subject:   "repository",
		Predicate: "modified",
		Version:   "0.1.1",
	}
)
var (
	// RepositoryModified event type v0.2.0
	RepositoryModifiedEventTypeV0_2_0 CDEventType = CDEventType{
		Subject:   "repository",
		Predicate: "modified",
		Version:   "0.2.0",
	}
)
var (
	// ServiceDeployed event type v0.1.1
	ServiceDeployedEventTypeV0_1_1 CDEventType = CDEventType{
		Subject:   "service",
		Predicate: "deployed",
		Version:   "0.1.1",
	}
)
var (
	// ServiceDeployed event type v0.2.0
	ServiceDeployedEventTypeV0_2_0 CDEventType = CDEventType{
		Subject:   "service",
		Predicate: "deployed",
		Version:   "0.2.0",
	}
)
var (
	// ServicePublished event type v0.1.1
	ServicePublishedEventTypeV0_1_1 CDEventType = CDEventType{
		Subject:   "service",
		Predicate: "published",
		Version:   "0.1.1",
	}
)
var (
	// ServicePublished event type v0.2.0
	ServicePublishedEventTypeV0_2_0 CDEventType = CDEventType{
		Subject:   "service",
		Predicate: "published",
		Version:   "0.2.0",
	}
)
var (
	// ServiceRemoved event type v0.1.1
	ServiceRemovedEventTypeV0_1_1 CDEventType = CDEventType{
		Subject:   "service",
		Predicate: "removed",
		Version:   "0.1.1",
	}
)
var (
	// ServiceRemoved event type v0.2.0
	ServiceRemovedEventTypeV0_2_0 CDEventType = CDEventType{
		Subject:   "service",
		Predicate: "removed",
		Version:   "0.2.0",
	}
)
var (
	// ServiceRolledback event type v0.1.1
	ServiceRolledbackEventTypeV0_1_1 CDEventType = CDEventType{
		Subject:   "service",
		Predicate: "rolledback",
		Version:   "0.1.1",
	}
)
var (
	// ServiceRolledback event type v0.2.0
	ServiceRolledbackEventTypeV0_2_0 CDEventType = CDEventType{
		Subject:   "service",
		Predicate: "rolledback",
		Version:   "0.2.0",
	}
)
var (
	// ServiceUpgraded event type v0.1.1
	ServiceUpgradedEventTypeV0_1_1 CDEventType = CDEventType{
		Subject:   "service",
		Predicate: "upgraded",
		Version:   "0.1.1",
	}
)
var (
	// ServiceUpgraded event type v0.2.0
	ServiceUpgradedEventTypeV0_2_0 CDEventType = CDEventType{
		Subject:   "service",
		Predicate: "upgraded",
		Version:   "0.2.0",
	}
)
var (
	// TaskRunFinished event type v0.1.1
	TaskRunFinishedEventTypeV0_1_1 CDEventType = CDEventType{
		Subject:   "taskrun",
		Predicate: "finished",
		Version:   "0.1.1",
	}
)
var (
	// TaskRunFinished event type v0.2.0
	TaskRunFinishedEventTypeV0_2_0 CDEventType = CDEventType{
		Subject:   "taskrun",
		Predicate: "finished",
		Version:   "0.2.0",
	}
)
var (
	// TaskRunStarted event type v0.1.1
	TaskRunStartedEventTypeV0_1_1 CDEventType = CDEventType{
		Subject:   "taskrun",
		Predicate: "started",
		Version:   "0.1.1",
	}
)
var (
	// TaskRunStarted event type v0.2.0
	TaskRunStartedEventTypeV0_2_0 CDEventType = CDEventType{
		Subject:   "taskrun",
		Predicate: "started",
		Version:   "0.2.0",
	}
)
var (
	// TestCaseRunFinished event type v0.1.0
	TestCaseRunFinishedEventTypeV0_1_0 CDEventType = CDEventType{
		Subject:   "testcaserun",
		Predicate: "finished",
		Version:   "0.1.0",
	}
)
var (
	// TestCaseRunFinished event type v0.2.0
	TestCaseRunFinishedEventTypeV0_2_0 CDEventType = CDEventType{
		Subject:   "testcaserun",
		Predicate: "finished",
		Version:   "0.2.0",
	}
)
var (
	// TestCaseRunQueued event type v0.1.0
	TestCaseRunQueuedEventTypeV0_1_0 CDEventType = CDEventType{
		Subject:   "testcaserun",
		Predicate: "queued",
		Version:   "0.1.0",
	}
)
var (
	// TestCaseRunQueued event type v0.2.0
	TestCaseRunQueuedEventTypeV0_2_0 CDEventType = CDEventType{
		Subject:   "testcaserun",
		Predicate: "queued",
		Version:   "0.2.0",
	}
)
var (
	// TestCaseRunSkipped event type v0.1.0
	TestCaseRunSkippedEventTypeV0_1_0 CDEventType = CDEventType{
		Subject:   "testcaserun",
		Predicate: "skipped",
		Version:   "0.1.0",
	}
)
var (
	// TestCaseRunStarted event type v0.1.0
	TestCaseRunStartedEventTypeV0_1_0 CDEventType = CDEventType{
		Subject:   "testcaserun",
		Predicate: "started",
		Version:   "0.1.0",
	}
)
var (
	// TestCaseRunStarted event type v0.2.0
	TestCaseRunStartedEventTypeV0_2_0 CDEventType = CDEventType{
		Subject:   "testcaserun",
		Predicate: "started",
		Version:   "0.2.0",
	}
)
var (
	// TestOutputPublished event type v0.1.0
	TestOutputPublishedEventTypeV0_1_0 CDEventType = CDEventType{
		Subject:   "testoutput",
		Predicate: "published",
		Version:   "0.1.0",
	}
)
var (
	// TestOutputPublished event type v0.2.0
	TestOutputPublishedEventTypeV0_2_0 CDEventType = CDEventType{
		Subject:   "testoutput",
		Predicate: "published",
		Version:   "0.2.0",
	}
)
var (
	// TestSuiteRunFinished event type v0.1.0
	TestSuiteRunFinishedEventTypeV0_1_0 CDEventType = CDEventType{
		Subject:   "testsuiterun",
		Predicate: "finished",
		Version:   "0.1.0",
	}
)
var (
	// TestSuiteRunFinished event type v0.2.0
	TestSuiteRunFinishedEventTypeV0_2_0 CDEventType = CDEventType{
		Subject:   "testsuiterun",
		Predicate: "finished",
		Version:   "0.2.0",
	}
)
var (
	// TestSuiteRunQueued event type v0.1.0
	TestSuiteRunQueuedEventTypeV0_1_0 CDEventType = CDEventType{
		Subject:   "testsuiterun",
		Predicate: "queued",
		Version:   "0.1.0",
	}
)
var (
	// TestSuiteRunQueued event type v0.2.0
	TestSuiteRunQueuedEventTypeV0_2_0 CDEventType = CDEventType{
		Subject:   "testsuiterun",
		Predicate: "queued",
		Version:   "0.2.0",
	}
)
var (
	// TestSuiteRunStarted event type v0.1.0
	TestSuiteRunStartedEventTypeV0_1_0 CDEventType = CDEventType{
		Subject:   "testsuiterun",
		Predicate: "started",
		Version:   "0.1.0",
	}
)
var (
	// TestSuiteRunStarted event type v0.2.0
	TestSuiteRunStartedEventTypeV0_2_0 CDEventType = CDEventType{
		Subject:   "testsuiterun",
		Predicate: "started",
		Version:   "0.2.0",
	}
)
var (
	// TicketClosed event type v0.1.0
	TicketClosedEventTypeV0_1_0 CDEventType = CDEventType{
		Subject:   "ticket",
		Predicate: "closed",
		Version:   "0.1.0",
	}
)
var (
	// TicketCreated event type v0.1.0
	TicketCreatedEventTypeV0_1_0 CDEventType = CDEventType{
		Subject:   "ticket",
		Predicate: "created",
		Version:   "0.1.0",
	}
)
var (
	// TicketUpdated event type v0.1.0
	TicketUpdatedEventTypeV0_1_0 CDEventType = CDEventType{
		Subject:   "ticket",
		Predicate: "updated",
		Version:   "0.1.0",
	}
)

func CDEventTypeFromString added in v0.1.1

func CDEventTypeFromString(cdeventType string) (*CDEventType, error)

func ParseType

func ParseType(eventType string) (*CDEventType, error)

ParseType returns a CDEventType if eventType is a valid type Since the list of valid events is spec specific, we only validate in spec specific code whether this event type exists

func (CDEventType) FQSubject added in v0.4.1

func (t CDEventType) FQSubject() string

FQSubject returns the fully qualified subject, which includes the tool name from t.Custom in case of custom events

func (CDEventType) IsCompatible added in v0.1.1

func (t CDEventType) IsCompatible(other CDEventType) bool

Two CDEventTypes are compatible if the subject and predicates are identical and they share the same major version

func (CDEventType) MarshalJSON added in v0.4.1

func (t CDEventType) MarshalJSON() ([]byte, error)

func (CDEventType) Root added in v0.4.1

func (t CDEventType) Root() string

func (CDEventType) Short added in v0.1.1

func (t CDEventType) Short() string

func (CDEventType) String

func (t CDEventType) String() string

func (*CDEventType) UnmarshalJSON added in v0.4.1

func (t *CDEventType) UnmarshalJSON(data []byte) error

func (CDEventType) UnversionedString added in v0.1.1

func (t CDEventType) UnversionedString() string

type CDEventV04 added in v0.4.1

type CDEventV04 interface {
	CDEventReaderV04
	CDEventWriterV04
}

type CDEventWriter

type CDEventWriter interface {

	// The event ID, unique for this event within the event producer (source)
	SetId(id string)

	// The source of the event
	SetSource(source string)

	// The time when the occurrence described in the event happened, or when
	// the event was produced if the former is not available
	SetTimestamp(timestamp time.Time)

	// The ID of the subject, unique within the event producer (source), it may
	// by used in multiple events
	SetSubjectId(subjectId string)

	// The source of the subject. Usually this matches the source of the event
	// but it may also be different.
	SetSubjectSource(subjectSource string)

	// Set custom data. If contentType is "application/json", data can also be
	// anything that can be marshalled into json. For any other
	// content type, data must be passed as a []byte
	SetCustomData(contentType string, data interface{}) error
}

type CDEventWriterV04 added in v0.4.1

type CDEventWriterV04 interface {
	CDEventWriter

	// The ChainId for the event
	SetChainId(chainId string)

	// The links array for the event
	SetLinks(links EmbeddedLinksArray)

	// The custom schema URI
	SetSchemaUri(schema string)
}

type ChangeAbandonedEventV0_1_2 added in v0.4.1

type ChangeAbandonedEventV0_1_2 struct {
	Context Context                      `json:"context"`
	Subject ChangeAbandonedSubjectV0_1_2 `json:"subject"`
	CDEventCustomData
}

func NewChangeAbandonedEventV0_1_2 added in v0.4.1

func NewChangeAbandonedEventV0_1_2(specVersion string) (*ChangeAbandonedEventV0_1_2, error)

New creates a new ChangeAbandonedEventV0_1_2

func (ChangeAbandonedEventV0_1_2) GetCustomData added in v0.4.1

func (e ChangeAbandonedEventV0_1_2) GetCustomData() (interface{}, error)

func (ChangeAbandonedEventV0_1_2) GetCustomDataAs added in v0.4.1

func (e ChangeAbandonedEventV0_1_2) GetCustomDataAs(receiver interface{}) error

func (ChangeAbandonedEventV0_1_2) GetCustomDataContentType added in v0.4.1

func (e ChangeAbandonedEventV0_1_2) GetCustomDataContentType() string

func (ChangeAbandonedEventV0_1_2) GetCustomDataRaw added in v0.4.1

func (e ChangeAbandonedEventV0_1_2) GetCustomDataRaw() ([]byte, error)

func (ChangeAbandonedEventV0_1_2) GetId added in v0.4.1

func (ChangeAbandonedEventV0_1_2) GetSchema added in v0.4.1

func (ChangeAbandonedEventV0_1_2) GetSource added in v0.4.1

func (e ChangeAbandonedEventV0_1_2) GetSource() string

func (ChangeAbandonedEventV0_1_2) GetSubject added in v0.4.1

func (e ChangeAbandonedEventV0_1_2) GetSubject() Subject

func (ChangeAbandonedEventV0_1_2) GetSubjectContent added in v0.4.1

func (e ChangeAbandonedEventV0_1_2) GetSubjectContent() interface{}

func (ChangeAbandonedEventV0_1_2) GetSubjectId added in v0.4.1

func (e ChangeAbandonedEventV0_1_2) GetSubjectId() string

func (ChangeAbandonedEventV0_1_2) GetSubjectSource added in v0.4.1

func (e ChangeAbandonedEventV0_1_2) GetSubjectSource() string

func (ChangeAbandonedEventV0_1_2) GetTimestamp added in v0.4.1

func (e ChangeAbandonedEventV0_1_2) GetTimestamp() time.Time

func (ChangeAbandonedEventV0_1_2) GetType added in v0.4.1

func (ChangeAbandonedEventV0_1_2) GetVersion added in v0.4.1

func (e ChangeAbandonedEventV0_1_2) GetVersion() string

func (*ChangeAbandonedEventV0_1_2) SetCustomData added in v0.4.1

func (e *ChangeAbandonedEventV0_1_2) SetCustomData(contentType string, data interface{}) error

func (*ChangeAbandonedEventV0_1_2) SetId added in v0.4.1

func (e *ChangeAbandonedEventV0_1_2) SetId(id string)

func (*ChangeAbandonedEventV0_1_2) SetSource added in v0.4.1

func (e *ChangeAbandonedEventV0_1_2) SetSource(source string)

func (*ChangeAbandonedEventV0_1_2) SetSubjectId added in v0.4.1

func (e *ChangeAbandonedEventV0_1_2) SetSubjectId(subjectId string)

func (*ChangeAbandonedEventV0_1_2) SetSubjectRepository added in v0.4.1

func (e *ChangeAbandonedEventV0_1_2) SetSubjectRepository(repository *Reference)

func (*ChangeAbandonedEventV0_1_2) SetSubjectSource added in v0.4.1

func (e *ChangeAbandonedEventV0_1_2) SetSubjectSource(subjectSource string)

func (*ChangeAbandonedEventV0_1_2) SetTimestamp added in v0.4.1

func (e *ChangeAbandonedEventV0_1_2) SetTimestamp(timestamp time.Time)

type ChangeAbandonedEventV0_2_0 added in v0.4.1

type ChangeAbandonedEventV0_2_0 struct {
	Context ContextV04                   `json:"context"`
	Subject ChangeAbandonedSubjectV0_2_0 `json:"subject"`
	CDEventCustomData
}

func NewChangeAbandonedEventV0_2_0 added in v0.4.1

func NewChangeAbandonedEventV0_2_0(specVersion string) (*ChangeAbandonedEventV0_2_0, error)

New creates a new ChangeAbandonedEventV0_2_0

func (ChangeAbandonedEventV0_2_0) GetChainId added in v0.4.1

func (e ChangeAbandonedEventV0_2_0) GetChainId() string

func (ChangeAbandonedEventV0_2_0) GetCustomData added in v0.4.1

func (e ChangeAbandonedEventV0_2_0) GetCustomData() (interface{}, error)

func (ChangeAbandonedEventV0_2_0) GetCustomDataAs added in v0.4.1

func (e ChangeAbandonedEventV0_2_0) GetCustomDataAs(receiver interface{}) error

func (ChangeAbandonedEventV0_2_0) GetCustomDataContentType added in v0.4.1

func (e ChangeAbandonedEventV0_2_0) GetCustomDataContentType() string

func (ChangeAbandonedEventV0_2_0) GetCustomDataRaw added in v0.4.1

func (e ChangeAbandonedEventV0_2_0) GetCustomDataRaw() ([]byte, error)

func (ChangeAbandonedEventV0_2_0) GetCustomSchema added in v0.4.1

func (e ChangeAbandonedEventV0_2_0) GetCustomSchema() (*jsonschema.Schema, error)

GetCustomSchema looks up the SchemaUri, if any is defined. If none is defined, it returns nil. If it's defined and cannot be found, it returns an error.

func (ChangeAbandonedEventV0_2_0) GetId added in v0.4.1

func (ChangeAbandonedEventV0_2_0) GetSchema added in v0.4.1

func (ChangeAbandonedEventV0_2_0) GetSchemaUri added in v0.4.1

func (e ChangeAbandonedEventV0_2_0) GetSchemaUri() string

func (ChangeAbandonedEventV0_2_0) GetSource added in v0.4.1

func (e ChangeAbandonedEventV0_2_0) GetSource() string

func (ChangeAbandonedEventV0_2_0) GetSubject added in v0.4.1

func (e ChangeAbandonedEventV0_2_0) GetSubject() Subject

func (ChangeAbandonedEventV0_2_0) GetSubjectContent added in v0.4.1

func (e ChangeAbandonedEventV0_2_0) GetSubjectContent() interface{}

func (ChangeAbandonedEventV0_2_0) GetSubjectId added in v0.4.1

func (e ChangeAbandonedEventV0_2_0) GetSubjectId() string

func (ChangeAbandonedEventV0_2_0) GetSubjectSource added in v0.4.1

func (e ChangeAbandonedEventV0_2_0) GetSubjectSource() string

func (ChangeAbandonedEventV0_2_0) GetTimestamp added in v0.4.1

func (e ChangeAbandonedEventV0_2_0) GetTimestamp() time.Time

func (ChangeAbandonedEventV0_2_0) GetType added in v0.4.1

func (ChangeAbandonedEventV0_2_0) GetVersion added in v0.4.1

func (e ChangeAbandonedEventV0_2_0) GetVersion() string

func (*ChangeAbandonedEventV0_2_0) SetChainId added in v0.4.1

func (e *ChangeAbandonedEventV0_2_0) SetChainId(chainId string)

func (*ChangeAbandonedEventV0_2_0) SetCustomData added in v0.4.1

func (e *ChangeAbandonedEventV0_2_0) SetCustomData(contentType string, data interface{}) error

func (*ChangeAbandonedEventV0_2_0) SetId added in v0.4.1

func (e *ChangeAbandonedEventV0_2_0) SetId(id string)

func (*ChangeAbandonedEventV0_2_0) SetSchemaUri added in v0.4.1

func (e *ChangeAbandonedEventV0_2_0) SetSchemaUri(schema string)

func (*ChangeAbandonedEventV0_2_0) SetSource added in v0.4.1

func (e *ChangeAbandonedEventV0_2_0) SetSource(source string)

func (*ChangeAbandonedEventV0_2_0) SetSubjectId added in v0.4.1

func (e *ChangeAbandonedEventV0_2_0) SetSubjectId(subjectId string)

func (*ChangeAbandonedEventV0_2_0) SetSubjectRepository added in v0.4.1

func (e *ChangeAbandonedEventV0_2_0) SetSubjectRepository(repository *Reference)

func (*ChangeAbandonedEventV0_2_0) SetSubjectSource added in v0.4.1

func (e *ChangeAbandonedEventV0_2_0) SetSubjectSource(subjectSource string)

func (*ChangeAbandonedEventV0_2_0) SetTimestamp added in v0.4.1

func (e *ChangeAbandonedEventV0_2_0) SetTimestamp(timestamp time.Time)

type ChangeAbandonedSubjectContentV0_1_2 added in v0.4.1

type ChangeAbandonedSubjectContentV0_1_2 struct {
	Repository *Reference `json:"repository,omitempty"`
}

type ChangeAbandonedSubjectContentV0_2_0 added in v0.4.1

type ChangeAbandonedSubjectContentV0_2_0 struct {
	Repository *Reference `json:"repository,omitempty"`
}

type ChangeAbandonedSubjectV0_1_2 added in v0.4.1

type ChangeAbandonedSubjectV0_1_2 struct {
	SubjectBase
	Content ChangeAbandonedSubjectContentV0_1_2 `json:"content"`
}

func (ChangeAbandonedSubjectV0_1_2) GetSubjectType added in v0.4.1

func (sc ChangeAbandonedSubjectV0_1_2) GetSubjectType() SubjectType

type ChangeAbandonedSubjectV0_2_0 added in v0.4.1

type ChangeAbandonedSubjectV0_2_0 struct {
	SubjectBase
	Content ChangeAbandonedSubjectContentV0_2_0 `json:"content"`
}

func (ChangeAbandonedSubjectV0_2_0) GetSubjectType added in v0.4.1

func (sc ChangeAbandonedSubjectV0_2_0) GetSubjectType() SubjectType

type ChangeCreatedEventV0_1_2 added in v0.4.1

type ChangeCreatedEventV0_1_2 struct {
	Context Context                    `json:"context"`
	Subject ChangeCreatedSubjectV0_1_2 `json:"subject"`
	CDEventCustomData
}

func NewChangeCreatedEventV0_1_2 added in v0.4.1

func NewChangeCreatedEventV0_1_2(specVersion string) (*ChangeCreatedEventV0_1_2, error)

New creates a new ChangeCreatedEventV0_1_2

func (ChangeCreatedEventV0_1_2) GetCustomData added in v0.4.1

func (e ChangeCreatedEventV0_1_2) GetCustomData() (interface{}, error)

func (ChangeCreatedEventV0_1_2) GetCustomDataAs added in v0.4.1

func (e ChangeCreatedEventV0_1_2) GetCustomDataAs(receiver interface{}) error

func (ChangeCreatedEventV0_1_2) GetCustomDataContentType added in v0.4.1

func (e ChangeCreatedEventV0_1_2) GetCustomDataContentType() string

func (ChangeCreatedEventV0_1_2) GetCustomDataRaw added in v0.4.1

func (e ChangeCreatedEventV0_1_2) GetCustomDataRaw() ([]byte, error)

func (ChangeCreatedEventV0_1_2) GetId added in v0.4.1

func (e ChangeCreatedEventV0_1_2) GetId() string

func (ChangeCreatedEventV0_1_2) GetSchema added in v0.4.1

func (ChangeCreatedEventV0_1_2) GetSource added in v0.4.1

func (e ChangeCreatedEventV0_1_2) GetSource() string

func (ChangeCreatedEventV0_1_2) GetSubject added in v0.4.1

func (e ChangeCreatedEventV0_1_2) GetSubject() Subject

func (ChangeCreatedEventV0_1_2) GetSubjectContent added in v0.4.1

func (e ChangeCreatedEventV0_1_2) GetSubjectContent() interface{}

func (ChangeCreatedEventV0_1_2) GetSubjectId added in v0.4.1

func (e ChangeCreatedEventV0_1_2) GetSubjectId() string

func (ChangeCreatedEventV0_1_2) GetSubjectSource added in v0.4.1

func (e ChangeCreatedEventV0_1_2) GetSubjectSource() string

func (ChangeCreatedEventV0_1_2) GetTimestamp added in v0.4.1

func (e ChangeCreatedEventV0_1_2) GetTimestamp() time.Time

func (ChangeCreatedEventV0_1_2) GetType added in v0.4.1

func (ChangeCreatedEventV0_1_2) GetVersion added in v0.4.1

func (e ChangeCreatedEventV0_1_2) GetVersion() string

func (*ChangeCreatedEventV0_1_2) SetCustomData added in v0.4.1

func (e *ChangeCreatedEventV0_1_2) SetCustomData(contentType string, data interface{}) error

func (*ChangeCreatedEventV0_1_2) SetId added in v0.4.1

func (e *ChangeCreatedEventV0_1_2) SetId(id string)

func (*ChangeCreatedEventV0_1_2) SetSource added in v0.4.1

func (e *ChangeCreatedEventV0_1_2) SetSource(source string)

func (*ChangeCreatedEventV0_1_2) SetSubjectId added in v0.4.1

func (e *ChangeCreatedEventV0_1_2) SetSubjectId(subjectId string)

func (*ChangeCreatedEventV0_1_2) SetSubjectRepository added in v0.4.1

func (e *ChangeCreatedEventV0_1_2) SetSubjectRepository(repository *Reference)

func (*ChangeCreatedEventV0_1_2) SetSubjectSource added in v0.4.1

func (e *ChangeCreatedEventV0_1_2) SetSubjectSource(subjectSource string)

func (*ChangeCreatedEventV0_1_2) SetTimestamp added in v0.4.1

func (e *ChangeCreatedEventV0_1_2) SetTimestamp(timestamp time.Time)

type ChangeCreatedEventV0_3_0 added in v0.4.1

type ChangeCreatedEventV0_3_0 struct {
	Context ContextV04                 `json:"context"`
	Subject ChangeCreatedSubjectV0_3_0 `json:"subject"`
	CDEventCustomData
}

func NewChangeCreatedEventV0_3_0 added in v0.4.1

func NewChangeCreatedEventV0_3_0(specVersion string) (*ChangeCreatedEventV0_3_0, error)

New creates a new ChangeCreatedEventV0_3_0

func (ChangeCreatedEventV0_3_0) GetChainId added in v0.4.1

func (e ChangeCreatedEventV0_3_0) GetChainId() string

func (ChangeCreatedEventV0_3_0) GetCustomData added in v0.4.1

func (e ChangeCreatedEventV0_3_0) GetCustomData() (interface{}, error)

func (ChangeCreatedEventV0_3_0) GetCustomDataAs added in v0.4.1

func (e ChangeCreatedEventV0_3_0) GetCustomDataAs(receiver interface{}) error

func (ChangeCreatedEventV0_3_0) GetCustomDataContentType added in v0.4.1

func (e ChangeCreatedEventV0_3_0) GetCustomDataContentType() string

func (ChangeCreatedEventV0_3_0) GetCustomDataRaw added in v0.4.1

func (e ChangeCreatedEventV0_3_0) GetCustomDataRaw() ([]byte, error)

func (ChangeCreatedEventV0_3_0) GetCustomSchema added in v0.4.1

func (e ChangeCreatedEventV0_3_0) GetCustomSchema() (*jsonschema.Schema, error)

GetCustomSchema looks up the SchemaUri, if any is defined. If none is defined, it returns nil. If it's defined and cannot be found, it returns an error.

func (ChangeCreatedEventV0_3_0) GetId added in v0.4.1

func (e ChangeCreatedEventV0_3_0) GetId() string

func (ChangeCreatedEventV0_3_0) GetSchema added in v0.4.1

func (ChangeCreatedEventV0_3_0) GetSchemaUri added in v0.4.1

func (e ChangeCreatedEventV0_3_0) GetSchemaUri() string

func (ChangeCreatedEventV0_3_0) GetSource added in v0.4.1

func (e ChangeCreatedEventV0_3_0) GetSource() string

func (ChangeCreatedEventV0_3_0) GetSubject added in v0.4.1

func (e ChangeCreatedEventV0_3_0) GetSubject() Subject

func (ChangeCreatedEventV0_3_0) GetSubjectContent added in v0.4.1

func (e ChangeCreatedEventV0_3_0) GetSubjectContent() interface{}

func (ChangeCreatedEventV0_3_0) GetSubjectId added in v0.4.1

func (e ChangeCreatedEventV0_3_0) GetSubjectId() string

func (ChangeCreatedEventV0_3_0) GetSubjectSource added in v0.4.1

func (e ChangeCreatedEventV0_3_0) GetSubjectSource() string

func (ChangeCreatedEventV0_3_0) GetTimestamp added in v0.4.1

func (e ChangeCreatedEventV0_3_0) GetTimestamp() time.Time

func (ChangeCreatedEventV0_3_0) GetType added in v0.4.1

func (ChangeCreatedEventV0_3_0) GetVersion added in v0.4.1

func (e ChangeCreatedEventV0_3_0) GetVersion() string

func (*ChangeCreatedEventV0_3_0) SetChainId added in v0.4.1

func (e *ChangeCreatedEventV0_3_0) SetChainId(chainId string)

func (*ChangeCreatedEventV0_3_0) SetCustomData added in v0.4.1

func (e *ChangeCreatedEventV0_3_0) SetCustomData(contentType string, data interface{}) error

func (*ChangeCreatedEventV0_3_0) SetId added in v0.4.1

func (e *ChangeCreatedEventV0_3_0) SetId(id string)
func (e *ChangeCreatedEventV0_3_0) SetLinks(links EmbeddedLinksArray)

func (*ChangeCreatedEventV0_3_0) SetSchemaUri added in v0.4.1

func (e *ChangeCreatedEventV0_3_0) SetSchemaUri(schema string)

func (*ChangeCreatedEventV0_3_0) SetSource added in v0.4.1

func (e *ChangeCreatedEventV0_3_0) SetSource(source string)

func (*ChangeCreatedEventV0_3_0) SetSubjectDescription added in v0.4.1

func (e *ChangeCreatedEventV0_3_0) SetSubjectDescription(description string)

func (*ChangeCreatedEventV0_3_0) SetSubjectId added in v0.4.1

func (e *ChangeCreatedEventV0_3_0) SetSubjectId(subjectId string)

func (*ChangeCreatedEventV0_3_0) SetSubjectRepository added in v0.4.1

func (e *ChangeCreatedEventV0_3_0) SetSubjectRepository(repository *Reference)

func (*ChangeCreatedEventV0_3_0) SetSubjectSource added in v0.4.1

func (e *ChangeCreatedEventV0_3_0) SetSubjectSource(subjectSource string)

func (*ChangeCreatedEventV0_3_0) SetTimestamp added in v0.4.1

func (e *ChangeCreatedEventV0_3_0) SetTimestamp(timestamp time.Time)

type ChangeCreatedSubjectContentV0_1_2 added in v0.4.1

type ChangeCreatedSubjectContentV0_1_2 struct {
	Repository *Reference `json:"repository,omitempty"`
}

type ChangeCreatedSubjectContentV0_3_0 added in v0.4.1

type ChangeCreatedSubjectContentV0_3_0 struct {
	Description string `json:"description,omitempty"`

	Repository *Reference `json:"repository,omitempty"`
}

type ChangeCreatedSubjectV0_1_2 added in v0.4.1

type ChangeCreatedSubjectV0_1_2 struct {
	SubjectBase
	Content ChangeCreatedSubjectContentV0_1_2 `json:"content"`
}

func (ChangeCreatedSubjectV0_1_2) GetSubjectType added in v0.4.1

func (sc ChangeCreatedSubjectV0_1_2) GetSubjectType() SubjectType

type ChangeCreatedSubjectV0_3_0 added in v0.4.1

type ChangeCreatedSubjectV0_3_0 struct {
	SubjectBase
	Content ChangeCreatedSubjectContentV0_3_0 `json:"content"`
}

func (ChangeCreatedSubjectV0_3_0) GetSubjectType added in v0.4.1

func (sc ChangeCreatedSubjectV0_3_0) GetSubjectType() SubjectType

type ChangeMergedEventV0_1_2 added in v0.4.1

type ChangeMergedEventV0_1_2 struct {
	Context Context                   `json:"context"`
	Subject ChangeMergedSubjectV0_1_2 `json:"subject"`
	CDEventCustomData
}

func NewChangeMergedEventV0_1_2 added in v0.4.1

func NewChangeMergedEventV0_1_2(specVersion string) (*ChangeMergedEventV0_1_2, error)

New creates a new ChangeMergedEventV0_1_2

func (ChangeMergedEventV0_1_2) GetCustomData added in v0.4.1

func (e ChangeMergedEventV0_1_2) GetCustomData() (interface{}, error)

func (ChangeMergedEventV0_1_2) GetCustomDataAs added in v0.4.1

func (e ChangeMergedEventV0_1_2) GetCustomDataAs(receiver interface{}) error

func (ChangeMergedEventV0_1_2) GetCustomDataContentType added in v0.4.1

func (e ChangeMergedEventV0_1_2) GetCustomDataContentType() string

func (ChangeMergedEventV0_1_2) GetCustomDataRaw added in v0.4.1

func (e ChangeMergedEventV0_1_2) GetCustomDataRaw() ([]byte, error)

func (ChangeMergedEventV0_1_2) GetId added in v0.4.1

func (e ChangeMergedEventV0_1_2) GetId() string

func (ChangeMergedEventV0_1_2) GetSchema added in v0.4.1

func (ChangeMergedEventV0_1_2) GetSource added in v0.4.1

func (e ChangeMergedEventV0_1_2) GetSource() string

func (ChangeMergedEventV0_1_2) GetSubject added in v0.4.1

func (e ChangeMergedEventV0_1_2) GetSubject() Subject

func (ChangeMergedEventV0_1_2) GetSubjectContent added in v0.4.1

func (e ChangeMergedEventV0_1_2) GetSubjectContent() interface{}

func (ChangeMergedEventV0_1_2) GetSubjectId added in v0.4.1

func (e ChangeMergedEventV0_1_2) GetSubjectId() string

func (ChangeMergedEventV0_1_2) GetSubjectSource added in v0.4.1

func (e ChangeMergedEventV0_1_2) GetSubjectSource() string

func (ChangeMergedEventV0_1_2) GetTimestamp added in v0.4.1

func (e ChangeMergedEventV0_1_2) GetTimestamp() time.Time

func (ChangeMergedEventV0_1_2) GetType added in v0.4.1

func (ChangeMergedEventV0_1_2) GetVersion added in v0.4.1

func (e ChangeMergedEventV0_1_2) GetVersion() string

func (*ChangeMergedEventV0_1_2) SetCustomData added in v0.4.1

func (e *ChangeMergedEventV0_1_2) SetCustomData(contentType string, data interface{}) error

func (*ChangeMergedEventV0_1_2) SetId added in v0.4.1

func (e *ChangeMergedEventV0_1_2) SetId(id string)

func (*ChangeMergedEventV0_1_2) SetSource added in v0.4.1

func (e *ChangeMergedEventV0_1_2) SetSource(source string)

func (*ChangeMergedEventV0_1_2) SetSubjectId added in v0.4.1

func (e *ChangeMergedEventV0_1_2) SetSubjectId(subjectId string)

func (*ChangeMergedEventV0_1_2) SetSubjectRepository added in v0.4.1

func (e *ChangeMergedEventV0_1_2) SetSubjectRepository(repository *Reference)

func (*ChangeMergedEventV0_1_2) SetSubjectSource added in v0.4.1

func (e *ChangeMergedEventV0_1_2) SetSubjectSource(subjectSource string)

func (*ChangeMergedEventV0_1_2) SetTimestamp added in v0.4.1

func (e *ChangeMergedEventV0_1_2) SetTimestamp(timestamp time.Time)

type ChangeMergedEventV0_2_0 added in v0.4.1

type ChangeMergedEventV0_2_0 struct {
	Context ContextV04                `json:"context"`
	Subject ChangeMergedSubjectV0_2_0 `json:"subject"`
	CDEventCustomData
}

func NewChangeMergedEventV0_2_0 added in v0.4.1

func NewChangeMergedEventV0_2_0(specVersion string) (*ChangeMergedEventV0_2_0, error)

New creates a new ChangeMergedEventV0_2_0

func (ChangeMergedEventV0_2_0) GetChainId added in v0.4.1

func (e ChangeMergedEventV0_2_0) GetChainId() string

func (ChangeMergedEventV0_2_0) GetCustomData added in v0.4.1

func (e ChangeMergedEventV0_2_0) GetCustomData() (interface{}, error)

func (ChangeMergedEventV0_2_0) GetCustomDataAs added in v0.4.1

func (e ChangeMergedEventV0_2_0) GetCustomDataAs(receiver interface{}) error

func (ChangeMergedEventV0_2_0) GetCustomDataContentType added in v0.4.1

func (e ChangeMergedEventV0_2_0) GetCustomDataContentType() string

func (ChangeMergedEventV0_2_0) GetCustomDataRaw added in v0.4.1

func (e ChangeMergedEventV0_2_0) GetCustomDataRaw() ([]byte, error)

func (ChangeMergedEventV0_2_0) GetCustomSchema added in v0.4.1

func (e ChangeMergedEventV0_2_0) GetCustomSchema() (*jsonschema.Schema, error)

GetCustomSchema looks up the SchemaUri, if any is defined. If none is defined, it returns nil. If it's defined and cannot be found, it returns an error.

func (ChangeMergedEventV0_2_0) GetId added in v0.4.1

func (e ChangeMergedEventV0_2_0) GetId() string

func (ChangeMergedEventV0_2_0) GetSchema added in v0.4.1

func (ChangeMergedEventV0_2_0) GetSchemaUri added in v0.4.1

func (e ChangeMergedEventV0_2_0) GetSchemaUri() string

func (ChangeMergedEventV0_2_0) GetSource added in v0.4.1

func (e ChangeMergedEventV0_2_0) GetSource() string

func (ChangeMergedEventV0_2_0) GetSubject added in v0.4.1

func (e ChangeMergedEventV0_2_0) GetSubject() Subject

func (ChangeMergedEventV0_2_0) GetSubjectContent added in v0.4.1

func (e ChangeMergedEventV0_2_0) GetSubjectContent() interface{}

func (ChangeMergedEventV0_2_0) GetSubjectId added in v0.4.1

func (e ChangeMergedEventV0_2_0) GetSubjectId() string

func (ChangeMergedEventV0_2_0) GetSubjectSource added in v0.4.1

func (e ChangeMergedEventV0_2_0) GetSubjectSource() string

func (ChangeMergedEventV0_2_0) GetTimestamp added in v0.4.1

func (e ChangeMergedEventV0_2_0) GetTimestamp() time.Time

func (ChangeMergedEventV0_2_0) GetType added in v0.4.1

func (ChangeMergedEventV0_2_0) GetVersion added in v0.4.1

func (e ChangeMergedEventV0_2_0) GetVersion() string

func (*ChangeMergedEventV0_2_0) SetChainId added in v0.4.1

func (e *ChangeMergedEventV0_2_0) SetChainId(chainId string)

func (*ChangeMergedEventV0_2_0) SetCustomData added in v0.4.1

func (e *ChangeMergedEventV0_2_0) SetCustomData(contentType string, data interface{}) error

func (*ChangeMergedEventV0_2_0) SetId added in v0.4.1

func (e *ChangeMergedEventV0_2_0) SetId(id string)
func (e *ChangeMergedEventV0_2_0) SetLinks(links EmbeddedLinksArray)

func (*ChangeMergedEventV0_2_0) SetSchemaUri added in v0.4.1

func (e *ChangeMergedEventV0_2_0) SetSchemaUri(schema string)

func (*ChangeMergedEventV0_2_0) SetSource added in v0.4.1

func (e *ChangeMergedEventV0_2_0) SetSource(source string)

func (*ChangeMergedEventV0_2_0) SetSubjectId added in v0.4.1

func (e *ChangeMergedEventV0_2_0) SetSubjectId(subjectId string)

func (*ChangeMergedEventV0_2_0) SetSubjectRepository added in v0.4.1

func (e *ChangeMergedEventV0_2_0) SetSubjectRepository(repository *Reference)

func (*ChangeMergedEventV0_2_0) SetSubjectSource added in v0.4.1

func (e *ChangeMergedEventV0_2_0) SetSubjectSource(subjectSource string)

func (*ChangeMergedEventV0_2_0) SetTimestamp added in v0.4.1

func (e *ChangeMergedEventV0_2_0) SetTimestamp(timestamp time.Time)

type ChangeMergedSubjectContentV0_1_2 added in v0.4.1

type ChangeMergedSubjectContentV0_1_2 struct {
	Repository *Reference `json:"repository,omitempty"`
}

type ChangeMergedSubjectContentV0_2_0 added in v0.4.1

type ChangeMergedSubjectContentV0_2_0 struct {
	Repository *Reference `json:"repository,omitempty"`
}

type ChangeMergedSubjectV0_1_2 added in v0.4.1

type ChangeMergedSubjectV0_1_2 struct {
	SubjectBase
	Content ChangeMergedSubjectContentV0_1_2 `json:"content"`
}

func (ChangeMergedSubjectV0_1_2) GetSubjectType added in v0.4.1

func (sc ChangeMergedSubjectV0_1_2) GetSubjectType() SubjectType

type ChangeMergedSubjectV0_2_0 added in v0.4.1

type ChangeMergedSubjectV0_2_0 struct {
	SubjectBase
	Content ChangeMergedSubjectContentV0_2_0 `json:"content"`
}

func (ChangeMergedSubjectV0_2_0) GetSubjectType added in v0.4.1

func (sc ChangeMergedSubjectV0_2_0) GetSubjectType() SubjectType

type ChangeReviewedEventV0_1_2 added in v0.4.1

type ChangeReviewedEventV0_1_2 struct {
	Context Context                     `json:"context"`
	Subject ChangeReviewedSubjectV0_1_2 `json:"subject"`
	CDEventCustomData
}

func NewChangeReviewedEventV0_1_2 added in v0.4.1

func NewChangeReviewedEventV0_1_2(specVersion string) (*ChangeReviewedEventV0_1_2, error)

New creates a new ChangeReviewedEventV0_1_2

func (ChangeReviewedEventV0_1_2) GetCustomData added in v0.4.1

func (e ChangeReviewedEventV0_1_2) GetCustomData() (interface{}, error)

func (ChangeReviewedEventV0_1_2) GetCustomDataAs added in v0.4.1

func (e ChangeReviewedEventV0_1_2) GetCustomDataAs(receiver interface{}) error

func (ChangeReviewedEventV0_1_2) GetCustomDataContentType added in v0.4.1

func (e ChangeReviewedEventV0_1_2) GetCustomDataContentType() string

func (ChangeReviewedEventV0_1_2) GetCustomDataRaw added in v0.4.1

func (e ChangeReviewedEventV0_1_2) GetCustomDataRaw() ([]byte, error)

func (ChangeReviewedEventV0_1_2) GetId added in v0.4.1

func (ChangeReviewedEventV0_1_2) GetSchema added in v0.4.1

func (ChangeReviewedEventV0_1_2) GetSource added in v0.4.1

func (e ChangeReviewedEventV0_1_2) GetSource() string

func (ChangeReviewedEventV0_1_2) GetSubject added in v0.4.1

func (e ChangeReviewedEventV0_1_2) GetSubject() Subject

func (ChangeReviewedEventV0_1_2) GetSubjectContent added in v0.4.1

func (e ChangeReviewedEventV0_1_2) GetSubjectContent() interface{}

func (ChangeReviewedEventV0_1_2) GetSubjectId added in v0.4.1

func (e ChangeReviewedEventV0_1_2) GetSubjectId() string

func (ChangeReviewedEventV0_1_2) GetSubjectSource added in v0.4.1

func (e ChangeReviewedEventV0_1_2) GetSubjectSource() string

func (ChangeReviewedEventV0_1_2) GetTimestamp added in v0.4.1

func (e ChangeReviewedEventV0_1_2) GetTimestamp() time.Time

func (ChangeReviewedEventV0_1_2) GetType added in v0.4.1

func (ChangeReviewedEventV0_1_2) GetVersion added in v0.4.1

func (e ChangeReviewedEventV0_1_2) GetVersion() string

func (*ChangeReviewedEventV0_1_2) SetCustomData added in v0.4.1

func (e *ChangeReviewedEventV0_1_2) SetCustomData(contentType string, data interface{}) error

func (*ChangeReviewedEventV0_1_2) SetId added in v0.4.1

func (e *ChangeReviewedEventV0_1_2) SetId(id string)

func (*ChangeReviewedEventV0_1_2) SetSource added in v0.4.1

func (e *ChangeReviewedEventV0_1_2) SetSource(source string)

func (*ChangeReviewedEventV0_1_2) SetSubjectId added in v0.4.1

func (e *ChangeReviewedEventV0_1_2) SetSubjectId(subjectId string)

func (*ChangeReviewedEventV0_1_2) SetSubjectRepository added in v0.4.1

func (e *ChangeReviewedEventV0_1_2) SetSubjectRepository(repository *Reference)

func (*ChangeReviewedEventV0_1_2) SetSubjectSource added in v0.4.1

func (e *ChangeReviewedEventV0_1_2) SetSubjectSource(subjectSource string)

func (*ChangeReviewedEventV0_1_2) SetTimestamp added in v0.4.1

func (e *ChangeReviewedEventV0_1_2) SetTimestamp(timestamp time.Time)

type ChangeReviewedEventV0_2_0 added in v0.4.1

type ChangeReviewedEventV0_2_0 struct {
	Context ContextV04                  `json:"context"`
	Subject ChangeReviewedSubjectV0_2_0 `json:"subject"`
	CDEventCustomData
}

func NewChangeReviewedEventV0_2_0 added in v0.4.1

func NewChangeReviewedEventV0_2_0(specVersion string) (*ChangeReviewedEventV0_2_0, error)

New creates a new ChangeReviewedEventV0_2_0

func (ChangeReviewedEventV0_2_0) GetChainId added in v0.4.1

func (e ChangeReviewedEventV0_2_0) GetChainId() string

func (ChangeReviewedEventV0_2_0) GetCustomData added in v0.4.1

func (e ChangeReviewedEventV0_2_0) GetCustomData() (interface{}, error)

func (ChangeReviewedEventV0_2_0) GetCustomDataAs added in v0.4.1

func (e ChangeReviewedEventV0_2_0) GetCustomDataAs(receiver interface{}) error

func (ChangeReviewedEventV0_2_0) GetCustomDataContentType added in v0.4.1

func (e ChangeReviewedEventV0_2_0) GetCustomDataContentType() string

func (ChangeReviewedEventV0_2_0) GetCustomDataRaw added in v0.4.1

func (e ChangeReviewedEventV0_2_0) GetCustomDataRaw() ([]byte, error)

func (ChangeReviewedEventV0_2_0) GetCustomSchema added in v0.4.1

func (e ChangeReviewedEventV0_2_0) GetCustomSchema() (*jsonschema.Schema, error)

GetCustomSchema looks up the SchemaUri, if any is defined. If none is defined, it returns nil. If it's defined and cannot be found, it returns an error.

func (ChangeReviewedEventV0_2_0) GetId added in v0.4.1

func (ChangeReviewedEventV0_2_0) GetSchema added in v0.4.1

func (ChangeReviewedEventV0_2_0) GetSchemaUri added in v0.4.1

func (e ChangeReviewedEventV0_2_0) GetSchemaUri() string

func (ChangeReviewedEventV0_2_0) GetSource added in v0.4.1

func (e ChangeReviewedEventV0_2_0) GetSource() string

func (ChangeReviewedEventV0_2_0) GetSubject added in v0.4.1

func (e ChangeReviewedEventV0_2_0) GetSubject() Subject

func (ChangeReviewedEventV0_2_0) GetSubjectContent added in v0.4.1

func (e ChangeReviewedEventV0_2_0) GetSubjectContent() interface{}

func (ChangeReviewedEventV0_2_0) GetSubjectId added in v0.4.1

func (e ChangeReviewedEventV0_2_0) GetSubjectId() string

func (ChangeReviewedEventV0_2_0) GetSubjectSource added in v0.4.1

func (e ChangeReviewedEventV0_2_0) GetSubjectSource() string

func (ChangeReviewedEventV0_2_0) GetTimestamp added in v0.4.1

func (e ChangeReviewedEventV0_2_0) GetTimestamp() time.Time

func (ChangeReviewedEventV0_2_0) GetType added in v0.4.1

func (ChangeReviewedEventV0_2_0) GetVersion added in v0.4.1

func (e ChangeReviewedEventV0_2_0) GetVersion() string

func (*ChangeReviewedEventV0_2_0) SetChainId added in v0.4.1

func (e *ChangeReviewedEventV0_2_0) SetChainId(chainId string)

func (*ChangeReviewedEventV0_2_0) SetCustomData added in v0.4.1

func (e *ChangeReviewedEventV0_2_0) SetCustomData(contentType string, data interface{}) error

func (*ChangeReviewedEventV0_2_0) SetId added in v0.4.1

func (e *ChangeReviewedEventV0_2_0) SetId(id string)
func (e *ChangeReviewedEventV0_2_0) SetLinks(links EmbeddedLinksArray)

func (*ChangeReviewedEventV0_2_0) SetSchemaUri added in v0.4.1

func (e *ChangeReviewedEventV0_2_0) SetSchemaUri(schema string)

func (*ChangeReviewedEventV0_2_0) SetSource added in v0.4.1

func (e *ChangeReviewedEventV0_2_0) SetSource(source string)

func (*ChangeReviewedEventV0_2_0) SetSubjectId added in v0.4.1

func (e *ChangeReviewedEventV0_2_0) SetSubjectId(subjectId string)

func (*ChangeReviewedEventV0_2_0) SetSubjectRepository added in v0.4.1

func (e *ChangeReviewedEventV0_2_0) SetSubjectRepository(repository *Reference)

func (*ChangeReviewedEventV0_2_0) SetSubjectSource added in v0.4.1

func (e *ChangeReviewedEventV0_2_0) SetSubjectSource(subjectSource string)

func (*ChangeReviewedEventV0_2_0) SetTimestamp added in v0.4.1

func (e *ChangeReviewedEventV0_2_0) SetTimestamp(timestamp time.Time)

type ChangeReviewedSubjectContentV0_1_2 added in v0.4.1

type ChangeReviewedSubjectContentV0_1_2 struct {
	Repository *Reference `json:"repository,omitempty"`
}

type ChangeReviewedSubjectContentV0_2_0 added in v0.4.1

type ChangeReviewedSubjectContentV0_2_0 struct {
	Repository *Reference `json:"repository,omitempty"`
}

type ChangeReviewedSubjectV0_1_2 added in v0.4.1

type ChangeReviewedSubjectV0_1_2 struct {
	SubjectBase
	Content ChangeReviewedSubjectContentV0_1_2 `json:"content"`
}

func (ChangeReviewedSubjectV0_1_2) GetSubjectType added in v0.4.1

func (sc ChangeReviewedSubjectV0_1_2) GetSubjectType() SubjectType

type ChangeReviewedSubjectV0_2_0 added in v0.4.1

type ChangeReviewedSubjectV0_2_0 struct {
	SubjectBase
	Content ChangeReviewedSubjectContentV0_2_0 `json:"content"`
}

func (ChangeReviewedSubjectV0_2_0) GetSubjectType added in v0.4.1

func (sc ChangeReviewedSubjectV0_2_0) GetSubjectType() SubjectType

type ChangeUpdatedEventV0_1_2 added in v0.4.1

type ChangeUpdatedEventV0_1_2 struct {
	Context Context                    `json:"context"`
	Subject ChangeUpdatedSubjectV0_1_2 `json:"subject"`
	CDEventCustomData
}

func NewChangeUpdatedEventV0_1_2 added in v0.4.1

func NewChangeUpdatedEventV0_1_2(specVersion string) (*ChangeUpdatedEventV0_1_2, error)

New creates a new ChangeUpdatedEventV0_1_2

func (ChangeUpdatedEventV0_1_2) GetCustomData added in v0.4.1

func (e ChangeUpdatedEventV0_1_2) GetCustomData() (interface{}, error)

func (ChangeUpdatedEventV0_1_2) GetCustomDataAs added in v0.4.1

func (e ChangeUpdatedEventV0_1_2) GetCustomDataAs(receiver interface{}) error

func (ChangeUpdatedEventV0_1_2) GetCustomDataContentType added in v0.4.1

func (e ChangeUpdatedEventV0_1_2) GetCustomDataContentType() string

func (ChangeUpdatedEventV0_1_2) GetCustomDataRaw added in v0.4.1

func (e ChangeUpdatedEventV0_1_2) GetCustomDataRaw() ([]byte, error)

func (ChangeUpdatedEventV0_1_2) GetId added in v0.4.1

func (e ChangeUpdatedEventV0_1_2) GetId() string

func (ChangeUpdatedEventV0_1_2) GetSchema added in v0.4.1

func (ChangeUpdatedEventV0_1_2) GetSource added in v0.4.1

func (e ChangeUpdatedEventV0_1_2) GetSource() string

func (ChangeUpdatedEventV0_1_2) GetSubject added in v0.4.1

func (e ChangeUpdatedEventV0_1_2) GetSubject() Subject

func (ChangeUpdatedEventV0_1_2) GetSubjectContent added in v0.4.1

func (e ChangeUpdatedEventV0_1_2) GetSubjectContent() interface{}

func (ChangeUpdatedEventV0_1_2) GetSubjectId added in v0.4.1

func (e ChangeUpdatedEventV0_1_2) GetSubjectId() string

func (ChangeUpdatedEventV0_1_2) GetSubjectSource added in v0.4.1

func (e ChangeUpdatedEventV0_1_2) GetSubjectSource() string

func (ChangeUpdatedEventV0_1_2) GetTimestamp added in v0.4.1

func (e ChangeUpdatedEventV0_1_2) GetTimestamp() time.Time

func (ChangeUpdatedEventV0_1_2) GetType added in v0.4.1

func (ChangeUpdatedEventV0_1_2) GetVersion added in v0.4.1

func (e ChangeUpdatedEventV0_1_2) GetVersion() string

func (*ChangeUpdatedEventV0_1_2) SetCustomData added in v0.4.1

func (e *ChangeUpdatedEventV0_1_2) SetCustomData(contentType string, data interface{}) error

func (*ChangeUpdatedEventV0_1_2) SetId added in v0.4.1

func (e *ChangeUpdatedEventV0_1_2) SetId(id string)

func (*ChangeUpdatedEventV0_1_2) SetSource added in v0.4.1

func (e *ChangeUpdatedEventV0_1_2) SetSource(source string)

func (*ChangeUpdatedEventV0_1_2) SetSubjectId added in v0.4.1

func (e *ChangeUpdatedEventV0_1_2) SetSubjectId(subjectId string)

func (*ChangeUpdatedEventV0_1_2) SetSubjectRepository added in v0.4.1

func (e *ChangeUpdatedEventV0_1_2) SetSubjectRepository(repository *Reference)

func (*ChangeUpdatedEventV0_1_2) SetSubjectSource added in v0.4.1

func (e *ChangeUpdatedEventV0_1_2) SetSubjectSource(subjectSource string)

func (*ChangeUpdatedEventV0_1_2) SetTimestamp added in v0.4.1

func (e *ChangeUpdatedEventV0_1_2) SetTimestamp(timestamp time.Time)

type ChangeUpdatedEventV0_2_0 added in v0.4.1

type ChangeUpdatedEventV0_2_0 struct {
	Context ContextV04                 `json:"context"`
	Subject ChangeUpdatedSubjectV0_2_0 `json:"subject"`
	CDEventCustomData
}

func NewChangeUpdatedEventV0_2_0 added in v0.4.1

func NewChangeUpdatedEventV0_2_0(specVersion string) (*ChangeUpdatedEventV0_2_0, error)

New creates a new ChangeUpdatedEventV0_2_0

func (ChangeUpdatedEventV0_2_0) GetChainId added in v0.4.1

func (e ChangeUpdatedEventV0_2_0) GetChainId() string

func (ChangeUpdatedEventV0_2_0) GetCustomData added in v0.4.1

func (e ChangeUpdatedEventV0_2_0) GetCustomData() (interface{}, error)

func (ChangeUpdatedEventV0_2_0) GetCustomDataAs added in v0.4.1

func (e ChangeUpdatedEventV0_2_0) GetCustomDataAs(receiver interface{}) error

func (ChangeUpdatedEventV0_2_0) GetCustomDataContentType added in v0.4.1

func (e ChangeUpdatedEventV0_2_0) GetCustomDataContentType() string

func (ChangeUpdatedEventV0_2_0) GetCustomDataRaw added in v0.4.1

func (e ChangeUpdatedEventV0_2_0) GetCustomDataRaw() ([]byte, error)

func (ChangeUpdatedEventV0_2_0) GetCustomSchema added in v0.4.1

func (e ChangeUpdatedEventV0_2_0) GetCustomSchema() (*jsonschema.Schema, error)

GetCustomSchema looks up the SchemaUri, if any is defined. If none is defined, it returns nil. If it's defined and cannot be found, it returns an error.

func (ChangeUpdatedEventV0_2_0) GetId added in v0.4.1

func (e ChangeUpdatedEventV0_2_0) GetId() string

func (ChangeUpdatedEventV0_2_0) GetSchema added in v0.4.1

func (ChangeUpdatedEventV0_2_0) GetSchemaUri added in v0.4.1

func (e ChangeUpdatedEventV0_2_0) GetSchemaUri() string

func (ChangeUpdatedEventV0_2_0) GetSource added in v0.4.1

func (e ChangeUpdatedEventV0_2_0) GetSource() string

func (ChangeUpdatedEventV0_2_0) GetSubject added in v0.4.1

func (e ChangeUpdatedEventV0_2_0) GetSubject() Subject

func (ChangeUpdatedEventV0_2_0) GetSubjectContent added in v0.4.1

func (e ChangeUpdatedEventV0_2_0) GetSubjectContent() interface{}

func (ChangeUpdatedEventV0_2_0) GetSubjectId added in v0.4.1

func (e ChangeUpdatedEventV0_2_0) GetSubjectId() string

func (ChangeUpdatedEventV0_2_0) GetSubjectSource added in v0.4.1

func (e ChangeUpdatedEventV0_2_0) GetSubjectSource() string

func (ChangeUpdatedEventV0_2_0) GetTimestamp added in v0.4.1

func (e ChangeUpdatedEventV0_2_0) GetTimestamp() time.Time

func (ChangeUpdatedEventV0_2_0) GetType added in v0.4.1

func (ChangeUpdatedEventV0_2_0) GetVersion added in v0.4.1

func (e ChangeUpdatedEventV0_2_0) GetVersion() string

func (*ChangeUpdatedEventV0_2_0) SetChainId added in v0.4.1

func (e *ChangeUpdatedEventV0_2_0) SetChainId(chainId string)

func (*ChangeUpdatedEventV0_2_0) SetCustomData added in v0.4.1

func (e *ChangeUpdatedEventV0_2_0) SetCustomData(contentType string, data interface{}) error

func (*ChangeUpdatedEventV0_2_0) SetId added in v0.4.1

func (e *ChangeUpdatedEventV0_2_0) SetId(id string)
func (e *ChangeUpdatedEventV0_2_0) SetLinks(links EmbeddedLinksArray)

func (*ChangeUpdatedEventV0_2_0) SetSchemaUri added in v0.4.1

func (e *ChangeUpdatedEventV0_2_0) SetSchemaUri(schema string)

func (*ChangeUpdatedEventV0_2_0) SetSource added in v0.4.1

func (e *ChangeUpdatedEventV0_2_0) SetSource(source string)

func (*ChangeUpdatedEventV0_2_0) SetSubjectId added in v0.4.1

func (e *ChangeUpdatedEventV0_2_0) SetSubjectId(subjectId string)

func (*ChangeUpdatedEventV0_2_0) SetSubjectRepository added in v0.4.1

func (e *ChangeUpdatedEventV0_2_0) SetSubjectRepository(repository *Reference)

func (*ChangeUpdatedEventV0_2_0) SetSubjectSource added in v0.4.1

func (e *ChangeUpdatedEventV0_2_0) SetSubjectSource(subjectSource string)

func (*ChangeUpdatedEventV0_2_0) SetTimestamp added in v0.4.1

func (e *ChangeUpdatedEventV0_2_0) SetTimestamp(timestamp time.Time)

type ChangeUpdatedSubjectContentV0_1_2 added in v0.4.1

type ChangeUpdatedSubjectContentV0_1_2 struct {
	Repository *Reference `json:"repository,omitempty"`
}

type ChangeUpdatedSubjectContentV0_2_0 added in v0.4.1

type ChangeUpdatedSubjectContentV0_2_0 struct {
	Repository *Reference `json:"repository,omitempty"`
}

type ChangeUpdatedSubjectV0_1_2 added in v0.4.1

type ChangeUpdatedSubjectV0_1_2 struct {
	SubjectBase
	Content ChangeUpdatedSubjectContentV0_1_2 `json:"content"`
}

func (ChangeUpdatedSubjectV0_1_2) GetSubjectType added in v0.4.1

func (sc ChangeUpdatedSubjectV0_1_2) GetSubjectType() SubjectType

type ChangeUpdatedSubjectV0_2_0 added in v0.4.1

type ChangeUpdatedSubjectV0_2_0 struct {
	SubjectBase
	Content ChangeUpdatedSubjectContentV0_2_0 `json:"content"`
}

func (ChangeUpdatedSubjectV0_2_0) GetSubjectType added in v0.4.1

func (sc ChangeUpdatedSubjectV0_2_0) GetSubjectType() SubjectType

type Context

type Context struct {
	// Spec: https://cdevents.dev/docs/spec/#version
	// Description: The version of the CDEvents specification which the event
	// uses. This enables the interpretation of the context. Compliant event
	// producers MUST use a value of draft when referring to this version of the
	// specification.
	Version string `json:"version" jsonschema:"required"`

	// Spec: https://cdevents.dev/docs/spec/#id
	// Description: Identifier for an event. Subsequent delivery attempts of the
	// same event MAY share the same id. This attribute matches the syntax and
	// semantics of the id attribute of CloudEvents:
	// https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id
	Id string `json:"id" jsonschema:"required,minLength=1"`

	// Spec: https://cdevents.dev/docs/spec/#source
	// Description: defines the context in which an event happened. The main
	// purpose of the source is to provide global uniqueness for source + id.
	// The source MAY identify a single producer or a group of producer that
	// belong to the same application.
	Source string `json:"source" jsonschema:"required,minLength=1" validate:"uri-reference"`

	// Spec: https://cdevents.dev/docs/spec/#type
	// Description: defines the type of event, as combination of a subject and
	// predicate. Valid event types are defined in the vocabulary. All event
	// types should be prefixed with dev.cdevents.
	// One occurrence may have multiple events associated, as long as they have
	// different event types
	Type CDEventType `json:"type" jsonschema:"required,minLength=1" validate:"required,structonly"`

	// Spec: https://cdevents.dev/docs/spec/#timestamp
	// Description: defines the time of the occurrence. When the
	// time of the occurrence is not available, the time when the event was
	// produced MAY be used. In case the transport layer should require a
	// re-transmission of the event, the timestamp SHOULD NOT be updated, i.e.
	// it should be the same for the same source + id combination.
	Timestamp time.Time `json:"timestamp" jsonschema:"required"`
}

func (Context) GetType added in v0.4.1

func (t Context) GetType() CDEventType

func (Context) GetVersion added in v0.4.1

func (t Context) GetVersion() string

type ContextCustom added in v0.4.1

type ContextCustom struct {
	// Spec: https://cdevents.dev/docs/spec/#schemauri
	// Description: ink to a jsonschema schema that further refines
	// the event schema as defined by CDEvents.
	SchemaUri string `json:"schemaUri,omitempty"`
}
type ContextLinks struct {
	// Spec: https://cdevents.dev/docs/spec/#chain_id
	// Description: Identifier for a chain as defined in the links spec
	// https://github.com/cdevents/spec/blob/v0.4.1/links.md
	ChainId string `json:"chainId,omitempty"`

	// Spec: https://cdevents.dev/docs/spec/#links
	// Description: Identifier for an event. Subsequent delivery attempts of the
	// same event MAY share the same id. This attribute matches the syntax and
	// semantics of the id attribute of CloudEvents:
	// https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id
	Links EmbeddedLinksArray `json:"links,omitempty" validate:"dive"`
}

type ContextV04 added in v0.4.1

type ContextV04 struct {
	Context
	ContextLinks
	ContextCustom
}

type CustomCDEventReader added in v0.4.1

type CustomCDEventReader interface {
	CDEventReaderV04
}

type CustomCDEventWriter added in v0.4.1

type CustomCDEventWriter interface {
	CDEventWriterV04

	// CustomCDEvent can represent different event types
	SetEventType(eventType CDEventType)

	// CustomCDEvent types can have different subject fields
	SetSubjectContent(subjectContent interface{})
}

type CustomTypeEventV0_4_1 added in v0.4.1

type CustomTypeEventV0_4_1 struct {
	Context ContextV04              `json:"context"`
	Subject CustomTypeSubjectV0_4_1 `json:"subject"`
	CDEventCustomData
}

func NewCustomTypeEventV0_4_1 added in v0.4.1

func NewCustomTypeEventV0_4_1(specVersion string) (*CustomTypeEventV0_4_1, error)

New creates a new CustomTypeEventV0_4_1

func (CustomTypeEventV0_4_1) GetChainId added in v0.4.1

func (e CustomTypeEventV0_4_1) GetChainId() string

func (CustomTypeEventV0_4_1) GetCustomData added in v0.4.1

func (e CustomTypeEventV0_4_1) GetCustomData() (interface{}, error)

func (CustomTypeEventV0_4_1) GetCustomDataAs added in v0.4.1

func (e CustomTypeEventV0_4_1) GetCustomDataAs(receiver interface{}) error

func (CustomTypeEventV0_4_1) GetCustomDataContentType added in v0.4.1

func (e CustomTypeEventV0_4_1) GetCustomDataContentType() string

func (CustomTypeEventV0_4_1) GetCustomDataRaw added in v0.4.1

func (e CustomTypeEventV0_4_1) GetCustomDataRaw() ([]byte, error)

func (CustomTypeEventV0_4_1) GetCustomSchema added in v0.4.1

func (e CustomTypeEventV0_4_1) GetCustomSchema() (*jsonschema.Schema, error)

GetCustomSchema looks up the SchemaUri, if any is defined. If none is defined, it returns nil. If it's defined and cannot be found, it returns an error.

func (CustomTypeEventV0_4_1) GetId added in v0.4.1

func (e CustomTypeEventV0_4_1) GetId() string

func (CustomTypeEventV0_4_1) GetSchema added in v0.4.1

func (e CustomTypeEventV0_4_1) GetSchema() (string, *jsonschema.Schema, error)

func (CustomTypeEventV0_4_1) GetSchemaUri added in v0.4.1

func (e CustomTypeEventV0_4_1) GetSchemaUri() string

func (CustomTypeEventV0_4_1) GetSource added in v0.4.1

func (e CustomTypeEventV0_4_1) GetSource() string

func (CustomTypeEventV0_4_1) GetSubject added in v0.4.1

func (e CustomTypeEventV0_4_1) GetSubject() Subject

func (CustomTypeEventV0_4_1) GetSubjectContent added in v0.4.1

func (e CustomTypeEventV0_4_1) GetSubjectContent() interface{}

func (CustomTypeEventV0_4_1) GetSubjectId added in v0.4.1

func (e CustomTypeEventV0_4_1) GetSubjectId() string

func (CustomTypeEventV0_4_1) GetSubjectSource added in v0.4.1

func (e CustomTypeEventV0_4_1) GetSubjectSource() string

func (CustomTypeEventV0_4_1) GetTimestamp added in v0.4.1

func (e CustomTypeEventV0_4_1) GetTimestamp() time.Time

func (CustomTypeEventV0_4_1) GetType added in v0.4.1

func (e CustomTypeEventV0_4_1) GetType() CDEventType

func (CustomTypeEventV0_4_1) GetVersion added in v0.4.1

func (e CustomTypeEventV0_4_1) GetVersion() string

func (*CustomTypeEventV0_4_1) SetChainId added in v0.4.1

func (e *CustomTypeEventV0_4_1) SetChainId(chainId string)

func (*CustomTypeEventV0_4_1) SetCustomData added in v0.4.1

func (e *CustomTypeEventV0_4_1) SetCustomData(contentType string, data interface{}) error

func (*CustomTypeEventV0_4_1) SetEventType added in v0.4.1

func (e *CustomTypeEventV0_4_1) SetEventType(eventType CDEventType)

func (*CustomTypeEventV0_4_1) SetId added in v0.4.1

func (e *CustomTypeEventV0_4_1) SetId(id string)
func (e *CustomTypeEventV0_4_1) SetLinks(links EmbeddedLinksArray)

func (*CustomTypeEventV0_4_1) SetSchemaUri added in v0.4.1

func (e *CustomTypeEventV0_4_1) SetSchemaUri(schema string)

func (*CustomTypeEventV0_4_1) SetSource added in v0.4.1

func (e *CustomTypeEventV0_4_1) SetSource(source string)

func (*CustomTypeEventV0_4_1) SetSubjectContent added in v0.4.1

func (e *CustomTypeEventV0_4_1) SetSubjectContent(subjectContent interface{})

CustomCDEvent types can have different subject fields

func (*CustomTypeEventV0_4_1) SetSubjectId added in v0.4.1

func (e *CustomTypeEventV0_4_1) SetSubjectId(subjectId string)

func (*CustomTypeEventV0_4_1) SetSubjectSource added in v0.4.1

func (e *CustomTypeEventV0_4_1) SetSubjectSource(subjectSource string)

func (*CustomTypeEventV0_4_1) SetTimestamp added in v0.4.1

func (e *CustomTypeEventV0_4_1) SetTimestamp(timestamp time.Time)

type CustomTypeSubjectV0_4_1 added in v0.4.1

type CustomTypeSubjectV0_4_1 struct {
	SubjectBase
	Content interface{} `json:"content"`
}

func (CustomTypeSubjectV0_4_1) GetSubjectType added in v0.4.1

func (sc CustomTypeSubjectV0_4_1) GetSubjectType() SubjectType
type EmbeddedLink interface {
	// GetLinkType returns the content of the jsonschema "linkType"
	GetLinkType() LinkType
}

type EmbeddedLinkWithTags added in v0.4.1

type EmbeddedLinkWithTags interface {
	EmbeddedLink

	// GetTags returns the content of the jsonschema "tags" object field
	// which defines no property and allows for additional ones
	GetTags() Tags

	// SetTags sets the content of the jsonschema "tags" object field
	SetTags(tags Tags)
}

type EmbeddedLinkWithTagsAndRelation added in v0.4.1

type EmbeddedLinkWithTagsAndRelation interface {
	EmbeddedLinkWithTags

	// GetTarget returns the target of the link, in the "target" field
	GetTarget() EventReference

	// SetTarget sets the target of the link, in the "target" field
	SetTarget(reference EventReference)

	// GetLinkKind returns the link kind, in the "linkKind" field
	GetLinkKind() string

	// SetLinkKind sets the kind of the link, in the "linkKind" field
	SetLinkKind(kind string)
}

func NewEmbeddedLinkRelation added in v0.4.1

func NewEmbeddedLinkRelation() EmbeddedLinkWithTagsAndRelation

type EmbeddedLinkWithTagsAndSource added in v0.4.1

type EmbeddedLinkWithTagsAndSource interface {
	EmbeddedLinkWithTags

	// GetFrom returns the source of the link, in the "from" field
	GetFrom() EventReference

	// SetFrom sets the source of the link, in the "from" field
	SetFrom(reference EventReference)
}

func NewEmbeddedLinkEnd added in v0.4.1

func NewEmbeddedLinkEnd() EmbeddedLinkWithTagsAndSource

func NewEmbeddedLinkPath added in v0.4.1

func NewEmbeddedLinkPath() EmbeddedLinkWithTagsAndSource

type EmbeddedLinksArray added in v0.4.1

type EmbeddedLinksArray []EmbeddedLinkWithTags

func (*EmbeddedLinksArray) UnmarshalJSON added in v0.4.1

func (ela *EmbeddedLinksArray) UnmarshalJSON(b []byte) error

type EnvironmentCreatedEventV0_1_1 added in v0.4.1

type EnvironmentCreatedEventV0_1_1 struct {
	Context Context                         `json:"context"`
	Subject EnvironmentCreatedSubjectV0_1_1 `json:"subject"`
	CDEventCustomData
}

func NewEnvironmentCreatedEventV0_1_1 added in v0.4.1

func NewEnvironmentCreatedEventV0_1_1(specVersion string) (*EnvironmentCreatedEventV0_1_1, error)

New creates a new EnvironmentCreatedEventV0_1_1

func (EnvironmentCreatedEventV0_1_1) GetCustomData added in v0.4.1

func (e EnvironmentCreatedEventV0_1_1) GetCustomData() (interface{}, error)

func (EnvironmentCreatedEventV0_1_1) GetCustomDataAs added in v0.4.1

func (e EnvironmentCreatedEventV0_1_1) GetCustomDataAs(receiver interface{}) error

func (EnvironmentCreatedEventV0_1_1) GetCustomDataContentType added in v0.4.1

func (e EnvironmentCreatedEventV0_1_1) GetCustomDataContentType() string

func (EnvironmentCreatedEventV0_1_1) GetCustomDataRaw added in v0.4.1

func (e EnvironmentCreatedEventV0_1_1) GetCustomDataRaw() ([]byte, error)

func (EnvironmentCreatedEventV0_1_1) GetId added in v0.4.1

func (EnvironmentCreatedEventV0_1_1) GetSchema added in v0.4.1

func (EnvironmentCreatedEventV0_1_1) GetSource added in v0.4.1

func (e EnvironmentCreatedEventV0_1_1) GetSource() string

func (EnvironmentCreatedEventV0_1_1) GetSubject added in v0.4.1

func (e EnvironmentCreatedEventV0_1_1) GetSubject() Subject

func (EnvironmentCreatedEventV0_1_1) GetSubjectContent added in v0.4.1

func (e EnvironmentCreatedEventV0_1_1) GetSubjectContent() interface{}

func (EnvironmentCreatedEventV0_1_1) GetSubjectId added in v0.4.1

func (e EnvironmentCreatedEventV0_1_1) GetSubjectId() string

func (EnvironmentCreatedEventV0_1_1) GetSubjectSource added in v0.4.1

func (e EnvironmentCreatedEventV0_1_1) GetSubjectSource() string

func (EnvironmentCreatedEventV0_1_1) GetTimestamp added in v0.4.1

func (e EnvironmentCreatedEventV0_1_1) GetTimestamp() time.Time

func (EnvironmentCreatedEventV0_1_1) GetType added in v0.4.1

func (EnvironmentCreatedEventV0_1_1) GetVersion added in v0.4.1

func (e EnvironmentCreatedEventV0_1_1) GetVersion() string

func (*EnvironmentCreatedEventV0_1_1) SetCustomData added in v0.4.1

func (e *EnvironmentCreatedEventV0_1_1) SetCustomData(contentType string, data interface{}) error

func (*EnvironmentCreatedEventV0_1_1) SetId added in v0.4.1

func (*EnvironmentCreatedEventV0_1_1) SetSource added in v0.4.1

func (e *EnvironmentCreatedEventV0_1_1) SetSource(source string)

func (*EnvironmentCreatedEventV0_1_1) SetSubjectId added in v0.4.1

func (e *EnvironmentCreatedEventV0_1_1) SetSubjectId(subjectId string)

func (*EnvironmentCreatedEventV0_1_1) SetSubjectName added in v0.4.1

func (e *EnvironmentCreatedEventV0_1_1) SetSubjectName(name string)

func (*EnvironmentCreatedEventV0_1_1) SetSubjectSource added in v0.4.1

func (e *EnvironmentCreatedEventV0_1_1) SetSubjectSource(subjectSource string)

func (*EnvironmentCreatedEventV0_1_1) SetSubjectUrl added in v0.4.1

func (e *EnvironmentCreatedEventV0_1_1) SetSubjectUrl(url string)

func (*EnvironmentCreatedEventV0_1_1) SetTimestamp added in v0.4.1

func (e *EnvironmentCreatedEventV0_1_1) SetTimestamp(timestamp time.Time)

type EnvironmentCreatedEventV0_2_0 added in v0.4.1

type EnvironmentCreatedEventV0_2_0 struct {
	Context ContextV04                      `json:"context"`
	Subject EnvironmentCreatedSubjectV0_2_0 `json:"subject"`
	CDEventCustomData
}

func NewEnvironmentCreatedEventV0_2_0 added in v0.4.1

func NewEnvironmentCreatedEventV0_2_0(specVersion string) (*EnvironmentCreatedEventV0_2_0, error)

New creates a new EnvironmentCreatedEventV0_2_0

func (EnvironmentCreatedEventV0_2_0) GetChainId added in v0.4.1

func (e EnvironmentCreatedEventV0_2_0) GetChainId() string

func (EnvironmentCreatedEventV0_2_0) GetCustomData added in v0.4.1

func (e EnvironmentCreatedEventV0_2_0) GetCustomData() (interface{}, error)

func (EnvironmentCreatedEventV0_2_0) GetCustomDataAs added in v0.4.1

func (e EnvironmentCreatedEventV0_2_0) GetCustomDataAs(receiver interface{}) error

func (EnvironmentCreatedEventV0_2_0) GetCustomDataContentType added in v0.4.1

func (e EnvironmentCreatedEventV0_2_0) GetCustomDataContentType() string

func (EnvironmentCreatedEventV0_2_0) GetCustomDataRaw added in v0.4.1

func (e EnvironmentCreatedEventV0_2_0) GetCustomDataRaw() ([]byte, error)

func (EnvironmentCreatedEventV0_2_0) GetCustomSchema added in v0.4.1

func (e EnvironmentCreatedEventV0_2_0) GetCustomSchema() (*jsonschema.Schema, error)

GetCustomSchema looks up the SchemaUri, if any is defined. If none is defined, it returns nil. If it's defined and cannot be found, it returns an error.

func (EnvironmentCreatedEventV0_2_0) GetId added in v0.4.1

func (EnvironmentCreatedEventV0_2_0) GetSchema added in v0.4.1

func (EnvironmentCreatedEventV0_2_0) GetSchemaUri added in v0.4.1

func (e EnvironmentCreatedEventV0_2_0) GetSchemaUri() string

func (EnvironmentCreatedEventV0_2_0) GetSource added in v0.4.1

func (e EnvironmentCreatedEventV0_2_0) GetSource() string

func (EnvironmentCreatedEventV0_2_0) GetSubject added in v0.4.1

func (e EnvironmentCreatedEventV0_2_0) GetSubject() Subject

func (EnvironmentCreatedEventV0_2_0) GetSubjectContent added in v0.4.1

func (e EnvironmentCreatedEventV0_2_0) GetSubjectContent() interface{}

func (EnvironmentCreatedEventV0_2_0) GetSubjectId added in v0.4.1

func (e EnvironmentCreatedEventV0_2_0) GetSubjectId() string

func (EnvironmentCreatedEventV0_2_0) GetSubjectSource added in v0.4.1

func (e EnvironmentCreatedEventV0_2_0) GetSubjectSource() string

func (EnvironmentCreatedEventV0_2_0) GetTimestamp added in v0.4.1

func (e EnvironmentCreatedEventV0_2_0) GetTimestamp() time.Time

func (EnvironmentCreatedEventV0_2_0) GetType added in v0.4.1

func (EnvironmentCreatedEventV0_2_0) GetVersion added in v0.4.1

func (e EnvironmentCreatedEventV0_2_0) GetVersion() string

func (*EnvironmentCreatedEventV0_2_0) SetChainId added in v0.4.1

func (e *EnvironmentCreatedEventV0_2_0) SetChainId(chainId string)

func (*EnvironmentCreatedEventV0_2_0) SetCustomData added in v0.4.1

func (e *EnvironmentCreatedEventV0_2_0) SetCustomData(contentType string, data interface{}) error

func (*EnvironmentCreatedEventV0_2_0) SetId added in v0.4.1

func (*EnvironmentCreatedEventV0_2_0) SetSchemaUri added in v0.4.1

func (e *EnvironmentCreatedEventV0_2_0) SetSchemaUri(schema string)

func (*EnvironmentCreatedEventV0_2_0) SetSource added in v0.4.1

func (e *EnvironmentCreatedEventV0_2_0) SetSource(source string)

func (*EnvironmentCreatedEventV0_2_0) SetSubjectId added in v0.4.1

func (e *EnvironmentCreatedEventV0_2_0) SetSubjectId(subjectId string)

func (*EnvironmentCreatedEventV0_2_0) SetSubjectName added in v0.4.1

func (e *EnvironmentCreatedEventV0_2_0) SetSubjectName(name string)

func (*EnvironmentCreatedEventV0_2_0) SetSubjectSource added in v0.4.1

func (e *EnvironmentCreatedEventV0_2_0) SetSubjectSource(subjectSource string)

func (*EnvironmentCreatedEventV0_2_0) SetSubjectUrl added in v0.4.1

func (e *EnvironmentCreatedEventV0_2_0) SetSubjectUrl(url string)

func (*EnvironmentCreatedEventV0_2_0) SetTimestamp added in v0.4.1

func (e *EnvironmentCreatedEventV0_2_0) SetTimestamp(timestamp time.Time)

type EnvironmentCreatedSubjectContentV0_1_1 added in v0.4.1

type EnvironmentCreatedSubjectContentV0_1_1 struct {
	Name string `json:"name,omitempty"`

	Url string `json:"url,omitempty"`
}

type EnvironmentCreatedSubjectContentV0_2_0 added in v0.4.1

type EnvironmentCreatedSubjectContentV0_2_0 struct {
	Name string `json:"name,omitempty"`

	Url string `json:"url,omitempty"`
}

type EnvironmentCreatedSubjectV0_1_1 added in v0.4.1

type EnvironmentCreatedSubjectV0_1_1 struct {
	SubjectBase
	Content EnvironmentCreatedSubjectContentV0_1_1 `json:"content"`
}

func (EnvironmentCreatedSubjectV0_1_1) GetSubjectType added in v0.4.1

func (sc EnvironmentCreatedSubjectV0_1_1) GetSubjectType() SubjectType

type EnvironmentCreatedSubjectV0_2_0 added in v0.4.1

type EnvironmentCreatedSubjectV0_2_0 struct {
	SubjectBase
	Content EnvironmentCreatedSubjectContentV0_2_0 `json:"content"`
}

func (EnvironmentCreatedSubjectV0_2_0) GetSubjectType added in v0.4.1

func (sc EnvironmentCreatedSubjectV0_2_0) GetSubjectType() SubjectType

type EnvironmentDeletedEventV0_1_1 added in v0.4.1

type EnvironmentDeletedEventV0_1_1 struct {
	Context Context                         `json:"context"`
	Subject EnvironmentDeletedSubjectV0_1_1 `json:"subject"`
	CDEventCustomData
}

func NewEnvironmentDeletedEventV0_1_1 added in v0.4.1

func NewEnvironmentDeletedEventV0_1_1(specVersion string) (*EnvironmentDeletedEventV0_1_1, error)

New creates a new EnvironmentDeletedEventV0_1_1

func (EnvironmentDeletedEventV0_1_1) GetCustomData added in v0.4.1

func (e EnvironmentDeletedEventV0_1_1) GetCustomData() (interface{}, error)

func (EnvironmentDeletedEventV0_1_1) GetCustomDataAs added in v0.4.1

func (e EnvironmentDeletedEventV0_1_1) GetCustomDataAs(receiver interface{}) error

func (EnvironmentDeletedEventV0_1_1) GetCustomDataContentType added in v0.4.1

func (e EnvironmentDeletedEventV0_1_1) GetCustomDataContentType() string

func (EnvironmentDeletedEventV0_1_1) GetCustomDataRaw added in v0.4.1

func (e EnvironmentDeletedEventV0_1_1) GetCustomDataRaw() ([]byte, error)

func (EnvironmentDeletedEventV0_1_1) GetId added in v0.4.1

func (EnvironmentDeletedEventV0_1_1) GetSchema added in v0.4.1

func (EnvironmentDeletedEventV0_1_1) GetSource added in v0.4.1

func (e EnvironmentDeletedEventV0_1_1) GetSource() string

func (EnvironmentDeletedEventV0_1_1) GetSubject added in v0.4.1

func (e EnvironmentDeletedEventV0_1_1) GetSubject() Subject

func (EnvironmentDeletedEventV0_1_1) GetSubjectContent added in v0.4.1

func (e EnvironmentDeletedEventV0_1_1) GetSubjectContent() interface{}

func (EnvironmentDeletedEventV0_1_1) GetSubjectId added in v0.4.1

func (e EnvironmentDeletedEventV0_1_1) GetSubjectId() string

func (EnvironmentDeletedEventV0_1_1) GetSubjectSource added in v0.4.1

func (e EnvironmentDeletedEventV0_1_1) GetSubjectSource() string

func (EnvironmentDeletedEventV0_1_1) GetTimestamp added in v0.4.1

func (e EnvironmentDeletedEventV0_1_1) GetTimestamp() time.Time

func (EnvironmentDeletedEventV0_1_1) GetType added in v0.4.1

func (EnvironmentDeletedEventV0_1_1) GetVersion added in v0.4.1

func (e EnvironmentDeletedEventV0_1_1) GetVersion() string

func (*EnvironmentDeletedEventV0_1_1) SetCustomData added in v0.4.1

func (e *EnvironmentDeletedEventV0_1_1) SetCustomData(contentType string, data interface{}) error

func (*EnvironmentDeletedEventV0_1_1) SetId added in v0.4.1

func (*EnvironmentDeletedEventV0_1_1) SetSource added in v0.4.1

func (e *EnvironmentDeletedEventV0_1_1) SetSource(source string)

func (*EnvironmentDeletedEventV0_1_1) SetSubjectId added in v0.4.1

func (e *EnvironmentDeletedEventV0_1_1) SetSubjectId(subjectId string)

func (*EnvironmentDeletedEventV0_1_1) SetSubjectName added in v0.4.1

func (e *EnvironmentDeletedEventV0_1_1) SetSubjectName(name string)

func (*EnvironmentDeletedEventV0_1_1) SetSubjectSource added in v0.4.1

func (e *EnvironmentDeletedEventV0_1_1) SetSubjectSource(subjectSource string)

func (*EnvironmentDeletedEventV0_1_1) SetTimestamp added in v0.4.1

func (e *EnvironmentDeletedEventV0_1_1) SetTimestamp(timestamp time.Time)

type EnvironmentDeletedEventV0_2_0 added in v0.4.1

type EnvironmentDeletedEventV0_2_0 struct {
	Context ContextV04                      `json:"context"`
	Subject EnvironmentDeletedSubjectV0_2_0 `json:"subject"`
	CDEventCustomData
}

func NewEnvironmentDeletedEventV0_2_0 added in v0.4.1

func NewEnvironmentDeletedEventV0_2_0(specVersion string) (*EnvironmentDeletedEventV0_2_0, error)

New creates a new EnvironmentDeletedEventV0_2_0

func (EnvironmentDeletedEventV0_2_0) GetChainId added in v0.4.1

func (e EnvironmentDeletedEventV0_2_0) GetChainId() string

func (EnvironmentDeletedEventV0_2_0) GetCustomData added in v0.4.1

func (e EnvironmentDeletedEventV0_2_0) GetCustomData() (interface{}, error)

func (EnvironmentDeletedEventV0_2_0) GetCustomDataAs added in v0.4.1

func (e EnvironmentDeletedEventV0_2_0) GetCustomDataAs(receiver interface{}) error

func (EnvironmentDeletedEventV0_2_0) GetCustomDataContentType added in v0.4.1

func (e EnvironmentDeletedEventV0_2_0) GetCustomDataContentType() string

func (EnvironmentDeletedEventV0_2_0) GetCustomDataRaw added in v0.4.1

func (e EnvironmentDeletedEventV0_2_0) GetCustomDataRaw() ([]byte, error)

func (EnvironmentDeletedEventV0_2_0) GetCustomSchema added in v0.4.1

func (e EnvironmentDeletedEventV0_2_0) GetCustomSchema() (*jsonschema.Schema, error)

GetCustomSchema looks up the SchemaUri, if any is defined. If none is defined, it returns nil. If it's defined and cannot be found, it returns an error.

func (EnvironmentDeletedEventV0_2_0) GetId added in v0.4.1

func (EnvironmentDeletedEventV0_2_0) GetSchema added in v0.4.1

func (EnvironmentDeletedEventV0_2_0) GetSchemaUri added in v0.4.1

func (e EnvironmentDeletedEventV0_2_0) GetSchemaUri() string

func (EnvironmentDeletedEventV0_2_0) GetSource added in v0.4.1

func (e EnvironmentDeletedEventV0_2_0) GetSource() string

func (EnvironmentDeletedEventV0_2_0) GetSubject added in v0.4.1

func (e EnvironmentDeletedEventV0_2_0) GetSubject() Subject

func (EnvironmentDeletedEventV0_2_0) GetSubjectContent added in v0.4.1

func (e EnvironmentDeletedEventV0_2_0) GetSubjectContent() interface{}

func (EnvironmentDeletedEventV0_2_0) GetSubjectId added in v0.4.1

func (e EnvironmentDeletedEventV0_2_0) GetSubjectId() string

func (EnvironmentDeletedEventV0_2_0) GetSubjectSource added in v0.4.1

func (e EnvironmentDeletedEventV0_2_0) GetSubjectSource() string

func (EnvironmentDeletedEventV0_2_0) GetTimestamp added in v0.4.1

func (e EnvironmentDeletedEventV0_2_0) GetTimestamp() time.Time

func (EnvironmentDeletedEventV0_2_0) GetType added in v0.4.1

func (EnvironmentDeletedEventV0_2_0) GetVersion added in v0.4.1

func (e EnvironmentDeletedEventV0_2_0) GetVersion() string

func (*EnvironmentDeletedEventV0_2_0) SetChainId added in v0.4.1

func (e *EnvironmentDeletedEventV0_2_0) SetChainId(chainId string)

func (*EnvironmentDeletedEventV0_2_0) SetCustomData added in v0.4.1

func (e *EnvironmentDeletedEventV0_2_0) SetCustomData(contentType string, data interface{}) error

func (*EnvironmentDeletedEventV0_2_0) SetId added in v0.4.1

func (*EnvironmentDeletedEventV0_2_0) SetSchemaUri added in v0.4.1

func (e *EnvironmentDeletedEventV0_2_0) SetSchemaUri(schema string)

func (*EnvironmentDeletedEventV0_2_0) SetSource added in v0.4.1

func (e *EnvironmentDeletedEventV0_2_0) SetSource(source string)

func (*EnvironmentDeletedEventV0_2_0) SetSubjectId added in v0.4.1

func (e *EnvironmentDeletedEventV0_2_0) SetSubjectId(subjectId string)

func (*EnvironmentDeletedEventV0_2_0) SetSubjectName added in v0.4.1

func (e *EnvironmentDeletedEventV0_2_0) SetSubjectName(name string)

func (*EnvironmentDeletedEventV0_2_0) SetSubjectSource added in v0.4.1

func (e *EnvironmentDeletedEventV0_2_0) SetSubjectSource(subjectSource string)

func (*EnvironmentDeletedEventV0_2_0) SetTimestamp added in v0.4.1

func (e *EnvironmentDeletedEventV0_2_0) SetTimestamp(timestamp time.Time)

type EnvironmentDeletedSubjectContentV0_1_1 added in v0.4.1

type EnvironmentDeletedSubjectContentV0_1_1 struct {
	Name string `json:"name,omitempty"`
}

type EnvironmentDeletedSubjectContentV0_2_0 added in v0.4.1

type EnvironmentDeletedSubjectContentV0_2_0 struct {
	Name string `json:"name,omitempty"`
}

type EnvironmentDeletedSubjectV0_1_1 added in v0.4.1

type EnvironmentDeletedSubjectV0_1_1 struct {
	SubjectBase
	Content EnvironmentDeletedSubjectContentV0_1_1 `json:"content"`
}

func (EnvironmentDeletedSubjectV0_1_1) GetSubjectType added in v0.4.1

func (sc EnvironmentDeletedSubjectV0_1_1) GetSubjectType() SubjectType

type EnvironmentDeletedSubjectV0_2_0 added in v0.4.1

type EnvironmentDeletedSubjectV0_2_0 struct {
	SubjectBase
	Content EnvironmentDeletedSubjectContentV0_2_0 `json:"content"`
}

func (EnvironmentDeletedSubjectV0_2_0) GetSubjectType added in v0.4.1

func (sc EnvironmentDeletedSubjectV0_2_0) GetSubjectType() SubjectType

type EnvironmentModifiedEventV0_1_1 added in v0.4.1

type EnvironmentModifiedEventV0_1_1 struct {
	Context Context                          `json:"context"`
	Subject EnvironmentModifiedSubjectV0_1_1 `json:"subject"`
	CDEventCustomData
}

func NewEnvironmentModifiedEventV0_1_1 added in v0.4.1

func NewEnvironmentModifiedEventV0_1_1(specVersion string) (*EnvironmentModifiedEventV0_1_1, error)

New creates a new EnvironmentModifiedEventV0_1_1

func (EnvironmentModifiedEventV0_1_1) GetCustomData added in v0.4.1

func (e EnvironmentModifiedEventV0_1_1) GetCustomData() (interface{}, error)

func (EnvironmentModifiedEventV0_1_1) GetCustomDataAs added in v0.4.1

func (e EnvironmentModifiedEventV0_1_1) GetCustomDataAs(receiver interface{}) error

func (EnvironmentModifiedEventV0_1_1) GetCustomDataContentType added in v0.4.1

func (e EnvironmentModifiedEventV0_1_1) GetCustomDataContentType() string

func (EnvironmentModifiedEventV0_1_1) GetCustomDataRaw added in v0.4.1

func (e EnvironmentModifiedEventV0_1_1) GetCustomDataRaw() ([]byte, error)

func (EnvironmentModifiedEventV0_1_1) GetId added in v0.4.1

func (EnvironmentModifiedEventV0_1_1) GetSchema added in v0.4.1

func (EnvironmentModifiedEventV0_1_1) GetSource added in v0.4.1

func (e EnvironmentModifiedEventV0_1_1) GetSource() string

func (EnvironmentModifiedEventV0_1_1) GetSubject added in v0.4.1

func (e EnvironmentModifiedEventV0_1_1) GetSubject() Subject

func (EnvironmentModifiedEventV0_1_1) GetSubjectContent added in v0.4.1

func (e EnvironmentModifiedEventV0_1_1) GetSubjectContent() interface{}

func (EnvironmentModifiedEventV0_1_1) GetSubjectId added in v0.4.1

func (e EnvironmentModifiedEventV0_1_1) GetSubjectId() string

func (EnvironmentModifiedEventV0_1_1) GetSubjectSource added in v0.4.1

func (e EnvironmentModifiedEventV0_1_1) GetSubjectSource() string

func (EnvironmentModifiedEventV0_1_1) GetTimestamp added in v0.4.1

func (e EnvironmentModifiedEventV0_1_1) GetTimestamp() time.Time

func (EnvironmentModifiedEventV0_1_1) GetType added in v0.4.1

func (EnvironmentModifiedEventV0_1_1) GetVersion added in v0.4.1

func (e EnvironmentModifiedEventV0_1_1) GetVersion() string

func (*EnvironmentModifiedEventV0_1_1) SetCustomData added in v0.4.1

func (e *EnvironmentModifiedEventV0_1_1) SetCustomData(contentType string, data interface{}) error

func (*EnvironmentModifiedEventV0_1_1) SetId added in v0.4.1

func (*EnvironmentModifiedEventV0_1_1) SetSource added in v0.4.1

func (e *EnvironmentModifiedEventV0_1_1) SetSource(source string)

func (*EnvironmentModifiedEventV0_1_1) SetSubjectId added in v0.4.1

func (e *EnvironmentModifiedEventV0_1_1) SetSubjectId(subjectId string)

func (*EnvironmentModifiedEventV0_1_1) SetSubjectName added in v0.4.1

func (e *EnvironmentModifiedEventV0_1_1) SetSubjectName(name string)

func (*EnvironmentModifiedEventV0_1_1) SetSubjectSource added in v0.4.1

func (e *EnvironmentModifiedEventV0_1_1) SetSubjectSource(subjectSource string)

func (*EnvironmentModifiedEventV0_1_1) SetSubjectUrl added in v0.4.1

func (e *EnvironmentModifiedEventV0_1_1) SetSubjectUrl(url string)

func (*EnvironmentModifiedEventV0_1_1) SetTimestamp added in v0.4.1

func (e *EnvironmentModifiedEventV0_1_1) SetTimestamp(timestamp time.Time)

type EnvironmentModifiedEventV0_2_0 added in v0.4.1

type EnvironmentModifiedEventV0_2_0 struct {
	Context ContextV04                       `json:"context"`
	Subject EnvironmentModifiedSubjectV0_2_0 `json:"subject"`
	CDEventCustomData
}

func NewEnvironmentModifiedEventV0_2_0 added in v0.4.1

func NewEnvironmentModifiedEventV0_2_0(specVersion string) (*EnvironmentModifiedEventV0_2_0, error)

New creates a new EnvironmentModifiedEventV0_2_0

func (EnvironmentModifiedEventV0_2_0) GetChainId added in v0.4.1

func (e EnvironmentModifiedEventV0_2_0) GetChainId() string

func (EnvironmentModifiedEventV0_2_0) GetCustomData added in v0.4.1

func (e EnvironmentModifiedEventV0_2_0) GetCustomData() (interface{}, error)

func (EnvironmentModifiedEventV0_2_0) GetCustomDataAs added in v0.4.1

func (e EnvironmentModifiedEventV0_2_0) GetCustomDataAs(receiver interface{}) error

func (EnvironmentModifiedEventV0_2_0) GetCustomDataContentType added in v0.4.1

func (e EnvironmentModifiedEventV0_2_0) GetCustomDataContentType() string

func (EnvironmentModifiedEventV0_2_0) GetCustomDataRaw added in v0.4.1

func (e EnvironmentModifiedEventV0_2_0) GetCustomDataRaw() ([]byte, error)

func (EnvironmentModifiedEventV0_2_0) GetCustomSchema added in v0.4.1

func (e EnvironmentModifiedEventV0_2_0) GetCustomSchema() (*jsonschema.Schema, error)

GetCustomSchema looks up the SchemaUri, if any is defined. If none is defined, it returns nil. If it's defined and cannot be found, it returns an error.

func (EnvironmentModifiedEventV0_2_0) GetId added in v0.4.1

func (EnvironmentModifiedEventV0_2_0) GetSchema added in v0.4.1

func (EnvironmentModifiedEventV0_2_0) GetSchemaUri added in v0.4.1

func (e EnvironmentModifiedEventV0_2_0) GetSchemaUri() string

func (EnvironmentModifiedEventV0_2_0) GetSource added in v0.4.1

func (e EnvironmentModifiedEventV0_2_0) GetSource() string

func (EnvironmentModifiedEventV0_2_0) GetSubject added in v0.4.1

func (e EnvironmentModifiedEventV0_2_0) GetSubject() Subject

func (EnvironmentModifiedEventV0_2_0) GetSubjectContent added in v0.4.1

func (e EnvironmentModifiedEventV0_2_0) GetSubjectContent() interface{}

func (EnvironmentModifiedEventV0_2_0) GetSubjectId added in v0.4.1

func (e EnvironmentModifiedEventV0_2_0) GetSubjectId() string

func (EnvironmentModifiedEventV0_2_0) GetSubjectSource added in v0.4.1

func (e EnvironmentModifiedEventV0_2_0) GetSubjectSource() string

func (EnvironmentModifiedEventV0_2_0) GetTimestamp added in v0.4.1

func (e EnvironmentModifiedEventV0_2_0) GetTimestamp() time.Time

func (EnvironmentModifiedEventV0_2_0) GetType added in v0.4.1

func (EnvironmentModifiedEventV0_2_0) GetVersion added in v0.4.1

func (e EnvironmentModifiedEventV0_2_0) GetVersion() string

func (*EnvironmentModifiedEventV0_2_0) SetChainId added in v0.4.1

func (e *EnvironmentModifiedEventV0_2_0) SetChainId(chainId string)

func (*EnvironmentModifiedEventV0_2_0) SetCustomData added in v0.4.1

func (e *EnvironmentModifiedEventV0_2_0) SetCustomData(contentType string, data interface{}) error

func (*EnvironmentModifiedEventV0_2_0) SetId added in v0.4.1

func (*EnvironmentModifiedEventV0_2_0) SetSchemaUri added in v0.4.1

func (e *EnvironmentModifiedEventV0_2_0) SetSchemaUri(schema string)

func (*EnvironmentModifiedEventV0_2_0) SetSource added in v0.4.1

func (e *EnvironmentModifiedEventV0_2_0) SetSource(source string)

func (*EnvironmentModifiedEventV0_2_0) SetSubjectId added in v0.4.1

func (e *EnvironmentModifiedEventV0_2_0) SetSubjectId(subjectId string)

func (*EnvironmentModifiedEventV0_2_0) SetSubjectName added in v0.4.1

func (e *EnvironmentModifiedEventV0_2_0) SetSubjectName(name string)

func (*EnvironmentModifiedEventV0_2_0) SetSubjectSource added in v0.4.1

func (e *EnvironmentModifiedEventV0_2_0) SetSubjectSource(subjectSource string)

func (*EnvironmentModifiedEventV0_2_0) SetSubjectUrl added in v0.4.1

func (e *EnvironmentModifiedEventV0_2_0) SetSubjectUrl(url string)

func (*EnvironmentModifiedEventV0_2_0) SetTimestamp added in v0.4.1

func (e *EnvironmentModifiedEventV0_2_0) SetTimestamp(timestamp time.Time)

type EnvironmentModifiedSubjectContentV0_1_1 added in v0.4.1

type EnvironmentModifiedSubjectContentV0_1_1 struct {
	Name string `json:"name,omitempty"`

	Url string `json:"url,omitempty"`
}

type EnvironmentModifiedSubjectContentV0_2_0 added in v0.4.1

type EnvironmentModifiedSubjectContentV0_2_0 struct {
	Name string `json:"name,omitempty"`

	Url string `json:"url,omitempty"`
}

type EnvironmentModifiedSubjectV0_1_1 added in v0.4.1

type EnvironmentModifiedSubjectV0_1_1 struct {
	SubjectBase
	Content EnvironmentModifiedSubjectContentV0_1_1 `json:"content"`
}

func (EnvironmentModifiedSubjectV0_1_1) GetSubjectType added in v0.4.1

func (sc EnvironmentModifiedSubjectV0_1_1) GetSubjectType() SubjectType

type EnvironmentModifiedSubjectV0_2_0 added in v0.4.1

type EnvironmentModifiedSubjectV0_2_0 struct {
	SubjectBase
	Content EnvironmentModifiedSubjectContentV0_2_0 `json:"content"`
}

func (EnvironmentModifiedSubjectV0_2_0) GetSubjectType added in v0.4.1

func (sc EnvironmentModifiedSubjectV0_2_0) GetSubjectType() SubjectType

type EventReference added in v0.4.1

type EventReference struct {
	// ContextId is the ID of the linked event
	ContextId string `json:"contextId" jsonschema:"required,minLength=1"`
}

EventReference contains the ID of a linked event

type IncidentDetectedEventV0_1_0 added in v0.4.1

type IncidentDetectedEventV0_1_0 struct {
	Context Context                       `json:"context"`
	Subject IncidentDetectedSubjectV0_1_0 `json:"subject"`
	CDEventCustomData
}

func NewIncidentDetectedEventV0_1_0 added in v0.4.1

func NewIncidentDetectedEventV0_1_0(specVersion string) (*IncidentDetectedEventV0_1_0, error)

New creates a new IncidentDetectedEventV0_1_0

func (IncidentDetectedEventV0_1_0) GetCustomData added in v0.4.1

func (e IncidentDetectedEventV0_1_0) GetCustomData() (interface{}, error)

func (IncidentDetectedEventV0_1_0) GetCustomDataAs added in v0.4.1

func (e IncidentDetectedEventV0_1_0) GetCustomDataAs(receiver interface{}) error

func (IncidentDetectedEventV0_1_0) GetCustomDataContentType added in v0.4.1

func (e IncidentDetectedEventV0_1_0) GetCustomDataContentType() string

func (IncidentDetectedEventV0_1_0) GetCustomDataRaw added in v0.4.1

func (e IncidentDetectedEventV0_1_0) GetCustomDataRaw() ([]byte, error)

func (IncidentDetectedEventV0_1_0) GetId added in v0.4.1

func (IncidentDetectedEventV0_1_0) GetSchema added in v0.4.1

func (IncidentDetectedEventV0_1_0) GetSource added in v0.4.1

func (e IncidentDetectedEventV0_1_0) GetSource() string

func (IncidentDetectedEventV0_1_0) GetSubject added in v0.4.1

func (e IncidentDetectedEventV0_1_0) GetSubject() Subject

func (IncidentDetectedEventV0_1_0) GetSubjectContent added in v0.4.1

func (e IncidentDetectedEventV0_1_0) GetSubjectContent() interface{}

func (IncidentDetectedEventV0_1_0) GetSubjectId added in v0.4.1

func (e IncidentDetectedEventV0_1_0) GetSubjectId() string

func (IncidentDetectedEventV0_1_0) GetSubjectSource added in v0.4.1

func (e IncidentDetectedEventV0_1_0) GetSubjectSource() string

func (IncidentDetectedEventV0_1_0) GetTimestamp added in v0.4.1

func (e IncidentDetectedEventV0_1_0) GetTimestamp() time.Time

func (IncidentDetectedEventV0_1_0) GetType added in v0.4.1

func (IncidentDetectedEventV0_1_0) GetVersion added in v0.4.1

func (e IncidentDetectedEventV0_1_0) GetVersion() string

func (*IncidentDetectedEventV0_1_0) SetCustomData added in v0.4.1

func (e *IncidentDetectedEventV0_1_0) SetCustomData(contentType string, data interface{}) error

func (*IncidentDetectedEventV0_1_0) SetId added in v0.4.1

func (e *IncidentDetectedEventV0_1_0) SetId(id string)

func (*IncidentDetectedEventV0_1_0) SetSource added in v0.4.1

func (e *IncidentDetectedEventV0_1_0) SetSource(source string)

func (*IncidentDetectedEventV0_1_0) SetSubjectArtifactId added in v0.4.1

func (e *IncidentDetectedEventV0_1_0) SetSubjectArtifactId(artifactId string)

func (*IncidentDetectedEventV0_1_0) SetSubjectDescription added in v0.4.1

func (e *IncidentDetectedEventV0_1_0) SetSubjectDescription(description string)

func (*IncidentDetectedEventV0_1_0) SetSubjectEnvironment added in v0.4.1

func (e *IncidentDetectedEventV0_1_0) SetSubjectEnvironment(environment *Reference)

func (*IncidentDetectedEventV0_1_0) SetSubjectId added in v0.4.1

func (e *IncidentDetectedEventV0_1_0) SetSubjectId(subjectId string)

func (*IncidentDetectedEventV0_1_0) SetSubjectService added in v0.4.1

func (e *IncidentDetectedEventV0_1_0) SetSubjectService(service *Reference)

func (*IncidentDetectedEventV0_1_0) SetSubjectSource added in v0.4.1

func (e *IncidentDetectedEventV0_1_0) SetSubjectSource(subjectSource string)

func (*IncidentDetectedEventV0_1_0) SetTimestamp added in v0.4.1

func (e *IncidentDetectedEventV0_1_0) SetTimestamp(timestamp time.Time)

type IncidentDetectedEventV0_2_0 added in v0.4.1

type IncidentDetectedEventV0_2_0 struct {
	Context ContextV04                    `json:"context"`
	Subject IncidentDetectedSubjectV0_2_0 `json:"subject"`
	CDEventCustomData
}

func NewIncidentDetectedEventV0_2_0 added in v0.4.1

func NewIncidentDetectedEventV0_2_0(specVersion string) (*IncidentDetectedEventV0_2_0, error)

New creates a new IncidentDetectedEventV0_2_0

func (IncidentDetectedEventV0_2_0) GetChainId added in v0.4.1

func (e IncidentDetectedEventV0_2_0) GetChainId() string

func (IncidentDetectedEventV0_2_0) GetCustomData added in v0.4.1

func (e IncidentDetectedEventV0_2_0) GetCustomData() (interface{}, error)

func (IncidentDetectedEventV0_2_0) GetCustomDataAs added in v0.4.1

func (e IncidentDetectedEventV0_2_0) GetCustomDataAs(receiver interface{}) error

func (IncidentDetectedEventV0_2_0) GetCustomDataContentType added in v0.4.1

func (e IncidentDetectedEventV0_2_0) GetCustomDataContentType() string

func (IncidentDetectedEventV0_2_0) GetCustomDataRaw added in v0.4.1

func (e IncidentDetectedEventV0_2_0) GetCustomDataRaw() ([]byte, error)

func (IncidentDetectedEventV0_2_0) GetCustomSchema added in v0.4.1

func (e IncidentDetectedEventV0_2_0) GetCustomSchema() (*jsonschema.Schema, error)

GetCustomSchema looks up the SchemaUri, if any is defined. If none is defined, it returns nil. If it's defined and cannot be found, it returns an error.

func (IncidentDetectedEventV0_2_0) GetId added in v0.4.1

func (IncidentDetectedEventV0_2_0) GetSchema added in v0.4.1

func (IncidentDetectedEventV0_2_0) GetSchemaUri added in v0.4.1

func (e IncidentDetectedEventV0_2_0) GetSchemaUri() string

func (IncidentDetectedEventV0_2_0) GetSource added in v0.4.1

func (e IncidentDetectedEventV0_2_0) GetSource() string

func (IncidentDetectedEventV0_2_0) GetSubject added in v0.4.1

func (e IncidentDetectedEventV0_2_0) GetSubject() Subject

func (IncidentDetectedEventV0_2_0) GetSubjectContent added in v0.4.1

func (e IncidentDetectedEventV0_2_0) GetSubjectContent() interface{}

func (IncidentDetectedEventV0_2_0) GetSubjectId added in v0.4.1

func (e IncidentDetectedEventV0_2_0) GetSubjectId() string

func (IncidentDetectedEventV0_2_0) GetSubjectSource added in v0.4.1

func (e IncidentDetectedEventV0_2_0) GetSubjectSource() string

func (IncidentDetectedEventV0_2_0) GetTimestamp added in v0.4.1

func (e IncidentDetectedEventV0_2_0) GetTimestamp() time.Time

func (IncidentDetectedEventV0_2_0) GetType added in v0.4.1

func (IncidentDetectedEventV0_2_0) GetVersion added in v0.4.1

func (e IncidentDetectedEventV0_2_0) GetVersion() string

func (*IncidentDetectedEventV0_2_0) SetChainId added in v0.4.1

func (e *IncidentDetectedEventV0_2_0) SetChainId(chainId string)

func (*IncidentDetectedEventV0_2_0) SetCustomData added in v0.4.1

func (e *IncidentDetectedEventV0_2_0) SetCustomData(contentType string, data interface{}) error

func (*IncidentDetectedEventV0_2_0) SetId added in v0.4.1

func (e *IncidentDetectedEventV0_2_0) SetId(id string)

func (*IncidentDetectedEventV0_2_0) SetSchemaUri added in v0.4.1

func (e *IncidentDetectedEventV0_2_0) SetSchemaUri(schema string)

func (*IncidentDetectedEventV0_2_0) SetSource added in v0.4.1

func (e *IncidentDetectedEventV0_2_0) SetSource(source string)

func (*IncidentDetectedEventV0_2_0) SetSubjectArtifactId added in v0.4.1

func (e *IncidentDetectedEventV0_2_0) SetSubjectArtifactId(artifactId string)

func (*IncidentDetectedEventV0_2_0) SetSubjectDescription added in v0.4.1

func (e *IncidentDetectedEventV0_2_0) SetSubjectDescription(description string)

func (*IncidentDetectedEventV0_2_0) SetSubjectEnvironment added in v0.4.1

func (e *IncidentDetectedEventV0_2_0) SetSubjectEnvironment(environment *Reference)

func (*IncidentDetectedEventV0_2_0) SetSubjectId added in v0.4.1

func (e *IncidentDetectedEventV0_2_0) SetSubjectId(subjectId string)

func (*IncidentDetectedEventV0_2_0) SetSubjectService added in v0.4.1

func (e *IncidentDetectedEventV0_2_0) SetSubjectService(service *Reference)

func (*IncidentDetectedEventV0_2_0) SetSubjectSource added in v0.4.1

func (e *IncidentDetectedEventV0_2_0) SetSubjectSource(subjectSource string)

func (*IncidentDetectedEventV0_2_0) SetTimestamp added in v0.4.1

func (e *IncidentDetectedEventV0_2_0) SetTimestamp(timestamp time.Time)

type IncidentDetectedSubjectContentV0_1_0 added in v0.4.1

type IncidentDetectedSubjectContentV0_1_0 struct {
	ArtifactId string `json:"artifactId,omitempty" validate:"purl"`

	Description string `json:"description,omitempty"`

	Environment *Reference `json:"environment"`

	Service *Reference `json:"service,omitempty"`
}

type IncidentDetectedSubjectContentV0_2_0 added in v0.4.1

type IncidentDetectedSubjectContentV0_2_0 struct {
	ArtifactId string `json:"artifactId,omitempty" validate:"purl"`

	Description string `json:"description,omitempty"`

	Environment *Reference `json:"environment"`

	Service *Reference `json:"service,omitempty"`
}

type IncidentDetectedSubjectV0_1_0 added in v0.4.1

type IncidentDetectedSubjectV0_1_0 struct {
	SubjectBase
	Content IncidentDetectedSubjectContentV0_1_0 `json:"content"`
}

func (IncidentDetectedSubjectV0_1_0) GetSubjectType added in v0.4.1

func (sc IncidentDetectedSubjectV0_1_0) GetSubjectType() SubjectType

type IncidentDetectedSubjectV0_2_0 added in v0.4.1

type IncidentDetectedSubjectV0_2_0 struct {
	SubjectBase
	Content IncidentDetectedSubjectContentV0_2_0 `json:"content"`
}

func (IncidentDetectedSubjectV0_2_0) GetSubjectType added in v0.4.1

func (sc IncidentDetectedSubjectV0_2_0) GetSubjectType() SubjectType

type IncidentReportedEventV0_1_0 added in v0.4.1

type IncidentReportedEventV0_1_0 struct {
	Context Context                       `json:"context"`
	Subject IncidentReportedSubjectV0_1_0 `json:"subject"`
	CDEventCustomData
}

func NewIncidentReportedEventV0_1_0 added in v0.4.1

func NewIncidentReportedEventV0_1_0(specVersion string) (*IncidentReportedEventV0_1_0, error)

New creates a new IncidentReportedEventV0_1_0

func (IncidentReportedEventV0_1_0) GetCustomData added in v0.4.1

func (e IncidentReportedEventV0_1_0) GetCustomData() (interface{}, error)

func (IncidentReportedEventV0_1_0) GetCustomDataAs added in v0.4.1

func (e IncidentReportedEventV0_1_0) GetCustomDataAs(receiver interface{}) error

func (IncidentReportedEventV0_1_0) GetCustomDataContentType added in v0.4.1

func (e IncidentReportedEventV0_1_0) GetCustomDataContentType() string

func (IncidentReportedEventV0_1_0) GetCustomDataRaw added in v0.4.1

func (e IncidentReportedEventV0_1_0) GetCustomDataRaw() ([]byte, error)

func (IncidentReportedEventV0_1_0) GetId added in v0.4.1

func (IncidentReportedEventV0_1_0) GetSchema added in v0.4.1

func (IncidentReportedEventV0_1_0) GetSource added in v0.4.1

func (e IncidentReportedEventV0_1_0) GetSource() string

func (IncidentReportedEventV0_1_0) GetSubject added in v0.4.1

func (e IncidentReportedEventV0_1_0) GetSubject() Subject

func (IncidentReportedEventV0_1_0) GetSubjectContent added in v0.4.1

func (e IncidentReportedEventV0_1_0) GetSubjectContent() interface{}

func (IncidentReportedEventV0_1_0) GetSubjectId added in v0.4.1

func (e IncidentReportedEventV0_1_0) GetSubjectId() string

func (IncidentReportedEventV0_1_0) GetSubjectSource added in v0.4.1

func (e IncidentReportedEventV0_1_0) GetSubjectSource() string

func (IncidentReportedEventV0_1_0) GetTimestamp added in v0.4.1

func (e IncidentReportedEventV0_1_0) GetTimestamp() time.Time

func (IncidentReportedEventV0_1_0) GetType added in v0.4.1

func (IncidentReportedEventV0_1_0) GetVersion added in v0.4.1

func (e IncidentReportedEventV0_1_0) GetVersion() string

func (*IncidentReportedEventV0_1_0) SetCustomData added in v0.4.1

func (e *IncidentReportedEventV0_1_0) SetCustomData(contentType string, data interface{}) error

func (*IncidentReportedEventV0_1_0) SetId added in v0.4.1

func (e *IncidentReportedEventV0_1_0) SetId(id string)

func (*IncidentReportedEventV0_1_0) SetSource added in v0.4.1

func (e *IncidentReportedEventV0_1_0) SetSource(source string)

func (*IncidentReportedEventV0_1_0) SetSubjectArtifactId added in v0.4.1

func (e *IncidentReportedEventV0_1_0) SetSubjectArtifactId(artifactId string)

func (*IncidentReportedEventV0_1_0) SetSubjectDescription added in v0.4.1

func (e *IncidentReportedEventV0_1_0) SetSubjectDescription(description string)

func (*IncidentReportedEventV0_1_0) SetSubjectEnvironment added in v0.4.1

func (e *IncidentReportedEventV0_1_0) SetSubjectEnvironment(environment *Reference)

func (*IncidentReportedEventV0_1_0) SetSubjectId added in v0.4.1

func (e *IncidentReportedEventV0_1_0) SetSubjectId(subjectId string)

func (*IncidentReportedEventV0_1_0) SetSubjectService added in v0.4.1

func (e *IncidentReportedEventV0_1_0) SetSubjectService(service *Reference)

func (*IncidentReportedEventV0_1_0) SetSubjectSource added in v0.4.1

func (e *IncidentReportedEventV0_1_0) SetSubjectSource(subjectSource string)

func (*IncidentReportedEventV0_1_0) SetSubjectTicketURI added in v0.4.1

func (e *IncidentReportedEventV0_1_0) SetSubjectTicketURI(ticketURI string)

func (*IncidentReportedEventV0_1_0) SetTimestamp added in v0.4.1

func (e *IncidentReportedEventV0_1_0) SetTimestamp(timestamp time.Time)

type IncidentReportedEventV0_2_0 added in v0.4.1

type IncidentReportedEventV0_2_0 struct {
	Context ContextV04                    `json:"context"`
	Subject IncidentReportedSubjectV0_2_0 `json:"subject"`
	CDEventCustomData
}

func NewIncidentReportedEventV0_2_0 added in v0.4.1

func NewIncidentReportedEventV0_2_0(specVersion string) (*IncidentReportedEventV0_2_0, error)

New creates a new IncidentReportedEventV0_2_0

func (IncidentReportedEventV0_2_0) GetChainId added in v0.4.1

func (e IncidentReportedEventV0_2_0) GetChainId() string

func (IncidentReportedEventV0_2_0) GetCustomData added in v0.4.1

func (e IncidentReportedEventV0_2_0) GetCustomData() (interface{}, error)

func (IncidentReportedEventV0_2_0) GetCustomDataAs added in v0.4.1

func (e IncidentReportedEventV0_2_0) GetCustomDataAs(receiver interface{}) error

func (IncidentReportedEventV0_2_0) GetCustomDataContentType added in v0.4.1

func (e IncidentReportedEventV0_2_0) GetCustomDataContentType() string

func (IncidentReportedEventV0_2_0) GetCustomDataRaw added in v0.4.1

func (e IncidentReportedEventV0_2_0) GetCustomDataRaw() ([]byte, error)

func (IncidentReportedEventV0_2_0) GetCustomSchema added in v0.4.1

func (e IncidentReportedEventV0_2_0) GetCustomSchema() (*jsonschema.Schema, error)

GetCustomSchema looks up the SchemaUri, if any is defined. If none is defined, it returns nil. If it's defined and cannot be found, it returns an error.

func (IncidentReportedEventV0_2_0) GetId added in v0.4.1

func (IncidentReportedEventV0_2_0) GetSchema added in v0.4.1

func (IncidentReportedEventV0_2_0) GetSchemaUri added in v0.4.1

func (e IncidentReportedEventV0_2_0) GetSchemaUri() string

func (IncidentReportedEventV0_2_0) GetSource added in v0.4.1

func (e IncidentReportedEventV0_2_0) GetSource() string

func (IncidentReportedEventV0_2_0) GetSubject added in v0.4.1

func (e IncidentReportedEventV0_2_0) GetSubject() Subject

func (IncidentReportedEventV0_2_0) GetSubjectContent added in v0.4.1

func (e IncidentReportedEventV0_2_0) GetSubjectContent() interface{}

func (IncidentReportedEventV0_2_0) GetSubjectId added in v0.4.1

func (e IncidentReportedEventV0_2_0) GetSubjectId() string

func (IncidentReportedEventV0_2_0) GetSubjectSource added in v0.4.1

func (e IncidentReportedEventV0_2_0) GetSubjectSource() string

func (IncidentReportedEventV0_2_0) GetTimestamp added in v0.4.1

func (e IncidentReportedEventV0_2_0) GetTimestamp() time.Time

func (IncidentReportedEventV0_2_0) GetType added in v0.4.1

func (IncidentReportedEventV0_2_0) GetVersion added in v0.4.1

func (e IncidentReportedEventV0_2_0) GetVersion() string

func (*IncidentReportedEventV0_2_0) SetChainId added in v0.4.1

func (e *IncidentReportedEventV0_2_0) SetChainId(chainId string)

func (*IncidentReportedEventV0_2_0) SetCustomData added in v0.4.1

func (e *IncidentReportedEventV0_2_0) SetCustomData(contentType string, data interface{}) error

func (*IncidentReportedEventV0_2_0) SetId added in v0.4.1

func (e *IncidentReportedEventV0_2_0) SetId(id string)

func (*IncidentReportedEventV0_2_0) SetSchemaUri added in v0.4.1

func (e *IncidentReportedEventV0_2_0) SetSchemaUri(schema string)

func (*IncidentReportedEventV0_2_0) SetSource added in v0.4.1

func (e *IncidentReportedEventV0_2_0) SetSource(source string)

func (*IncidentReportedEventV0_2_0) SetSubjectArtifactId added in v0.4.1

func (e *IncidentReportedEventV0_2_0) SetSubjectArtifactId(artifactId string)

func (*IncidentReportedEventV0_2_0) SetSubjectDescription added in v0.4.1

func (e *IncidentReportedEventV0_2_0) SetSubjectDescription(description string)

func (*IncidentReportedEventV0_2_0) SetSubjectEnvironment added in v0.4.1

func (e *IncidentReportedEventV0_2_0) SetSubjectEnvironment(environment *Reference)

func (*IncidentReportedEventV0_2_0) SetSubjectId added in v0.4.1

func (e *IncidentReportedEventV0_2_0) SetSubjectId(subjectId string)

func (*IncidentReportedEventV0_2_0) SetSubjectService added in v0.4.1

func (e *IncidentReportedEventV0_2_0) SetSubjectService(service *Reference)

func (*IncidentReportedEventV0_2_0) SetSubjectSource added in v0.4.1

func (e *IncidentReportedEventV0_2_0) SetSubjectSource(subjectSource string)

func (*IncidentReportedEventV0_2_0) SetSubjectTicketURI added in v0.4.1

func (e *IncidentReportedEventV0_2_0) SetSubjectTicketURI(ticketURI string)

func (*IncidentReportedEventV0_2_0) SetTimestamp added in v0.4.1

func (e *IncidentReportedEventV0_2_0) SetTimestamp(timestamp time.Time)

type IncidentReportedSubjectContentV0_1_0 added in v0.4.1

type IncidentReportedSubjectContentV0_1_0 struct {
	ArtifactId string `json:"artifactId,omitempty" validate:"purl"`

	Description string `json:"description,omitempty"`

	Environment *Reference `json:"environment"`

	Service *Reference `json:"service,omitempty"`

	TicketURI string `json:"ticketURI"`
}

type IncidentReportedSubjectContentV0_2_0 added in v0.4.1

type IncidentReportedSubjectContentV0_2_0 struct {
	ArtifactId string `json:"artifactId,omitempty" validate:"purl"`

	Description string `json:"description,omitempty"`

	Environment *Reference `json:"environment"`

	Service *Reference `json:"service,omitempty"`

	TicketURI string `json:"ticketURI"`
}

type IncidentReportedSubjectV0_1_0 added in v0.4.1

type IncidentReportedSubjectV0_1_0 struct {
	SubjectBase
	Content IncidentReportedSubjectContentV0_1_0 `json:"content"`
}

func (IncidentReportedSubjectV0_1_0) GetSubjectType added in v0.4.1

func (sc IncidentReportedSubjectV0_1_0) GetSubjectType() SubjectType

type IncidentReportedSubjectV0_2_0 added in v0.4.1

type IncidentReportedSubjectV0_2_0 struct {
	SubjectBase
	Content IncidentReportedSubjectContentV0_2_0 `json:"content"`
}

func (IncidentReportedSubjectV0_2_0) GetSubjectType added in v0.4.1

func (sc IncidentReportedSubjectV0_2_0) GetSubjectType() SubjectType

type IncidentResolvedEventV0_1_0 added in v0.4.1

type IncidentResolvedEventV0_1_0 struct {
	Context Context                       `json:"context"`
	Subject IncidentResolvedSubjectV0_1_0 `json:"subject"`
	CDEventCustomData
}

func NewIncidentResolvedEventV0_1_0 added in v0.4.1

func NewIncidentResolvedEventV0_1_0(specVersion string) (*IncidentResolvedEventV0_1_0, error)

New creates a new IncidentResolvedEventV0_1_0

func (IncidentResolvedEventV0_1_0) GetCustomData added in v0.4.1

func (e IncidentResolvedEventV0_1_0) GetCustomData() (interface{}, error)

func (IncidentResolvedEventV0_1_0) GetCustomDataAs added in v0.4.1

func (e IncidentResolvedEventV0_1_0) GetCustomDataAs(receiver interface{}) error

func (IncidentResolvedEventV0_1_0) GetCustomDataContentType added in v0.4.1

func (e IncidentResolvedEventV0_1_0) GetCustomDataContentType() string

func (IncidentResolvedEventV0_1_0) GetCustomDataRaw added in v0.4.1

func (e IncidentResolvedEventV0_1_0) GetCustomDataRaw() ([]byte, error)

func (IncidentResolvedEventV0_1_0) GetId added in v0.4.1

func (IncidentResolvedEventV0_1_0) GetSchema added in v0.4.1

func (IncidentResolvedEventV0_1_0) GetSource added in v0.4.1

func (e IncidentResolvedEventV0_1_0) GetSource() string

func (IncidentResolvedEventV0_1_0) GetSubject added in v0.4.1

func (e IncidentResolvedEventV0_1_0) GetSubject() Subject

func (IncidentResolvedEventV0_1_0) GetSubjectContent added in v0.4.1

func (e IncidentResolvedEventV0_1_0) GetSubjectContent() interface{}

func (IncidentResolvedEventV0_1_0) GetSubjectId added in v0.4.1

func (e IncidentResolvedEventV0_1_0) GetSubjectId() string

func (IncidentResolvedEventV0_1_0) GetSubjectSource added in v0.4.1

func (e IncidentResolvedEventV0_1_0) GetSubjectSource() string

func (IncidentResolvedEventV0_1_0) GetTimestamp added in v0.4.1

func (e IncidentResolvedEventV0_1_0) GetTimestamp() time.Time

func (IncidentResolvedEventV0_1_0) GetType added in v0.4.1

func (IncidentResolvedEventV0_1_0) GetVersion added in v0.4.1

func (e IncidentResolvedEventV0_1_0) GetVersion() string

func (*IncidentResolvedEventV0_1_0) SetCustomData added in v0.4.1

func (e *IncidentResolvedEventV0_1_0) SetCustomData(contentType string, data interface{}) error

func (*IncidentResolvedEventV0_1_0) SetId added in v0.4.1

func (e *IncidentResolvedEventV0_1_0) SetId(id string)

func (*IncidentResolvedEventV0_1_0) SetSource added in v0.4.1

func (e *IncidentResolvedEventV0_1_0) SetSource(source string)

func (*IncidentResolvedEventV0_1_0) SetSubjectArtifactId added in v0.4.1

func (e *IncidentResolvedEventV0_1_0) SetSubjectArtifactId(artifactId string)

func (*IncidentResolvedEventV0_1_0) SetSubjectDescription added in v0.4.1

func (e *IncidentResolvedEventV0_1_0) SetSubjectDescription(description string)

func (*IncidentResolvedEventV0_1_0) SetSubjectEnvironment added in v0.4.1

func (e *IncidentResolvedEventV0_1_0) SetSubjectEnvironment(environment *Reference)

func (*IncidentResolvedEventV0_1_0) SetSubjectId added in v0.4.1

func (e *IncidentResolvedEventV0_1_0) SetSubjectId(subjectId string)

func (*IncidentResolvedEventV0_1_0) SetSubjectService added in v0.4.1

func (e *IncidentResolvedEventV0_1_0) SetSubjectService(service *Reference)

func (*IncidentResolvedEventV0_1_0) SetSubjectSource added in v0.4.1

func (e *IncidentResolvedEventV0_1_0) SetSubjectSource(subjectSource string)

func (*IncidentResolvedEventV0_1_0) SetTimestamp added in v0.4.1

func (e *IncidentResolvedEventV0_1_0) SetTimestamp(timestamp time.Time)

type IncidentResolvedEventV0_2_0 added in v0.4.1

type IncidentResolvedEventV0_2_0 struct {
	Context ContextV04                    `json:"context"`
	Subject IncidentResolvedSubjectV0_2_0 `json:"subject"`
	CDEventCustomData
}

func NewIncidentResolvedEventV0_2_0 added in v0.4.1

func NewIncidentResolvedEventV0_2_0(specVersion string) (*IncidentResolvedEventV0_2_0, error)

New creates a new IncidentResolvedEventV0_2_0

func (IncidentResolvedEventV0_2_0) GetChainId added in v0.4.1

func (e IncidentResolvedEventV0_2_0) GetChainId() string

func (IncidentResolvedEventV0_2_0) GetCustomData added in v0.4.1

func (e IncidentResolvedEventV0_2_0) GetCustomData() (interface{}, error)

func (IncidentResolvedEventV0_2_0) GetCustomDataAs added in v0.4.1

func (e IncidentResolvedEventV0_2_0) GetCustomDataAs(receiver interface{}) error

func (IncidentResolvedEventV0_2_0) GetCustomDataContentType added in v0.4.1

func (e IncidentResolvedEventV0_2_0) GetCustomDataContentType() string

func (IncidentResolvedEventV0_2_0) GetCustomDataRaw added in v0.4.1

func (e IncidentResolvedEventV0_2_0) GetCustomDataRaw() ([]byte, error)

func (IncidentResolvedEventV0_2_0) GetCustomSchema added in v0.4.1

func (e IncidentResolvedEventV0_2_0) GetCustomSchema() (*jsonschema.Schema, error)

GetCustomSchema looks up the SchemaUri, if any is defined. If none is defined, it returns nil. If it's defined and cannot be found, it returns an error.

func (IncidentResolvedEventV0_2_0) GetId added in v0.4.1

func (IncidentResolvedEventV0_2_0) GetSchema added in v0.4.1

func (IncidentResolvedEventV0_2_0) GetSchemaUri added in v0.4.1

func (e IncidentResolvedEventV0_2_0) GetSchemaUri() string

func (IncidentResolvedEventV0_2_0) GetSource added in v0.4.1

func (e IncidentResolvedEventV0_2_0) GetSource() string

func (IncidentResolvedEventV0_2_0) GetSubject added in v0.4.1

func (e IncidentResolvedEventV0_2_0) GetSubject() Subject

func (IncidentResolvedEventV0_2_0) GetSubjectContent added in v0.4.1

func (e IncidentResolvedEventV0_2_0) GetSubjectContent() interface{}

func (IncidentResolvedEventV0_2_0) GetSubjectId added in v0.4.1

func (e IncidentResolvedEventV0_2_0) GetSubjectId() string

func (IncidentResolvedEventV0_2_0) GetSubjectSource added in v0.4.1

func (e IncidentResolvedEventV0_2_0) GetSubjectSource() string

func (IncidentResolvedEventV0_2_0) GetTimestamp added in v0.4.1

func (e IncidentResolvedEventV0_2_0) GetTimestamp() time.Time

func (IncidentResolvedEventV0_2_0) GetType added in v0.4.1

func (IncidentResolvedEventV0_2_0) GetVersion added in v0.4.1

func (e IncidentResolvedEventV0_2_0) GetVersion() string

func (*IncidentResolvedEventV0_2_0) SetChainId added in v0.4.1

func (e *IncidentResolvedEventV0_2_0) SetChainId(chainId string)

func (*IncidentResolvedEventV0_2_0) SetCustomData added in v0.4.1

func (e *IncidentResolvedEventV0_2_0) SetCustomData(contentType string, data interface{}) error

func (*IncidentResolvedEventV0_2_0) SetId added in v0.4.1

func (e *IncidentResolvedEventV0_2_0) SetId(id string)

func (*IncidentResolvedEventV0_2_0) SetSchemaUri added in v0.4.1

func (e *IncidentResolvedEventV0_2_0) SetSchemaUri(schema string)

func (*IncidentResolvedEventV0_2_0) SetSource added in v0.4.1

func (e *IncidentResolvedEventV0_2_0) SetSource(source string)

func (*IncidentResolvedEventV0_2_0) SetSubjectArtifactId added in v0.4.1

func (e *IncidentResolvedEventV0_2_0) SetSubjectArtifactId(artifactId string)

func (*IncidentResolvedEventV0_2_0) SetSubjectDescription added in v0.4.1

func (e *IncidentResolvedEventV0_2_0) SetSubjectDescription(description string)

func (*IncidentResolvedEventV0_2_0) SetSubjectEnvironment added in v0.4.1

func (e *IncidentResolvedEventV0_2_0) SetSubjectEnvironment(environment *Reference)

func (*IncidentResolvedEventV0_2_0) SetSubjectId added in v0.4.1

func (e *IncidentResolvedEventV0_2_0) SetSubjectId(subjectId string)

func (*IncidentResolvedEventV0_2_0) SetSubjectService added in v0.4.1

func (e *IncidentResolvedEventV0_2_0) SetSubjectService(service *Reference)

func (*IncidentResolvedEventV0_2_0) SetSubjectSource added in v0.4.1

func (e *IncidentResolvedEventV0_2_0) SetSubjectSource(subjectSource string)

func (*IncidentResolvedEventV0_2_0) SetTimestamp added in v0.4.1

func (e *IncidentResolvedEventV0_2_0) SetTimestamp(timestamp time.Time)

type IncidentResolvedSubjectContentV0_1_0 added in v0.4.1

type IncidentResolvedSubjectContentV0_1_0 struct {
	ArtifactId string `json:"artifactId,omitempty" validate:"purl"`

	Description string `json:"description,omitempty"`

	Environment *Reference `json:"environment"`

	Service *Reference `json:"service,omitempty"`
}

type IncidentResolvedSubjectContentV0_2_0 added in v0.4.1

type IncidentResolvedSubjectContentV0_2_0 struct {
	ArtifactId string `json:"artifactId,omitempty" validate:"purl"`

	Description string `json:"description,omitempty"`

	Environment *Reference `json:"environment"`

	Service *Reference `json:"service,omitempty"`
}

type IncidentResolvedSubjectV0_1_0 added in v0.4.1

type IncidentResolvedSubjectV0_1_0 struct {
	SubjectBase
	Content IncidentResolvedSubjectContentV0_1_0 `json:"content"`
}

func (IncidentResolvedSubjectV0_1_0) GetSubjectType added in v0.4.1

func (sc IncidentResolvedSubjectV0_1_0) GetSubjectType() SubjectType

type IncidentResolvedSubjectV0_2_0 added in v0.4.1

type IncidentResolvedSubjectV0_2_0 struct {
	SubjectBase
	Content IncidentResolvedSubjectContentV0_2_0 `json:"content"`
}

func (IncidentResolvedSubjectV0_2_0) GetSubjectType added in v0.4.1

func (sc IncidentResolvedSubjectV0_2_0) GetSubjectType() SubjectType

type LinkType added in v0.4.1

type LinkType string

type PipelineRunFinishedEventV0_1_1 added in v0.4.1

type PipelineRunFinishedEventV0_1_1 struct {
	Context Context                          `json:"context"`
	Subject PipelineRunFinishedSubjectV0_1_1 `json:"subject"`
	CDEventCustomData
}

func NewPipelineRunFinishedEventV0_1_1 added in v0.4.1

func NewPipelineRunFinishedEventV0_1_1(specVersion string) (*PipelineRunFinishedEventV0_1_1, error)

New creates a new PipelineRunFinishedEventV0_1_1

func (PipelineRunFinishedEventV0_1_1) GetCustomData added in v0.4.1

func (e PipelineRunFinishedEventV0_1_1) GetCustomData() (interface{}, error)

func (PipelineRunFinishedEventV0_1_1) GetCustomDataAs added in v0.4.1

func (e PipelineRunFinishedEventV0_1_1) GetCustomDataAs(receiver interface{}) error

func (PipelineRunFinishedEventV0_1_1) GetCustomDataContentType added in v0.4.1

func (e PipelineRunFinishedEventV0_1_1) GetCustomDataContentType() string

func (PipelineRunFinishedEventV0_1_1) GetCustomDataRaw added in v0.4.1

func (e PipelineRunFinishedEventV0_1_1) GetCustomDataRaw() ([]byte, error)

func (PipelineRunFinishedEventV0_1_1) GetId added in v0.4.1

func (PipelineRunFinishedEventV0_1_1) GetSchema added in v0.4.1

func (PipelineRunFinishedEventV0_1_1) GetSource added in v0.4.1

func (e PipelineRunFinishedEventV0_1_1) GetSource() string

func (PipelineRunFinishedEventV0_1_1) GetSubject added in v0.4.1

func (e PipelineRunFinishedEventV0_1_1) GetSubject() Subject

func (PipelineRunFinishedEventV0_1_1) GetSubjectContent added in v0.4.1

func (e PipelineRunFinishedEventV0_1_1) GetSubjectContent() interface{}

func (PipelineRunFinishedEventV0_1_1) GetSubjectId added in v0.4.1

func (e PipelineRunFinishedEventV0_1_1) GetSubjectId() string

func (PipelineRunFinishedEventV0_1_1) GetSubjectSource added in v0.4.1

func (e PipelineRunFinishedEventV0_1_1) GetSubjectSource() string

func (PipelineRunFinishedEventV0_1_1) GetTimestamp added in v0.4.1

func (e PipelineRunFinishedEventV0_1_1) GetTimestamp() time.Time

func (PipelineRunFinishedEventV0_1_1) GetType added in v0.4.1

func (PipelineRunFinishedEventV0_1_1) GetVersion added in v0.4.1

func (e PipelineRunFinishedEventV0_1_1) GetVersion() string

func (*PipelineRunFinishedEventV0_1_1) SetCustomData added in v0.4.1

func (e *PipelineRunFinishedEventV0_1_1) SetCustomData(contentType string, data interface{}) error

func (*PipelineRunFinishedEventV0_1_1) SetId added in v0.4.1

func (*PipelineRunFinishedEventV0_1_1) SetSource added in v0.4.1

func (e *PipelineRunFinishedEventV0_1_1) SetSource(source string)

func (*PipelineRunFinishedEventV0_1_1) SetSubjectErrors added in v0.4.1

func (e *PipelineRunFinishedEventV0_1_1) SetSubjectErrors(errors string)

func (*PipelineRunFinishedEventV0_1_1) SetSubjectId added in v0.4.1

func (e *PipelineRunFinishedEventV0_1_1) SetSubjectId(subjectId string)

func (*PipelineRunFinishedEventV0_1_1) SetSubjectOutcome added in v0.4.1

func (e *PipelineRunFinishedEventV0_1_1) SetSubjectOutcome(outcome string)

func (*PipelineRunFinishedEventV0_1_1) SetSubjectPipelineName added in v0.4.1

func (e *PipelineRunFinishedEventV0_1_1) SetSubjectPipelineName(pipelineName string)

func (*PipelineRunFinishedEventV0_1_1) SetSubjectSource added in v0.4.1

func (e *PipelineRunFinishedEventV0_1_1) SetSubjectSource(subjectSource string)

func (*PipelineRunFinishedEventV0_1_1) SetSubjectUrl added in v0.4.1

func (e *PipelineRunFinishedEventV0_1_1) SetSubjectUrl(url string)

func (*PipelineRunFinishedEventV0_1_1) SetTimestamp added in v0.4.1

func (e *PipelineRunFinishedEventV0_1_1) SetTimestamp(timestamp time.Time)

type PipelineRunFinishedEventV0_2_0 added in v0.4.1

type PipelineRunFinishedEventV0_2_0 struct {
	Context ContextV04                       `json:"context"`
	Subject PipelineRunFinishedSubjectV0_2_0 `json:"subject"`
	CDEventCustomData
}

func NewPipelineRunFinishedEventV0_2_0 added in v0.4.1

func NewPipelineRunFinishedEventV0_2_0(specVersion string) (*PipelineRunFinishedEventV0_2_0, error)

New creates a new PipelineRunFinishedEventV0_2_0

func (PipelineRunFinishedEventV0_2_0) GetChainId added in v0.4.1

func (e PipelineRunFinishedEventV0_2_0) GetChainId() string

func (PipelineRunFinishedEventV0_2_0) GetCustomData added in v0.4.1

func (e PipelineRunFinishedEventV0_2_0) GetCustomData() (interface{}, error)

func (PipelineRunFinishedEventV0_2_0) GetCustomDataAs added in v0.4.1

func (e PipelineRunFinishedEventV0_2_0) GetCustomDataAs(receiver interface{}) error

func (PipelineRunFinishedEventV0_2_0) GetCustomDataContentType added in v0.4.1

func (e PipelineRunFinishedEventV0_2_0) GetCustomDataContentType() string

func (PipelineRunFinishedEventV0_2_0) GetCustomDataRaw added in v0.4.1

func (e PipelineRunFinishedEventV0_2_0) GetCustomDataRaw() ([]byte, error)

func (PipelineRunFinishedEventV0_2_0) GetCustomSchema added in v0.4.1

func (e PipelineRunFinishedEventV0_2_0) GetCustomSchema() (*jsonschema.Schema, error)

GetCustomSchema looks up the SchemaUri, if any is defined. If none is defined, it returns nil. If it's defined and cannot be found, it returns an error.

func (PipelineRunFinishedEventV0_2_0) GetId added in v0.4.1

func (PipelineRunFinishedEventV0_2_0) GetSchema added in v0.4.1

func (PipelineRunFinishedEventV0_2_0) GetSchemaUri added in v0.4.1

func (e PipelineRunFinishedEventV0_2_0) GetSchemaUri() string

func (PipelineRunFinishedEventV0_2_0) GetSource added in v0.4.1

func (e PipelineRunFinishedEventV0_2_0) GetSource() string

func (PipelineRunFinishedEventV0_2_0) GetSubject added in v0.4.1

func (e PipelineRunFinishedEventV0_2_0) GetSubject() Subject

func (PipelineRunFinishedEventV0_2_0) GetSubjectContent added in v0.4.1

func (e PipelineRunFinishedEventV0_2_0) GetSubjectContent() interface{}

func (PipelineRunFinishedEventV0_2_0) GetSubjectId added in v0.4.1

func (e PipelineRunFinishedEventV0_2_0) GetSubjectId() string

func (PipelineRunFinishedEventV0_2_0) GetSubjectSource added in v0.4.1

func (e PipelineRunFinishedEventV0_2_0) GetSubjectSource() string

func (PipelineRunFinishedEventV0_2_0) GetTimestamp added in v0.4.1

func (e PipelineRunFinishedEventV0_2_0) GetTimestamp() time.Time

func (PipelineRunFinishedEventV0_2_0) GetType added in v0.4.1

func (PipelineRunFinishedEventV0_2_0) GetVersion added in v0.4.1

func (e PipelineRunFinishedEventV0_2_0) GetVersion() string

func (*PipelineRunFinishedEventV0_2_0) SetChainId added in v0.4.1

func (e *PipelineRunFinishedEventV0_2_0) SetChainId(chainId string)

func (*PipelineRunFinishedEventV0_2_0) SetCustomData added in v0.4.1

func (e *PipelineRunFinishedEventV0_2_0) SetCustomData(contentType string, data interface{}) error

func (*PipelineRunFinishedEventV0_2_0) SetId added in v0.4.1

func (*PipelineRunFinishedEventV0_2_0) SetSchemaUri added in v0.4.1

func (e *PipelineRunFinishedEventV0_2_0) SetSchemaUri(schema string)

func (*PipelineRunFinishedEventV0_2_0) SetSource added in v0.4.1

func (e *PipelineRunFinishedEventV0_2_0) SetSource(source string)

func (*PipelineRunFinishedEventV0_2_0) SetSubjectErrors added in v0.4.1

func (e *PipelineRunFinishedEventV0_2_0) SetSubjectErrors(errors string)

func (*PipelineRunFinishedEventV0_2_0) SetSubjectId added in v0.4.1

func (e *PipelineRunFinishedEventV0_2_0) SetSubjectId(subjectId string)

func (*PipelineRunFinishedEventV0_2_0) SetSubjectOutcome added in v0.4.1

func (e *PipelineRunFinishedEventV0_2_0) SetSubjectOutcome(outcome string)

func (*PipelineRunFinishedEventV0_2_0) SetSubjectPipelineName added in v0.4.1

func (e *PipelineRunFinishedEventV0_2_0) SetSubjectPipelineName(pipelineName string)

func (*PipelineRunFinishedEventV0_2_0) SetSubjectSource added in v0.4.1

func (e *PipelineRunFinishedEventV0_2_0) SetSubjectSource(subjectSource string)

func (*PipelineRunFinishedEventV0_2_0) SetSubjectUrl added in v0.4.1

func (e *PipelineRunFinishedEventV0_2_0) SetSubjectUrl(url string)

func (*PipelineRunFinishedEventV0_2_0) SetTimestamp added in v0.4.1

func (e *PipelineRunFinishedEventV0_2_0) SetTimestamp(timestamp time.Time)

type PipelineRunFinishedSubjectContentV0_1_1 added in v0.4.1

type PipelineRunFinishedSubjectContentV0_1_1 struct {
	Errors string `json:"errors,omitempty"`

	Outcome string `json:"outcome,omitempty"`

	PipelineName string `json:"pipelineName,omitempty"`

	Url string `json:"url,omitempty"`
}

type PipelineRunFinishedSubjectContentV0_2_0 added in v0.4.1

type PipelineRunFinishedSubjectContentV0_2_0 struct {
	Errors string `json:"errors,omitempty"`

	Outcome string `json:"outcome,omitempty"`

	PipelineName string `json:"pipelineName,omitempty"`

	Url string `json:"url,omitempty"`
}

type PipelineRunFinishedSubjectV0_1_1 added in v0.4.1

type PipelineRunFinishedSubjectV0_1_1 struct {
	SubjectBase
	Content PipelineRunFinishedSubjectContentV0_1_1 `json:"content"`
}

func (PipelineRunFinishedSubjectV0_1_1) GetSubjectType added in v0.4.1

func (sc PipelineRunFinishedSubjectV0_1_1) GetSubjectType() SubjectType

type PipelineRunFinishedSubjectV0_2_0 added in v0.4.1

type PipelineRunFinishedSubjectV0_2_0 struct {
	SubjectBase
	Content PipelineRunFinishedSubjectContentV0_2_0 `json:"content"`
}

func (PipelineRunFinishedSubjectV0_2_0) GetSubjectType added in v0.4.1

func (sc PipelineRunFinishedSubjectV0_2_0) GetSubjectType() SubjectType

type PipelineRunQueuedEventV0_1_1 added in v0.4.1

type PipelineRunQueuedEventV0_1_1 struct {
	Context Context                        `json:"context"`
	Subject PipelineRunQueuedSubjectV0_1_1 `json:"subject"`
	CDEventCustomData
}

func NewPipelineRunQueuedEventV0_1_1 added in v0.4.1

func NewPipelineRunQueuedEventV0_1_1(specVersion string) (*PipelineRunQueuedEventV0_1_1, error)

New creates a new PipelineRunQueuedEventV0_1_1

func (PipelineRunQueuedEventV0_1_1) GetCustomData added in v0.4.1

func (e PipelineRunQueuedEventV0_1_1) GetCustomData() (interface{}, error)

func (PipelineRunQueuedEventV0_1_1) GetCustomDataAs added in v0.4.1

func (e PipelineRunQueuedEventV0_1_1) GetCustomDataAs(receiver interface{}) error

func (PipelineRunQueuedEventV0_1_1) GetCustomDataContentType added in v0.4.1

func (e PipelineRunQueuedEventV0_1_1) GetCustomDataContentType() string

func (PipelineRunQueuedEventV0_1_1) GetCustomDataRaw added in v0.4.1

func (e PipelineRunQueuedEventV0_1_1) GetCustomDataRaw() ([]byte, error)

func (PipelineRunQueuedEventV0_1_1) GetId added in v0.4.1

func (PipelineRunQueuedEventV0_1_1) GetSchema added in v0.4.1

func (PipelineRunQueuedEventV0_1_1) GetSource added in v0.4.1

func (e PipelineRunQueuedEventV0_1_1) GetSource() string

func (PipelineRunQueuedEventV0_1_1) GetSubject added in v0.4.1

func (e PipelineRunQueuedEventV0_1_1) GetSubject() Subject

func (PipelineRunQueuedEventV0_1_1) GetSubjectContent added in v0.4.1

func (e PipelineRunQueuedEventV0_1_1) GetSubjectContent() interface{}

func (PipelineRunQueuedEventV0_1_1) GetSubjectId added in v0.4.1

func (e PipelineRunQueuedEventV0_1_1) GetSubjectId() string

func (PipelineRunQueuedEventV0_1_1) GetSubjectSource added in v0.4.1

func (e PipelineRunQueuedEventV0_1_1) GetSubjectSource() string

func (PipelineRunQueuedEventV0_1_1) GetTimestamp added in v0.4.1

func (e PipelineRunQueuedEventV0_1_1) GetTimestamp() time.Time

func (PipelineRunQueuedEventV0_1_1) GetType added in v0.4.1

func (PipelineRunQueuedEventV0_1_1) GetVersion added in v0.4.1

func (e PipelineRunQueuedEventV0_1_1) GetVersion() string

func (*PipelineRunQueuedEventV0_1_1) SetCustomData added in v0.4.1

func (e *PipelineRunQueuedEventV0_1_1) SetCustomData(contentType string, data interface{}) error

func (*PipelineRunQueuedEventV0_1_1) SetId added in v0.4.1

func (e *PipelineRunQueuedEventV0_1_1) SetId(id string)

func (*PipelineRunQueuedEventV0_1_1) SetSource added in v0.4.1

func (e *PipelineRunQueuedEventV0_1_1) SetSource(source string)

func (*PipelineRunQueuedEventV0_1_1) SetSubjectId added in v0.4.1

func (e *PipelineRunQueuedEventV0_1_1) SetSubjectId(subjectId string)

func (*PipelineRunQueuedEventV0_1_1) SetSubjectPipelineName added in v0.4.1

func (e *PipelineRunQueuedEventV0_1_1) SetSubjectPipelineName(pipelineName string)

func (*PipelineRunQueuedEventV0_1_1) SetSubjectSource added in v0.4.1

func (e *PipelineRunQueuedEventV0_1_1) SetSubjectSource(subjectSource string)

func (*PipelineRunQueuedEventV0_1_1) SetSubjectUrl added in v0.4.1

func (e *PipelineRunQueuedEventV0_1_1) SetSubjectUrl(url string)

func (*PipelineRunQueuedEventV0_1_1) SetTimestamp added in v0.4.1

func (e *PipelineRunQueuedEventV0_1_1) SetTimestamp(timestamp time.Time)

type PipelineRunQueuedEventV0_2_0 added in v0.4.1

type PipelineRunQueuedEventV0_2_0 struct {
	Context ContextV04                     `json:"context"`
	Subject PipelineRunQueuedSubjectV0_2_0 `json:"subject"`
	CDEventCustomData
}

func NewPipelineRunQueuedEventV0_2_0 added in v0.4.1

func NewPipelineRunQueuedEventV0_2_0(specVersion string) (*PipelineRunQueuedEventV0_2_0, error)

New creates a new PipelineRunQueuedEventV0_2_0

func (PipelineRunQueuedEventV0_2_0) GetChainId added in v0.4.1

func (e PipelineRunQueuedEventV0_2_0) GetChainId() string

func (PipelineRunQueuedEventV0_2_0) GetCustomData added in v0.4.1

func (e PipelineRunQueuedEventV0_2_0) GetCustomData() (interface{}, error)

func (PipelineRunQueuedEventV0_2_0) GetCustomDataAs added in v0.4.1

func (e PipelineRunQueuedEventV0_2_0) GetCustomDataAs(receiver interface{}) error

func (PipelineRunQueuedEventV0_2_0) GetCustomDataContentType added in v0.4.1

func (e PipelineRunQueuedEventV0_2_0) GetCustomDataContentType() string

func (PipelineRunQueuedEventV0_2_0) GetCustomDataRaw added in v0.4.1

func (e PipelineRunQueuedEventV0_2_0) GetCustomDataRaw() ([]byte, error)

func (PipelineRunQueuedEventV0_2_0) GetCustomSchema added in v0.4.1

func (e PipelineRunQueuedEventV0_2_0) GetCustomSchema() (*jsonschema.Schema, error)

GetCustomSchema looks up the SchemaUri, if any is defined. If none is defined, it returns nil. If it's defined and cannot be found, it returns an error.

func (PipelineRunQueuedEventV0_2_0) GetId added in v0.4.1

func (PipelineRunQueuedEventV0_2_0) GetSchema added in v0.4.1

func (PipelineRunQueuedEventV0_2_0) GetSchemaUri added in v0.4.1

func (e PipelineRunQueuedEventV0_2_0) GetSchemaUri() string

func (PipelineRunQueuedEventV0_2_0) GetSource added in v0.4.1

func (e PipelineRunQueuedEventV0_2_0) GetSource() string

func (PipelineRunQueuedEventV0_2_0) GetSubject added in v0.4.1

func (e PipelineRunQueuedEventV0_2_0) GetSubject() Subject

func (PipelineRunQueuedEventV0_2_0) GetSubjectContent added in v0.4.1

func (e PipelineRunQueuedEventV0_2_0) GetSubjectContent() interface{}

func (PipelineRunQueuedEventV0_2_0) GetSubjectId added in v0.4.1

func (e PipelineRunQueuedEventV0_2_0) GetSubjectId() string

func (PipelineRunQueuedEventV0_2_0) GetSubjectSource added in v0.4.1

func (e PipelineRunQueuedEventV0_2_0) GetSubjectSource() string

func (PipelineRunQueuedEventV0_2_0) GetTimestamp added in v0.4.1

func (e PipelineRunQueuedEventV0_2_0) GetTimestamp() time.Time

func (PipelineRunQueuedEventV0_2_0) GetType added in v0.4.1

func (PipelineRunQueuedEventV0_2_0) GetVersion added in v0.4.1

func (e PipelineRunQueuedEventV0_2_0) GetVersion() string

func (*PipelineRunQueuedEventV0_2_0) SetChainId added in v0.4.1

func (e *PipelineRunQueuedEventV0_2_0) SetChainId(chainId string)

func (*PipelineRunQueuedEventV0_2_0) SetCustomData added in v0.4.1

func (e *PipelineRunQueuedEventV0_2_0) SetCustomData(contentType string, data interface{}) error

func (*PipelineRunQueuedEventV0_2_0) SetId added in v0.4.1

func (e *PipelineRunQueuedEventV0_2_0) SetId(id string)

func (*PipelineRunQueuedEventV0_2_0) SetSchemaUri added in v0.4.1

func (e *PipelineRunQueuedEventV0_2_0) SetSchemaUri(schema string)

func (*PipelineRunQueuedEventV0_2_0) SetSource added in v0.4.1

func (e *PipelineRunQueuedEventV0_2_0) SetSource(source string)

func (*PipelineRunQueuedEventV0_2_0) SetSubjectId added in v0.4.1

func (e *PipelineRunQueuedEventV0_2_0) SetSubjectId(subjectId string)

func (*PipelineRunQueuedEventV0_2_0) SetSubjectPipelineName added in v0.4.1

func (e *PipelineRunQueuedEventV0_2_0) SetSubjectPipelineName(pipelineName string)

func (*PipelineRunQueuedEventV0_2_0) SetSubjectSource added in v0.4.1

func (e *PipelineRunQueuedEventV0_2_0) SetSubjectSource(subjectSource string)

func (*PipelineRunQueuedEventV0_2_0) SetSubjectUrl added in v0.4.1

func (e *PipelineRunQueuedEventV0_2_0) SetSubjectUrl(url string)

func (*PipelineRunQueuedEventV0_2_0) SetTimestamp added in v0.4.1

func (e *PipelineRunQueuedEventV0_2_0) SetTimestamp(timestamp time.Time)

type PipelineRunQueuedSubjectContentV0_1_1 added in v0.4.1

type PipelineRunQueuedSubjectContentV0_1_1 struct {
	PipelineName string `json:"pipelineName,omitempty"`

	Url string `json:"url,omitempty"`
}

type PipelineRunQueuedSubjectContentV0_2_0 added in v0.4.1

type PipelineRunQueuedSubjectContentV0_2_0 struct {
	PipelineName string `json:"pipelineName,omitempty"`

	Url string `json:"url,omitempty"`
}

type PipelineRunQueuedSubjectV0_1_1 added in v0.4.1

type PipelineRunQueuedSubjectV0_1_1 struct {
	SubjectBase
	Content PipelineRunQueuedSubjectContentV0_1_1 `json:"content"`
}

func (PipelineRunQueuedSubjectV0_1_1) GetSubjectType added in v0.4.1

func (sc PipelineRunQueuedSubjectV0_1_1) GetSubjectType() SubjectType

type PipelineRunQueuedSubjectV0_2_0 added in v0.4.1

type PipelineRunQueuedSubjectV0_2_0 struct {
	SubjectBase
	Content PipelineRunQueuedSubjectContentV0_2_0 `json:"content"`
}

func (PipelineRunQueuedSubjectV0_2_0) GetSubjectType added in v0.4.1

func (sc PipelineRunQueuedSubjectV0_2_0) GetSubjectType() SubjectType

type PipelineRunStartedEventV0_1_1 added in v0.4.1

type PipelineRunStartedEventV0_1_1 struct {
	Context Context                         `json:"context"`
	Subject PipelineRunStartedSubjectV0_1_1 `json:"subject"`
	CDEventCustomData
}

func NewPipelineRunStartedEventV0_1_1 added in v0.4.1

func NewPipelineRunStartedEventV0_1_1(specVersion string) (*PipelineRunStartedEventV0_1_1, error)

New creates a new PipelineRunStartedEventV0_1_1

func (PipelineRunStartedEventV0_1_1) GetCustomData added in v0.4.1

func (e PipelineRunStartedEventV0_1_1) GetCustomData() (interface{}, error)

func (PipelineRunStartedEventV0_1_1) GetCustomDataAs added in v0.4.1

func (e PipelineRunStartedEventV0_1_1) GetCustomDataAs(receiver interface{}) error

func (PipelineRunStartedEventV0_1_1) GetCustomDataContentType added in v0.4.1

func (e PipelineRunStartedEventV0_1_1) GetCustomDataContentType() string

func (PipelineRunStartedEventV0_1_1) GetCustomDataRaw added in v0.4.1

func (e PipelineRunStartedEventV0_1_1) GetCustomDataRaw() ([]byte, error)

func (PipelineRunStartedEventV0_1_1) GetId added in v0.4.1

func (PipelineRunStartedEventV0_1_1) GetSchema added in v0.4.1

func (PipelineRunStartedEventV0_1_1) GetSource added in v0.4.1

func (e PipelineRunStartedEventV0_1_1) GetSource() string

func (PipelineRunStartedEventV0_1_1) GetSubject added in v0.4.1

func (e PipelineRunStartedEventV0_1_1) GetSubject() Subject

func (PipelineRunStartedEventV0_1_1) GetSubjectContent added in v0.4.1

func (e PipelineRunStartedEventV0_1_1) GetSubjectContent() interface{}

func (PipelineRunStartedEventV0_1_1) GetSubjectId added in v0.4.1

func (e PipelineRunStartedEventV0_1_1) GetSubjectId() string

func (PipelineRunStartedEventV0_1_1) GetSubjectSource added in v0.4.1

func (e PipelineRunStartedEventV0_1_1) GetSubjectSource() string

func (PipelineRunStartedEventV0_1_1) GetTimestamp added in v0.4.1

func (e PipelineRunStartedEventV0_1_1) GetTimestamp() time.Time

func (PipelineRunStartedEventV0_1_1) GetType added in v0.4.1

func (PipelineRunStartedEventV0_1_1) GetVersion added in v0.4.1

func (e PipelineRunStartedEventV0_1_1) GetVersion() string

func (*PipelineRunStartedEventV0_1_1) SetCustomData added in v0.4.1

func (e *PipelineRunStartedEventV0_1_1) SetCustomData(contentType string, data interface{}) error

func (*PipelineRunStartedEventV0_1_1) SetId added in v0.4.1

func (*PipelineRunStartedEventV0_1_1) SetSource added in v0.4.1

func (e *PipelineRunStartedEventV0_1_1) SetSource(source string)

func (*PipelineRunStartedEventV0_1_1) SetSubjectId added in v0.4.1

func (e *PipelineRunStartedEventV0_1_1) SetSubjectId(subjectId string)

func (*PipelineRunStartedEventV0_1_1) SetSubjectPipelineName added in v0.4.1

func (e *PipelineRunStartedEventV0_1_1) SetSubjectPipelineName(pipelineName string)

func (*PipelineRunStartedEventV0_1_1) SetSubjectSource added in v0.4.1

func (e *PipelineRunStartedEventV0_1_1) SetSubjectSource(subjectSource string)

func (*PipelineRunStartedEventV0_1_1) SetSubjectUrl added in v0.4.1

func (e *PipelineRunStartedEventV0_1_1) SetSubjectUrl(url string)

func (*PipelineRunStartedEventV0_1_1) SetTimestamp added in v0.4.1

func (e *PipelineRunStartedEventV0_1_1) SetTimestamp(timestamp time.Time)

type PipelineRunStartedEventV0_2_0 added in v0.4.1

type PipelineRunStartedEventV0_2_0 struct {
	Context ContextV04                      `json:"context"`
	Subject PipelineRunStartedSubjectV0_2_0 `json:"subject"`
	CDEventCustomData
}

func NewPipelineRunStartedEventV0_2_0 added in v0.4.1

func NewPipelineRunStartedEventV0_2_0(specVersion string) (*PipelineRunStartedEventV0_2_0, error)

New creates a new PipelineRunStartedEventV0_2_0

func (PipelineRunStartedEventV0_2_0) GetChainId added in v0.4.1

func (e PipelineRunStartedEventV0_2_0) GetChainId() string

func (PipelineRunStartedEventV0_2_0) GetCustomData added in v0.4.1

func (e PipelineRunStartedEventV0_2_0) GetCustomData() (interface{}, error)

func (PipelineRunStartedEventV0_2_0) GetCustomDataAs added in v0.4.1

func (e PipelineRunStartedEventV0_2_0) GetCustomDataAs(receiver interface{}) error

func (PipelineRunStartedEventV0_2_0) GetCustomDataContentType added in v0.4.1

func (e PipelineRunStartedEventV0_2_0) GetCustomDataContentType() string

func (PipelineRunStartedEventV0_2_0) GetCustomDataRaw added in v0.4.1

func (e PipelineRunStartedEventV0_2_0) GetCustomDataRaw() ([]byte, error)

func (PipelineRunStartedEventV0_2_0) GetCustomSchema added in v0.4.1

func (e PipelineRunStartedEventV0_2_0) GetCustomSchema() (*jsonschema.Schema, error)

GetCustomSchema looks up the SchemaUri, if any is defined. If none is defined, it returns nil. If it's defined and cannot be found, it returns an error.

func (PipelineRunStartedEventV0_2_0) GetId added in v0.4.1

func (PipelineRunStartedEventV0_2_0) GetSchema added in v0.4.1

func (PipelineRunStartedEventV0_2_0) GetSchemaUri added in v0.4.1

func (e PipelineRunStartedEventV0_2_0) GetSchemaUri() string

func (PipelineRunStartedEventV0_2_0) GetSource added in v0.4.1

func (e PipelineRunStartedEventV0_2_0) GetSource() string

func (PipelineRunStartedEventV0_2_0) GetSubject added in v0.4.1

func (e PipelineRunStartedEventV0_2_0) GetSubject() Subject

func (PipelineRunStartedEventV0_2_0) GetSubjectContent added in v0.4.1

func (e PipelineRunStartedEventV0_2_0) GetSubjectContent() interface{}

func (PipelineRunStartedEventV0_2_0) GetSubjectId added in v0.4.1

func (e PipelineRunStartedEventV0_2_0) GetSubjectId() string

func (PipelineRunStartedEventV0_2_0) GetSubjectSource added in v0.4.1

func (e PipelineRunStartedEventV0_2_0) GetSubjectSource() string

func (PipelineRunStartedEventV0_2_0) GetTimestamp added in v0.4.1

func (e PipelineRunStartedEventV0_2_0) GetTimestamp() time.Time

func (PipelineRunStartedEventV0_2_0) GetType added in v0.4.1

func (PipelineRunStartedEventV0_2_0) GetVersion added in v0.4.1

func (e PipelineRunStartedEventV0_2_0) GetVersion() string

func (*PipelineRunStartedEventV0_2_0) SetChainId added in v0.4.1

func (e *PipelineRunStartedEventV0_2_0) SetChainId(chainId string)

func (*PipelineRunStartedEventV0_2_0) SetCustomData added in v0.4.1

func (e *PipelineRunStartedEventV0_2_0) SetCustomData(contentType string, data interface{}) error

func (*PipelineRunStartedEventV0_2_0) SetId added in v0.4.1

func (*PipelineRunStartedEventV0_2_0) SetSchemaUri added in v0.4.1

func (e *PipelineRunStartedEventV0_2_0) SetSchemaUri(schema string)

func (*PipelineRunStartedEventV0_2_0) SetSource added in v0.4.1

func (e *PipelineRunStartedEventV0_2_0) SetSource(source string)

func (*PipelineRunStartedEventV0_2_0) SetSubjectId added in v0.4.1

func (e *PipelineRunStartedEventV0_2_0) SetSubjectId(subjectId string)

func (*PipelineRunStartedEventV0_2_0) SetSubjectPipelineName added in v0.4.1

func (e *PipelineRunStartedEventV0_2_0) SetSubjectPipelineName(pipelineName string)

func (*PipelineRunStartedEventV0_2_0) SetSubjectSource added in v0.4.1

func (e *PipelineRunStartedEventV0_2_0) SetSubjectSource(subjectSource string)

func (*PipelineRunStartedEventV0_2_0) SetSubjectUrl added in v0.4.1

func (e *PipelineRunStartedEventV0_2_0) SetSubjectUrl(url string)

func (*PipelineRunStartedEventV0_2_0) SetTimestamp added in v0.4.1

func (e *PipelineRunStartedEventV0_2_0) SetTimestamp(timestamp time.Time)

type PipelineRunStartedSubjectContentV0_1_1 added in v0.4.1

type PipelineRunStartedSubjectContentV0_1_1 struct {
	PipelineName string `json:"pipelineName"`

	Url string `json:"url"`
}

type PipelineRunStartedSubjectContentV0_2_0 added in v0.4.1

type PipelineRunStartedSubjectContentV0_2_0 struct {
	PipelineName string `json:"pipelineName"`

	Url string `json:"url"`
}

type PipelineRunStartedSubjectV0_1_1 added in v0.4.1

type PipelineRunStartedSubjectV0_1_1 struct {
	SubjectBase
	Content PipelineRunStartedSubjectContentV0_1_1 `json:"content"`
}

func (PipelineRunStartedSubjectV0_1_1) GetSubjectType added in v0.4.1

func (sc PipelineRunStartedSubjectV0_1_1) GetSubjectType() SubjectType

type PipelineRunStartedSubjectV0_2_0 added in v0.4.1

type PipelineRunStartedSubjectV0_2_0 struct {
	SubjectBase
	Content PipelineRunStartedSubjectContentV0_2_0 `json:"content"`
}

func (PipelineRunStartedSubjectV0_2_0) GetSubjectType added in v0.4.1

func (sc PipelineRunStartedSubjectV0_2_0) GetSubjectType() SubjectType

type Reference

type Reference struct {

	// Spec: https://cdevents.dev/docs/spec/#format-of-subjects
	// Description: Uniquely identifies the subject within the source
	Id string `json:"id" jsonschema:"required,minLength=1"`

	// Spec: https://cdevents.dev/docs/spec/#format-of-subjects
	// Description: defines the context in which an event happened. The main
	// purpose of the source is to provide global uniqueness for source + id.
	// The source MAY identify a single producer or a group of producer that
	// belong to the same application.
	Source string `json:"source,omitempty" validate:"uri-reference"`
}

type RepositoryCreatedEventV0_1_1 added in v0.4.1

type RepositoryCreatedEventV0_1_1 struct {
	Context Context                        `json:"context"`
	Subject RepositoryCreatedSubjectV0_1_1 `json:"subject"`
	CDEventCustomData
}

func NewRepositoryCreatedEventV0_1_1 added in v0.4.1

func NewRepositoryCreatedEventV0_1_1(specVersion string) (*RepositoryCreatedEventV0_1_1, error)

New creates a new RepositoryCreatedEventV0_1_1

func (RepositoryCreatedEventV0_1_1) GetCustomData added in v0.4.1

func (e RepositoryCreatedEventV0_1_1) GetCustomData() (interface{}, error)

func (RepositoryCreatedEventV0_1_1) GetCustomDataAs added in v0.4.1

func (e RepositoryCreatedEventV0_1_1) GetCustomDataAs(receiver interface{}) error

func (RepositoryCreatedEventV0_1_1) GetCustomDataContentType added in v0.4.1

func (e RepositoryCreatedEventV0_1_1) GetCustomDataContentType() string

func (RepositoryCreatedEventV0_1_1) GetCustomDataRaw added in v0.4.1

func (e RepositoryCreatedEventV0_1_1) GetCustomDataRaw() ([]byte, error)

func (RepositoryCreatedEventV0_1_1) GetId added in v0.4.1

func (RepositoryCreatedEventV0_1_1) GetSchema added in v0.4.1

func (RepositoryCreatedEventV0_1_1) GetSource added in v0.4.1

func (e RepositoryCreatedEventV0_1_1) GetSource() string

func (RepositoryCreatedEventV0_1_1) GetSubject added in v0.4.1

func (e RepositoryCreatedEventV0_1_1) GetSubject() Subject

func (RepositoryCreatedEventV0_1_1) GetSubjectContent added in v0.4.1

func (e RepositoryCreatedEventV0_1_1) GetSubjectContent() interface{}

func (RepositoryCreatedEventV0_1_1) GetSubjectId added in v0.4.1

func (e RepositoryCreatedEventV0_1_1) GetSubjectId() string

func (RepositoryCreatedEventV0_1_1) GetSubjectSource added in v0.4.1

func (e RepositoryCreatedEventV0_1_1) GetSubjectSource() string

func (RepositoryCreatedEventV0_1_1) GetTimestamp added in v0.4.1

func (e RepositoryCreatedEventV0_1_1) GetTimestamp() time.Time

func (RepositoryCreatedEventV0_1_1) GetType added in v0.4.1

func (RepositoryCreatedEventV0_1_1) GetVersion added in v0.4.1

func (e RepositoryCreatedEventV0_1_1) GetVersion() string

func (*RepositoryCreatedEventV0_1_1) SetCustomData added in v0.4.1

func (e *RepositoryCreatedEventV0_1_1) SetCustomData(contentType string, data interface{}) error

func (*RepositoryCreatedEventV0_1_1) SetId added in v0.4.1

func (e *RepositoryCreatedEventV0_1_1) SetId(id string)

func (*RepositoryCreatedEventV0_1_1) SetSource added in v0.4.1

func (e *RepositoryCreatedEventV0_1_1) SetSource(source string)

func (*RepositoryCreatedEventV0_1_1) SetSubjectId added in v0.4.1

func (e *RepositoryCreatedEventV0_1_1) SetSubjectId(subjectId string)

func (*RepositoryCreatedEventV0_1_1) SetSubjectName added in v0.4.1

func (e *RepositoryCreatedEventV0_1_1) SetSubjectName(name string)

func (*RepositoryCreatedEventV0_1_1) SetSubjectOwner added in v0.4.1

func (e *RepositoryCreatedEventV0_1_1) SetSubjectOwner(owner string)

func (*RepositoryCreatedEventV0_1_1) SetSubjectSource added in v0.4.1

func (e *RepositoryCreatedEventV0_1_1) SetSubjectSource(subjectSource string)

func (*RepositoryCreatedEventV0_1_1) SetSubjectUrl added in v0.4.1

func (e *RepositoryCreatedEventV0_1_1) SetSubjectUrl(url string)

func (*RepositoryCreatedEventV0_1_1) SetSubjectViewUrl added in v0.4.1

func (e *RepositoryCreatedEventV0_1_1) SetSubjectViewUrl(viewUrl string)

func (*RepositoryCreatedEventV0_1_1) SetTimestamp added in v0.4.1

func (e *RepositoryCreatedEventV0_1_1) SetTimestamp(timestamp time.Time)

type RepositoryCreatedEventV0_2_0 added in v0.4.1

type RepositoryCreatedEventV0_2_0 struct {
	Context ContextV04                     `json:"context"`
	Subject RepositoryCreatedSubjectV0_2_0 `json:"subject"`
	CDEventCustomData
}

func NewRepositoryCreatedEventV0_2_0 added in v0.4.1

func NewRepositoryCreatedEventV0_2_0(specVersion string) (*RepositoryCreatedEventV0_2_0, error)

New creates a new RepositoryCreatedEventV0_2_0

func (RepositoryCreatedEventV0_2_0) GetChainId added in v0.4.1

func (e RepositoryCreatedEventV0_2_0) GetChainId() string

func (RepositoryCreatedEventV0_2_0) GetCustomData added in v0.4.1

func (e RepositoryCreatedEventV0_2_0) GetCustomData() (interface{}, error)

func (RepositoryCreatedEventV0_2_0) GetCustomDataAs added in v0.4.1

func (e RepositoryCreatedEventV0_2_0) GetCustomDataAs(receiver interface{}) error

func (RepositoryCreatedEventV0_2_0) GetCustomDataContentType added in v0.4.1

func (e RepositoryCreatedEventV0_2_0) GetCustomDataContentType() string

func (RepositoryCreatedEventV0_2_0) GetCustomDataRaw added in v0.4.1

func (e RepositoryCreatedEventV0_2_0) GetCustomDataRaw() ([]byte, error)

func (RepositoryCreatedEventV0_2_0) GetCustomSchema added in v0.4.1

func (e RepositoryCreatedEventV0_2_0) GetCustomSchema() (*jsonschema.Schema, error)

GetCustomSchema looks up the SchemaUri, if any is defined. If none is defined, it returns nil. If it's defined and cannot be found, it returns an error.

func (RepositoryCreatedEventV0_2_0) GetId added in v0.4.1

func (RepositoryCreatedEventV0_2_0) GetSchema added in v0.4.1

func (RepositoryCreatedEventV0_2_0) GetSchemaUri added in v0.4.1

func (e RepositoryCreatedEventV0_2_0) GetSchemaUri() string

func (RepositoryCreatedEventV0_2_0) GetSource added in v0.4.1

func (e RepositoryCreatedEventV0_2_0) GetSource() string

func (RepositoryCreatedEventV0_2_0) GetSubject added in v0.4.1

func (e RepositoryCreatedEventV0_2_0) GetSubject() Subject

func (RepositoryCreatedEventV0_2_0) GetSubjectContent added in v0.4.1

func (e RepositoryCreatedEventV0_2_0) GetSubjectContent() interface{}

func (RepositoryCreatedEventV0_2_0) GetSubjectId added in v0.4.1

func (e RepositoryCreatedEventV0_2_0) GetSubjectId() string

func (RepositoryCreatedEventV0_2_0) GetSubjectSource added in v0.4.1

func (e RepositoryCreatedEventV0_2_0) GetSubjectSource() string

func (RepositoryCreatedEventV0_2_0) GetTimestamp added in v0.4.1

func (e RepositoryCreatedEventV0_2_0) GetTimestamp() time.Time

func (RepositoryCreatedEventV0_2_0) GetType added in v0.4.1

func (RepositoryCreatedEventV0_2_0) GetVersion added in v0.4.1

func (e RepositoryCreatedEventV0_2_0) GetVersion() string

func (*RepositoryCreatedEventV0_2_0) SetChainId added in v0.4.1

func (e *RepositoryCreatedEventV0_2_0) SetChainId(chainId string)

func (*RepositoryCreatedEventV0_2_0) SetCustomData added in v0.4.1

func (e *RepositoryCreatedEventV0_2_0) SetCustomData(contentType string, data interface{}) error

func (*RepositoryCreatedEventV0_2_0) SetId added in v0.4.1

func (e *RepositoryCreatedEventV0_2_0) SetId(id string)

func (*RepositoryCreatedEventV0_2_0) SetSchemaUri added in v0.4.1

func (e *RepositoryCreatedEventV0_2_0) SetSchemaUri(schema string)

func (*RepositoryCreatedEventV0_2_0) SetSource added in v0.4.1

func (e *RepositoryCreatedEventV0_2_0) SetSource(source string)

func (*RepositoryCreatedEventV0_2_0) SetSubjectId added in v0.4.1

func (e *RepositoryCreatedEventV0_2_0) SetSubjectId(subjectId string)

func (*RepositoryCreatedEventV0_2_0) SetSubjectName added in v0.4.1

func (e *RepositoryCreatedEventV0_2_0) SetSubjectName(name string)

func (*RepositoryCreatedEventV0_2_0) SetSubjectOwner added in v0.4.1

func (e *RepositoryCreatedEventV0_2_0) SetSubjectOwner(owner string)

func (*RepositoryCreatedEventV0_2_0) SetSubjectSource added in v0.4.1

func (e *RepositoryCreatedEventV0_2_0) SetSubjectSource(subjectSource string)

func (*RepositoryCreatedEventV0_2_0) SetSubjectUrl added in v0.4.1

func (e *RepositoryCreatedEventV0_2_0) SetSubjectUrl(url string)

func (*RepositoryCreatedEventV0_2_0) SetSubjectViewUrl added in v0.4.1

func (e *RepositoryCreatedEventV0_2_0) SetSubjectViewUrl(viewUrl string)

func (*RepositoryCreatedEventV0_2_0) SetTimestamp added in v0.4.1

func (e *RepositoryCreatedEventV0_2_0) SetTimestamp(timestamp time.Time)

type RepositoryCreatedSubjectContentV0_1_1 added in v0.4.1

type RepositoryCreatedSubjectContentV0_1_1 struct {
	Name string `json:"name"`

	Owner string `json:"owner,omitempty"`

	Url string `json:"url"`

	ViewUrl string `json:"viewUrl,omitempty"`
}

type RepositoryCreatedSubjectContentV0_2_0 added in v0.4.1

type RepositoryCreatedSubjectContentV0_2_0 struct {
	Name string `json:"name"`

	Owner string `json:"owner,omitempty"`

	Url string `json:"url"`

	ViewUrl string `json:"viewUrl,omitempty"`
}

type RepositoryCreatedSubjectV0_1_1 added in v0.4.1

type RepositoryCreatedSubjectV0_1_1 struct {
	SubjectBase
	Content RepositoryCreatedSubjectContentV0_1_1 `json:"content"`
}

func (RepositoryCreatedSubjectV0_1_1) GetSubjectType added in v0.4.1

func (sc RepositoryCreatedSubjectV0_1_1) GetSubjectType() SubjectType

type RepositoryCreatedSubjectV0_2_0 added in v0.4.1

type RepositoryCreatedSubjectV0_2_0 struct {
	SubjectBase
	Content RepositoryCreatedSubjectContentV0_2_0 `json:"content"`
}

func (RepositoryCreatedSubjectV0_2_0) GetSubjectType added in v0.4.1

func (sc RepositoryCreatedSubjectV0_2_0) GetSubjectType() SubjectType

type RepositoryDeletedEventV0_1_1 added in v0.4.1

type RepositoryDeletedEventV0_1_1 struct {
	Context Context                        `json:"context"`
	Subject RepositoryDeletedSubjectV0_1_1 `json:"subject"`
	CDEventCustomData
}

func NewRepositoryDeletedEventV0_1_1 added in v0.4.1

func NewRepositoryDeletedEventV0_1_1(specVersion string) (*RepositoryDeletedEventV0_1_1, error)

New creates a new RepositoryDeletedEventV0_1_1

func (RepositoryDeletedEventV0_1_1) GetCustomData added in v0.4.1

func (e RepositoryDeletedEventV0_1_1) GetCustomData() (interface{}, error)

func (RepositoryDeletedEventV0_1_1) GetCustomDataAs added in v0.4.1

func (e RepositoryDeletedEventV0_1_1) GetCustomDataAs(receiver interface{}) error

func (RepositoryDeletedEventV0_1_1) GetCustomDataContentType added in v0.4.1

func (e RepositoryDeletedEventV0_1_1) GetCustomDataContentType() string

func (RepositoryDeletedEventV0_1_1) GetCustomDataRaw added in v0.4.1

func (e RepositoryDeletedEventV0_1_1) GetCustomDataRaw() ([]byte, error)

func (RepositoryDeletedEventV0_1_1) GetId added in v0.4.1

func (RepositoryDeletedEventV0_1_1) GetSchema added in v0.4.1

func (RepositoryDeletedEventV0_1_1) GetSource added in v0.4.1

func (e RepositoryDeletedEventV0_1_1) GetSource() string

func (RepositoryDeletedEventV0_1_1) GetSubject added in v0.4.1

func (e RepositoryDeletedEventV0_1_1) GetSubject() Subject

func (RepositoryDeletedEventV0_1_1) GetSubjectContent added in v0.4.1

func (e RepositoryDeletedEventV0_1_1) GetSubjectContent() interface{}

func (RepositoryDeletedEventV0_1_1) GetSubjectId added in v0.4.1

func (e RepositoryDeletedEventV0_1_1) GetSubjectId() string

func (RepositoryDeletedEventV0_1_1) GetSubjectSource added in v0.4.1

func (e RepositoryDeletedEventV0_1_1) GetSubjectSource() string

func (RepositoryDeletedEventV0_1_1) GetTimestamp added in v0.4.1

func (e RepositoryDeletedEventV0_1_1) GetTimestamp() time.Time

func (RepositoryDeletedEventV0_1_1) GetType added in v0.4.1

func (RepositoryDeletedEventV0_1_1) GetVersion added in v0.4.1

func (e RepositoryDeletedEventV0_1_1) GetVersion() string

func (*RepositoryDeletedEventV0_1_1) SetCustomData added in v0.4.1

func (e *RepositoryDeletedEventV0_1_1) SetCustomData(contentType string, data interface{}) error

func (*RepositoryDeletedEventV0_1_1) SetId added in v0.4.1

func (e *RepositoryDeletedEventV0_1_1) SetId(id string)

func (*RepositoryDeletedEventV0_1_1) SetSource added in v0.4.1

func (e *RepositoryDeletedEventV0_1_1) SetSource(source string)

func (*RepositoryDeletedEventV0_1_1) SetSubjectId added in v0.4.1

func (e *RepositoryDeletedEventV0_1_1) SetSubjectId(subjectId string)

func (*RepositoryDeletedEventV0_1_1) SetSubjectName added in v0.4.1

func (e *RepositoryDeletedEventV0_1_1) SetSubjectName(name string)

func (*RepositoryDeletedEventV0_1_1) SetSubjectOwner added in v0.4.1

func (e *RepositoryDeletedEventV0_1_1) SetSubjectOwner(owner string)

func (*RepositoryDeletedEventV0_1_1) SetSubjectSource added in v0.4.1

func (e *RepositoryDeletedEventV0_1_1) SetSubjectSource(subjectSource string)

func (*RepositoryDeletedEventV0_1_1) SetSubjectUrl added in v0.4.1

func (e *RepositoryDeletedEventV0_1_1) SetSubjectUrl(url string)

func (*RepositoryDeletedEventV0_1_1) SetSubjectViewUrl added in v0.4.1

func (e *RepositoryDeletedEventV0_1_1) SetSubjectViewUrl(viewUrl string)

func (*RepositoryDeletedEventV0_1_1) SetTimestamp added in v0.4.1

func (e *RepositoryDeletedEventV0_1_1) SetTimestamp(timestamp time.Time)

type RepositoryDeletedEventV0_2_0 added in v0.4.1

type RepositoryDeletedEventV0_2_0 struct {
	Context ContextV04                     `json:"context"`
	Subject RepositoryDeletedSubjectV0_2_0 `json:"subject"`
	CDEventCustomData
}

func NewRepositoryDeletedEventV0_2_0 added in v0.4.1

func NewRepositoryDeletedEventV0_2_0(specVersion string) (*RepositoryDeletedEventV0_2_0, error)

New creates a new RepositoryDeletedEventV0_2_0

func (RepositoryDeletedEventV0_2_0) GetChainId added in v0.4.1

func (e RepositoryDeletedEventV0_2_0) GetChainId() string

func (RepositoryDeletedEventV0_2_0) GetCustomData added in v0.4.1

func (e RepositoryDeletedEventV0_2_0) GetCustomData() (interface{}, error)

func (RepositoryDeletedEventV0_2_0) GetCustomDataAs added in v0.4.1

func (e RepositoryDeletedEventV0_2_0) GetCustomDataAs(receiver interface{}) error

func (RepositoryDeletedEventV0_2_0) GetCustomDataContentType added in v0.4.1

func (e RepositoryDeletedEventV0_2_0) GetCustomDataContentType() string

func (RepositoryDeletedEventV0_2_0) GetCustomDataRaw added in v0.4.1

func (e RepositoryDeletedEventV0_2_0) GetCustomDataRaw() ([]byte, error)

func (RepositoryDeletedEventV0_2_0) GetCustomSchema added in v0.4.1

func (e RepositoryDeletedEventV0_2_0) GetCustomSchema() (*jsonschema.Schema, error)

GetCustomSchema looks up the SchemaUri, if any is defined. If none is defined, it returns nil. If it's defined and cannot be found, it returns an error.

func (RepositoryDeletedEventV0_2_0) GetId added in v0.4.1

func (RepositoryDeletedEventV0_2_0) GetSchema added in v0.4.1

func (RepositoryDeletedEventV0_2_0) GetSchemaUri added in v0.4.1

func (e RepositoryDeletedEventV0_2_0) GetSchemaUri() string

func (RepositoryDeletedEventV0_2_0) GetSource added in v0.4.1

func (e RepositoryDeletedEventV0_2_0) GetSource() string

func (RepositoryDeletedEventV0_2_0) GetSubject added in v0.4.1

func (e RepositoryDeletedEventV0_2_0) GetSubject() Subject

func (RepositoryDeletedEventV0_2_0) GetSubjectContent added in v0.4.1

func (e RepositoryDeletedEventV0_2_0) GetSubjectContent() interface{}

func (RepositoryDeletedEventV0_2_0) GetSubjectId added in v0.4.1

func (e RepositoryDeletedEventV0_2_0) GetSubjectId() string

func (RepositoryDeletedEventV0_2_0) GetSubjectSource added in v0.4.1

func (e RepositoryDeletedEventV0_2_0) GetSubjectSource() string

func (RepositoryDeletedEventV0_2_0) GetTimestamp added in v0.4.1

func (e RepositoryDeletedEventV0_2_0) GetTimestamp() time.Time

func (RepositoryDeletedEventV0_2_0) GetType added in v0.4.1

func (RepositoryDeletedEventV0_2_0) GetVersion added in v0.4.1

func (e RepositoryDeletedEventV0_2_0) GetVersion() string

func (*RepositoryDeletedEventV0_2_0) SetChainId added in v0.4.1

func (e *RepositoryDeletedEventV0_2_0) SetChainId(chainId string)

func (*RepositoryDeletedEventV0_2_0) SetCustomData added in v0.4.1

func (e *RepositoryDeletedEventV0_2_0) SetCustomData(contentType string, data interface{}) error

func (*RepositoryDeletedEventV0_2_0) SetId added in v0.4.1

func (e *RepositoryDeletedEventV0_2_0) SetId(id string)

func (*RepositoryDeletedEventV0_2_0) SetSchemaUri added in v0.4.1

func (e *RepositoryDeletedEventV0_2_0) SetSchemaUri(schema string)

func (*RepositoryDeletedEventV0_2_0) SetSource added in v0.4.1

func (e *RepositoryDeletedEventV0_2_0) SetSource(source string)

func (*RepositoryDeletedEventV0_2_0) SetSubjectId added in v0.4.1

func (e *RepositoryDeletedEventV0_2_0) SetSubjectId(subjectId string)

func (*RepositoryDeletedEventV0_2_0) SetSubjectName added in v0.4.1

func (e *RepositoryDeletedEventV0_2_0) SetSubjectName(name string)

func (*RepositoryDeletedEventV0_2_0) SetSubjectOwner added in v0.4.1

func (e *RepositoryDeletedEventV0_2_0) SetSubjectOwner(owner string)

func (*RepositoryDeletedEventV0_2_0) SetSubjectSource added in v0.4.1

func (e *RepositoryDeletedEventV0_2_0) SetSubjectSource(subjectSource string)

func (*RepositoryDeletedEventV0_2_0) SetSubjectUrl added in v0.4.1

func (e *RepositoryDeletedEventV0_2_0) SetSubjectUrl(url string)

func (*RepositoryDeletedEventV0_2_0) SetSubjectViewUrl added in v0.4.1

func (e *RepositoryDeletedEventV0_2_0) SetSubjectViewUrl(viewUrl string)

func (*RepositoryDeletedEventV0_2_0) SetTimestamp added in v0.4.1

func (e *RepositoryDeletedEventV0_2_0) SetTimestamp(timestamp time.Time)

type RepositoryDeletedSubjectContentV0_1_1 added in v0.4.1

type RepositoryDeletedSubjectContentV0_1_1 struct {
	Name string `json:"name,omitempty"`

	Owner string `json:"owner,omitempty"`

	Url string `json:"url,omitempty"`

	ViewUrl string `json:"viewUrl,omitempty"`
}

type RepositoryDeletedSubjectContentV0_2_0 added in v0.4.1

type RepositoryDeletedSubjectContentV0_2_0 struct {
	Name string `json:"name,omitempty"`

	Owner string `json:"owner,omitempty"`

	Url string `json:"url,omitempty"`

	ViewUrl string `json:"viewUrl,omitempty"`
}

type RepositoryDeletedSubjectV0_1_1 added in v0.4.1

type RepositoryDeletedSubjectV0_1_1 struct {
	SubjectBase
	Content RepositoryDeletedSubjectContentV0_1_1 `json:"content"`
}

func (RepositoryDeletedSubjectV0_1_1) GetSubjectType added in v0.4.1

func (sc RepositoryDeletedSubjectV0_1_1) GetSubjectType() SubjectType

type RepositoryDeletedSubjectV0_2_0 added in v0.4.1

type RepositoryDeletedSubjectV0_2_0 struct {
	SubjectBase
	Content RepositoryDeletedSubjectContentV0_2_0 `json:"content"`
}

func (RepositoryDeletedSubjectV0_2_0) GetSubjectType added in v0.4.1

func (sc RepositoryDeletedSubjectV0_2_0) GetSubjectType() SubjectType

type RepositoryModifiedEventV0_1_1 added in v0.4.1

type RepositoryModifiedEventV0_1_1 struct {
	Context Context                         `json:"context"`
	Subject RepositoryModifiedSubjectV0_1_1 `json:"subject"`
	CDEventCustomData
}

func NewRepositoryModifiedEventV0_1_1 added in v0.4.1

func NewRepositoryModifiedEventV0_1_1(specVersion string) (*RepositoryModifiedEventV0_1_1, error)

New creates a new RepositoryModifiedEventV0_1_1

func (RepositoryModifiedEventV0_1_1) GetCustomData added in v0.4.1

func (e RepositoryModifiedEventV0_1_1) GetCustomData() (interface{}, error)

func (RepositoryModifiedEventV0_1_1) GetCustomDataAs added in v0.4.1

func (e RepositoryModifiedEventV0_1_1) GetCustomDataAs(receiver interface{}) error

func (RepositoryModifiedEventV0_1_1) GetCustomDataContentType added in v0.4.1

func (e RepositoryModifiedEventV0_1_1) GetCustomDataContentType() string

func (RepositoryModifiedEventV0_1_1) GetCustomDataRaw added in v0.4.1

func (e RepositoryModifiedEventV0_1_1) GetCustomDataRaw() ([]byte, error)

func (RepositoryModifiedEventV0_1_1) GetId added in v0.4.1

func (RepositoryModifiedEventV0_1_1) GetSchema added in v0.4.1

func (RepositoryModifiedEventV0_1_1) GetSource added in v0.4.1

func (e RepositoryModifiedEventV0_1_1) GetSource() string

func (RepositoryModifiedEventV0_1_1) GetSubject added in v0.4.1

func (e RepositoryModifiedEventV0_1_1) GetSubject() Subject

func (RepositoryModifiedEventV0_1_1) GetSubjectContent added in v0.4.1

func (e RepositoryModifiedEventV0_1_1) GetSubjectContent() interface{}

func (RepositoryModifiedEventV0_1_1) GetSubjectId added in v0.4.1

func (e RepositoryModifiedEventV0_1_1) GetSubjectId() string

func (RepositoryModifiedEventV0_1_1) GetSubjectSource added in v0.4.1

func (e RepositoryModifiedEventV0_1_1) GetSubjectSource() string

func (RepositoryModifiedEventV0_1_1) GetTimestamp added in v0.4.1

func (e RepositoryModifiedEventV0_1_1) GetTimestamp() time.Time

func (RepositoryModifiedEventV0_1_1) GetType added in v0.4.1

func (RepositoryModifiedEventV0_1_1) GetVersion added in v0.4.1

func (e RepositoryModifiedEventV0_1_1) GetVersion() string

func (*RepositoryModifiedEventV0_1_1) SetCustomData added in v0.4.1

func (e *RepositoryModifiedEventV0_1_1) SetCustomData(contentType string, data interface{}) error

func (*RepositoryModifiedEventV0_1_1) SetId added in v0.4.1

func (*RepositoryModifiedEventV0_1_1) SetSource added in v0.4.1

func (e *RepositoryModifiedEventV0_1_1) SetSource(source string)

func (*RepositoryModifiedEventV0_1_1) SetSubjectId added in v0.4.1

func (e *RepositoryModifiedEventV0_1_1) SetSubjectId(subjectId string)

func (*RepositoryModifiedEventV0_1_1) SetSubjectName added in v0.4.1

func (e *RepositoryModifiedEventV0_1_1) SetSubjectName(name string)

func (*RepositoryModifiedEventV0_1_1) SetSubjectOwner added in v0.4.1

func (e *RepositoryModifiedEventV0_1_1) SetSubjectOwner(owner string)

func (*RepositoryModifiedEventV0_1_1) SetSubjectSource added in v0.4.1

func (e *RepositoryModifiedEventV0_1_1) SetSubjectSource(subjectSource string)

func (*RepositoryModifiedEventV0_1_1) SetSubjectUrl added in v0.4.1

func (e *RepositoryModifiedEventV0_1_1) SetSubjectUrl(url string)

func (*RepositoryModifiedEventV0_1_1) SetSubjectViewUrl added in v0.4.1

func (e *RepositoryModifiedEventV0_1_1) SetSubjectViewUrl(viewUrl string)

func (*RepositoryModifiedEventV0_1_1) SetTimestamp added in v0.4.1

func (e *RepositoryModifiedEventV0_1_1) SetTimestamp(timestamp time.Time)

type RepositoryModifiedEventV0_2_0 added in v0.4.1

type RepositoryModifiedEventV0_2_0 struct {
	Context ContextV04                      `json:"context"`
	Subject RepositoryModifiedSubjectV0_2_0 `json:"subject"`
	CDEventCustomData
}

func NewRepositoryModifiedEventV0_2_0 added in v0.4.1

func NewRepositoryModifiedEventV0_2_0(specVersion string) (*RepositoryModifiedEventV0_2_0, error)

New creates a new RepositoryModifiedEventV0_2_0

func (RepositoryModifiedEventV0_2_0) GetChainId added in v0.4.1

func (e RepositoryModifiedEventV0_2_0) GetChainId() string

func (RepositoryModifiedEventV0_2_0) GetCustomData added in v0.4.1

func (e RepositoryModifiedEventV0_2_0) GetCustomData() (interface{}, error)

func (RepositoryModifiedEventV0_2_0) GetCustomDataAs added in v0.4.1

func (e RepositoryModifiedEventV0_2_0) GetCustomDataAs(receiver interface{}) error

func (RepositoryModifiedEventV0_2_0) GetCustomDataContentType added in v0.4.1

func (e RepositoryModifiedEventV0_2_0) GetCustomDataContentType() string

func (RepositoryModifiedEventV0_2_0) GetCustomDataRaw added in v0.4.1

func (e RepositoryModifiedEventV0_2_0) GetCustomDataRaw() ([]byte, error)

func (RepositoryModifiedEventV0_2_0) GetCustomSchema added in v0.4.1

func (e RepositoryModifiedEventV0_2_0) GetCustomSchema() (*jsonschema.Schema, error)

GetCustomSchema looks up the SchemaUri, if any is defined. If none is defined, it returns nil. If it's defined and cannot be found, it returns an error.

func (RepositoryModifiedEventV0_2_0) GetId added in v0.4.1

func (RepositoryModifiedEventV0_2_0) GetSchema added in v0.4.1

func (RepositoryModifiedEventV0_2_0) GetSchemaUri added in v0.4.1

func (e RepositoryModifiedEventV0_2_0) GetSchemaUri() string

func (RepositoryModifiedEventV0_2_0) GetSource added in v0.4.1

func (e RepositoryModifiedEventV0_2_0) GetSource() string

func (RepositoryModifiedEventV0_2_0) GetSubject added in v0.4.1

func (e RepositoryModifiedEventV0_2_0) GetSubject() Subject

func (RepositoryModifiedEventV0_2_0) GetSubjectContent added in v0.4.1

func (e RepositoryModifiedEventV0_2_0) GetSubjectContent() interface{}

func (RepositoryModifiedEventV0_2_0) GetSubjectId added in v0.4.1

func (e RepositoryModifiedEventV0_2_0) GetSubjectId() string

func (RepositoryModifiedEventV0_2_0) GetSubjectSource added in v0.4.1

func (e RepositoryModifiedEventV0_2_0) GetSubjectSource() string

func (RepositoryModifiedEventV0_2_0) GetTimestamp added in v0.4.1

func (e RepositoryModifiedEventV0_2_0) GetTimestamp() time.Time

func (RepositoryModifiedEventV0_2_0) GetType added in v0.4.1

func (RepositoryModifiedEventV0_2_0) GetVersion added in v0.4.1

func (e RepositoryModifiedEventV0_2_0) GetVersion() string

func (*RepositoryModifiedEventV0_2_0) SetChainId added in v0.4.1

func (e *RepositoryModifiedEventV0_2_0) SetChainId(chainId string)

func (*RepositoryModifiedEventV0_2_0) SetCustomData added in v0.4.1

func (e *RepositoryModifiedEventV0_2_0) SetCustomData(contentType string, data interface{}) error

func (*RepositoryModifiedEventV0_2_0) SetId added in v0.4.1

func (*RepositoryModifiedEventV0_2_0) SetSchemaUri added in v0.4.1

func (e *RepositoryModifiedEventV0_2_0) SetSchemaUri(schema string)

func (*RepositoryModifiedEventV0_2_0) SetSource added in v0.4.1

func (e *RepositoryModifiedEventV0_2_0) SetSource(source string)

func (*RepositoryModifiedEventV0_2_0) SetSubjectId added in v0.4.1

func (e *RepositoryModifiedEventV0_2_0) SetSubjectId(subjectId string)

func (*RepositoryModifiedEventV0_2_0) SetSubjectName added in v0.4.1

func (e *RepositoryModifiedEventV0_2_0) SetSubjectName(name string)

func (*RepositoryModifiedEventV0_2_0) SetSubjectOwner added in v0.4.1

func (e *RepositoryModifiedEventV0_2_0) SetSubjectOwner(owner string)

func (*RepositoryModifiedEventV0_2_0) SetSubjectSource added in v0.4.1

func (e *RepositoryModifiedEventV0_2_0) SetSubjectSource(subjectSource string)

func (*RepositoryModifiedEventV0_2_0) SetSubjectUrl added in v0.4.1

func (e *RepositoryModifiedEventV0_2_0) SetSubjectUrl(url string)

func (*RepositoryModifiedEventV0_2_0) SetSubjectViewUrl added in v0.4.1

func (e *RepositoryModifiedEventV0_2_0) SetSubjectViewUrl(viewUrl string)

func (*RepositoryModifiedEventV0_2_0) SetTimestamp added in v0.4.1

func (e *RepositoryModifiedEventV0_2_0) SetTimestamp(timestamp time.Time)

type RepositoryModifiedSubjectContentV0_1_1 added in v0.4.1

type RepositoryModifiedSubjectContentV0_1_1 struct {
	Name string `json:"name,omitempty"`

	Owner string `json:"owner,omitempty"`

	Url string `json:"url,omitempty"`

	ViewUrl string `json:"viewUrl,omitempty"`
}

type RepositoryModifiedSubjectContentV0_2_0 added in v0.4.1

type RepositoryModifiedSubjectContentV0_2_0 struct {
	Name string `json:"name,omitempty"`

	Owner string `json:"owner,omitempty"`

	Url string `json:"url,omitempty"`

	ViewUrl string `json:"viewUrl,omitempty"`
}

type RepositoryModifiedSubjectV0_1_1 added in v0.4.1

type RepositoryModifiedSubjectV0_1_1 struct {
	SubjectBase
	Content RepositoryModifiedSubjectContentV0_1_1 `json:"content"`
}

func (RepositoryModifiedSubjectV0_1_1) GetSubjectType added in v0.4.1

func (sc RepositoryModifiedSubjectV0_1_1) GetSubjectType() SubjectType

type RepositoryModifiedSubjectV0_2_0 added in v0.4.1

type RepositoryModifiedSubjectV0_2_0 struct {
	SubjectBase
	Content RepositoryModifiedSubjectContentV0_2_0 `json:"content"`
}

func (RepositoryModifiedSubjectV0_2_0) GetSubjectType added in v0.4.1

func (sc RepositoryModifiedSubjectV0_2_0) GetSubjectType() SubjectType

type SchemaDB added in v0.4.1

type SchemaDB map[string]*jsonschema.Schema
var (

	// All compiled schemas by Id
	CompiledSchemas SchemaDB
	// All compiled custom schemas by Id
	CompiledCustomSchemas SchemaDB

	// All schemas as string by Id
	SchemasById = map[string]string{
		"https://cdevents.dev/0.3.0/schema/artifact-packaged-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.3.0/schema/artifact-packaged-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.artifact.packaged.0.1.1"
          ],
          "default": "dev.cdevents.artifact.packaged.0.1.1"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "artifact"
          ],
          "default": "artifact"
        },
        "content": {
          "properties": {
            "change": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            }
          },
          "additionalProperties": false,
          "type": "object",
          "required": [
            "change"
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}`,
		"https://cdevents.dev/0.3.0/schema/artifact-published-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.3.0/schema/artifact-published-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.artifact.published.0.1.1"
          ],
          "default": "dev.cdevents.artifact.published.0.1.1"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "artifact"
          ],
          "default": "artifact"
        },
        "content": {
          "properties": {},
          "additionalProperties": false,
          "type": "object"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}`,
		"https://cdevents.dev/0.3.0/schema/artifact-signed-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.3.0/schema/artifact-signed-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.artifact.signed.0.1.0"
          ],
          "default": "dev.cdevents.artifact.signed.0.1.0"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "artifact"
          ],
          "default": "artifact"
        },
        "content": {
          "properties": {
            "signature": {
              "type": "string",
              "minLength": 1
            }
          },
          "additionalProperties": false,
          "type": "object",
          "required": [
            "signature"
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}`,
		"https://cdevents.dev/0.3.0/schema/branch-created-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.3.0/schema/branch-created-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.branch.created.0.1.2"
          ],
          "default": "dev.cdevents.branch.created.0.1.2"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "branch"
          ],
          "default": "branch"
        },
        "content": {
          "properties": {
            "repository": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            }
          },
          "additionalProperties": false,
          "type": "object"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}`,
		"https://cdevents.dev/0.3.0/schema/branch-deleted-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.3.0/schema/branch-deleted-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.branch.deleted.0.1.2"
          ],
          "default": "dev.cdevents.branch.deleted.0.1.2"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "branch"
          ],
          "default": "branch"
        },
        "content": {
          "properties": {
            "repository": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            }
          },
          "additionalProperties": false,
          "type": "object"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}`,
		"https://cdevents.dev/0.3.0/schema/build-finished-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.3.0/schema/build-finished-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.build.finished.0.1.1"
          ],
          "default": "dev.cdevents.build.finished.0.1.1"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "build"
          ],
          "default": "build"
        },
        "content": {
          "properties": {
            "artifactId": {
              "type": "string"
            }
          },
          "additionalProperties": false,
          "type": "object"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}`,
		"https://cdevents.dev/0.3.0/schema/build-queued-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.3.0/schema/build-queued-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.build.queued.0.1.1"
          ],
          "default": "dev.cdevents.build.queued.0.1.1"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "build"
          ],
          "default": "build"
        },
        "content": {
          "properties": {},
          "additionalProperties": false,
          "type": "object"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}`,
		"https://cdevents.dev/0.3.0/schema/build-started-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.3.0/schema/build-started-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.build.started.0.1.1"
          ],
          "default": "dev.cdevents.build.started.0.1.1"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "build"
          ],
          "default": "build"
        },
        "content": {
          "properties": {},
          "additionalProperties": false,
          "type": "object"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}`,
		"https://cdevents.dev/0.3.0/schema/change-abandoned-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.3.0/schema/change-abandoned-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.change.abandoned.0.1.2"
          ],
          "default": "dev.cdevents.change.abandoned.0.1.2"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "change"
          ],
          "default": "change"
        },
        "content": {
          "properties": {
            "repository": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            }
          },
          "additionalProperties": false,
          "type": "object"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}`,
		"https://cdevents.dev/0.3.0/schema/change-created-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.3.0/schema/change-created-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.change.created.0.1.2"
          ],
          "default": "dev.cdevents.change.created.0.1.2"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "change"
          ],
          "default": "change"
        },
        "content": {
          "properties": {
            "repository": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            }
          },
          "additionalProperties": false,
          "type": "object"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}`,
		"https://cdevents.dev/0.3.0/schema/change-merged-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.3.0/schema/change-merged-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.change.merged.0.1.2"
          ],
          "default": "dev.cdevents.change.merged.0.1.2"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "change"
          ],
          "default": "change"
        },
        "content": {
          "properties": {
            "repository": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            }
          },
          "additionalProperties": false,
          "type": "object"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}`,
		"https://cdevents.dev/0.3.0/schema/change-reviewed-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.3.0/schema/change-reviewed-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.change.reviewed.0.1.2"
          ],
          "default": "dev.cdevents.change.reviewed.0.1.2"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "change"
          ],
          "default": "change"
        },
        "content": {
          "properties": {
            "repository": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            }
          },
          "additionalProperties": false,
          "type": "object"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}`,
		"https://cdevents.dev/0.3.0/schema/change-updated-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.3.0/schema/change-updated-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.change.updated.0.1.2"
          ],
          "default": "dev.cdevents.change.updated.0.1.2"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "change"
          ],
          "default": "change"
        },
        "content": {
          "properties": {
            "repository": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            }
          },
          "additionalProperties": false,
          "type": "object"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}`,
		"https://cdevents.dev/0.3.0/schema/environment-created-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.3.0/schema/environment-created-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.environment.created.0.1.1"
          ],
          "default": "dev.cdevents.environment.created.0.1.1"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "environment"
          ],
          "default": "environment"
        },
        "content": {
          "properties": {
            "name": {
              "type": "string"
            },
            "url": {
              "type": "string"
            }
          },
          "additionalProperties": false,
          "type": "object"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}`,
		"https://cdevents.dev/0.3.0/schema/environment-deleted-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.3.0/schema/environment-deleted-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.environment.deleted.0.1.1"
          ],
          "default": "dev.cdevents.environment.deleted.0.1.1"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "environment"
          ],
          "default": "environment"
        },
        "content": {
          "properties": {
            "name": {
              "type": "string"
            }
          },
          "additionalProperties": false,
          "type": "object"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}`,
		"https://cdevents.dev/0.3.0/schema/environment-modified-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.3.0/schema/environment-modified-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.environment.modified.0.1.1"
          ],
          "default": "dev.cdevents.environment.modified.0.1.1"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "environment"
          ],
          "default": "environment"
        },
        "content": {
          "properties": {
            "name": {
              "type": "string"
            },
            "url": {
              "type": "string"
            }
          },
          "additionalProperties": false,
          "type": "object"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}`,
		"https://cdevents.dev/0.3.0/schema/incident-detected-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.3.0/schema/incident-detected-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.incident.detected.0.1.0"
          ],
          "default": "dev.cdevents.incident.detected.0.1.0"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "incident"
          ],
          "default": "incident"
        },
        "content": {
          "properties": {
            "description": {
              "type": "string"
            },
            "environment": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            },
            "service": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            },
            "artifactId": {
              "type": "string",
              "minLength": 1
            }
          },
          "additionalProperties": false,
          "type": "object",
          "required": [
            "environment"
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}`,
		"https://cdevents.dev/0.3.0/schema/incident-reported-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.3.0/schema/incident-reported-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.incident.reported.0.1.0"
          ],
          "default": "dev.cdevents.incident.reported.0.1.0"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "incident"
          ],
          "default": "incident"
        },
        "content": {
          "properties": {
            "description": {
              "type": "string"
            },
            "environment": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            },
            "ticketURI": {
              "type": "string",
              "format": "uri",
              "minLength": 1
            },
            "service": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            },
            "artifactId": {
              "type": "string",
              "minLength": 1
            }
          },
          "additionalProperties": false,
          "type": "object",
          "required": [
            "environment",
            "ticketURI"
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}`,
		"https://cdevents.dev/0.3.0/schema/incident-resolved-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.3.0/schema/incident-resolved-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.incident.resolved.0.1.0"
          ],
          "default": "dev.cdevents.incident.resolved.0.1.0"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "incident"
          ],
          "default": "incident"
        },
        "content": {
          "properties": {
            "description": {
              "type": "string"
            },
            "environment": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            },
            "service": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            },
            "artifactId": {
              "type": "string",
              "minLength": 1
            }
          },
          "additionalProperties": false,
          "type": "object",
          "required": [
            "environment"
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}`,
		"https://cdevents.dev/0.3.0/schema/pipelinerun-finished-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.3.0/schema/pipeline-run-finished-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.pipelinerun.finished.0.1.1"
          ],
          "default": "dev.cdevents.pipelinerun.finished.0.1.1"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "pipelineRun"
          ],
          "default": "pipelineRun"
        },
        "content": {
          "properties": {
            "pipelineName": {
              "type": "string"
            },
            "url": {
              "type": "string"
            },
            "outcome": {
              "type": "string"
            },
            "errors": {
              "type": "string"
            }
          },
          "additionalProperties": false,
          "type": "object"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}`,
		"https://cdevents.dev/0.3.0/schema/pipelinerun-queued-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.3.0/schema/pipeline-run-queued-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.pipelinerun.queued.0.1.1"
          ],
          "default": "dev.cdevents.pipelinerun.queued.0.1.1"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "pipelineRun"
          ],
          "default": "pipelineRun"
        },
        "content": {
          "properties": {
            "pipelineName": {
              "type": "string"
            },
            "url": {
              "type": "string"
            }
          },
          "additionalProperties": false,
          "type": "object"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}`,
		"https://cdevents.dev/0.3.0/schema/pipelinerun-started-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.3.0/schema/pipeline-run-started-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.pipelinerun.started.0.1.1"
          ],
          "default": "dev.cdevents.pipelinerun.started.0.1.1"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "pipelineRun"
          ],
          "default": "pipelineRun"
        },
        "content": {
          "properties": {
            "pipelineName": {
              "type": "string"
            },
            "url": {
              "type": "string"
            }
          },
          "additionalProperties": false,
          "type": "object",
          "required": [
            "pipelineName",
            "url"
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}`,
		"https://cdevents.dev/0.3.0/schema/repository-created-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.3.0/schema/repository-created-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.repository.created.0.1.1"
          ],
          "default": "dev.cdevents.repository.created.0.1.1"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "repository"
          ],
          "default": "repository"
        },
        "content": {
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1
            },
            "owner": {
              "type": "string"
            },
            "url": {
              "type": "string",
              "minLength": 1
            },
            "viewUrl": {
              "type": "string"
            }
          },
          "additionalProperties": false,
          "type": "object",
          "required": [
            "name",
            "url"
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}`,
		"https://cdevents.dev/0.3.0/schema/repository-deleted-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.3.0/schema/repository-deleted-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.repository.deleted.0.1.1"
          ],
          "default": "dev.cdevents.repository.deleted.0.1.1"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "repository"
          ],
          "default": "repository"
        },
        "content": {
          "properties": {
            "name": {
              "type": "string"
            },
            "owner": {
              "type": "string"
            },
            "url": {
              "type": "string"
            },
            "viewUrl": {
              "type": "string"
            }
          },
          "additionalProperties": false,
          "type": "object"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}`,
		"https://cdevents.dev/0.3.0/schema/repository-modified-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.3.0/schema/repository-modified-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.repository.modified.0.1.1"
          ],
          "default": "dev.cdevents.repository.modified.0.1.1"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "repository"
          ],
          "default": "repository"
        },
        "content": {
          "properties": {
            "name": {
              "type": "string"
            },
            "owner": {
              "type": "string"
            },
            "url": {
              "type": "string"
            },
            "viewUrl": {
              "type": "string"
            }
          },
          "additionalProperties": false,
          "type": "object"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}`,
		"https://cdevents.dev/0.3.0/schema/service-deployed-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.3.0/schema/service-deployed-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.service.deployed.0.1.1"
          ],
          "default": "dev.cdevents.service.deployed.0.1.1"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "service"
          ],
          "default": "service"
        },
        "content": {
          "properties": {
            "environment": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            },
            "artifactId": {
              "type": "string",
              "minLength": 1
            }
          },
          "additionalProperties": false,
          "type": "object",
          "required": [
            "environment",
            "artifactId"
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
      "type": "string",
      "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}`,
		"https://cdevents.dev/0.3.0/schema/service-published-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.3.0/schema/service-published-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.service.published.0.1.1"
          ],
          "default": "dev.cdevents.service.published.0.1.1"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "service"
          ],
          "default": "service"
        },
        "content": {
          "properties": {
            "environment": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            }
          },
          "additionalProperties": false,
          "type": "object"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}`,
		"https://cdevents.dev/0.3.0/schema/service-removed-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.3.0/schema/service-removed-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.service.removed.0.1.1"
          ],
          "default": "dev.cdevents.service.removed.0.1.1"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "service"
          ],
          "default": "service"
        },
        "content": {
          "properties": {
            "environment": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            }
          },
          "additionalProperties": false,
          "type": "object"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}`,
		"https://cdevents.dev/0.3.0/schema/service-rolledback-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.3.0/schema/service-rolledback-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.service.rolledback.0.1.1"
          ],
          "default": "dev.cdevents.service.rolledback.0.1.1"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "service"
          ],
          "default": "service"
        },
        "content": {
          "properties": {
            "environment": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            },
            "artifactId": {
              "type": "string",
              "minLength": 1
            }
          },
          "additionalProperties": false,
          "type": "object",
          "required": [
            "environment",
            "artifactId"
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}`,
		"https://cdevents.dev/0.3.0/schema/service-upgraded-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.3.0/schema/service-upgraded-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.service.upgraded.0.1.1"
          ],
          "default": "dev.cdevents.service.upgraded.0.1.1"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "service"
          ],
          "default": "service"
        },
        "content": {
          "properties": {
            "environment": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            },
            "artifactId": {
              "type": "string",
              "minLength": 1
            }
          },
          "additionalProperties": false,
          "type": "object",
          "required": [
            "environment",
            "artifactId"
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}`,
		"https://cdevents.dev/0.3.0/schema/taskrun-finished-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.3.0/schema/task-run-finished-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.taskrun.finished.0.1.1"
          ],
          "default": "dev.cdevents.taskrun.finished.0.1.1"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "taskRun"
          ],
          "default": "taskRun"
        },
        "content": {
          "properties": {
            "taskName": {
              "type": "string"
            },
            "url": {
              "type": "string"
            },
            "pipelineRun": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            },
            "outcome": {
              "type": "string"
            },
            "errors": {
              "type": "string"
            }
          },
          "additionalProperties": false,
          "type": "object"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}`,
		"https://cdevents.dev/0.3.0/schema/taskrun-started-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.3.0/schema/task-run-started-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.taskrun.started.0.1.1"
          ],
          "default": "dev.cdevents.taskrun.started.0.1.1"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "taskRun"
          ],
          "default": "taskRun"
        },
        "content": {
          "properties": {
            "taskName": {
              "type": "string"
            },
            "url": {
              "type": "string"
            },
            "pipelineRun": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            }
          },
          "additionalProperties": false,
          "type": "object"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}`,
		"https://cdevents.dev/0.3.0/schema/testcaserun-finished-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.3.0/schema/test-case-run-finished-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.testcaserun.finished.0.1.0"
          ],
          "default": "dev.cdevents.testcaserun.finished.0.1.0"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "testCaseRun"
          ],
          "default": "testCaseRun"
        },
        "content": {
          "properties": {
            "outcome": {
              "type": "string",
              "enum": [
                "pass",
                "fail",
                "cancel",
                "error"
              ]
            },
            "severity": {
              "type": "string",
              "enum": [
                "low",
                "medium",
                "high",
                "critical"
              ]
            },
            "reason": {
              "type": "string"
            },
            "environment": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            },
            "testSuiteRun": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string"
                }
              },
              "additionalProperties": false,
              "required": [
                "id"
              ]
            },
            "testCase": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "id"
              ],
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "version": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "performance",
                    "functional",
                    "unit",
                    "security",
                    "compliance",
                    "integration",
                    "e2e",
                    "other"
                  ]
                },
                "uri": {
                  "type": "string",
                  "format": "uri"
                }
              }
            }
          },
          "additionalProperties": false,
          "type": "object",
          "required": [
            "outcome",
            "environment"
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}
`,
		"https://cdevents.dev/0.3.0/schema/testcaserun-queued-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.3.0/schema/test-case-run-queued-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.testcaserun.queued.0.1.0"
          ],
          "default": "dev.cdevents.testcaserun.queued.0.1.0"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "testCaseRun"
          ],
          "default": "testCaseRun"
        },
        "content": {
          "properties": {
            "trigger": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "manual",
                    "pipeline",
                    "event",
                    "schedule",
                    "other"
                  ]
                },
                "uri": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "environment": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            },
            "testSuiteRun": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            },
            "testCase": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "id"
              ],
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "version": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "performance",
                    "functional",
                    "unit",
                    "security",
                    "compliance",
                    "integration",
                    "e2e",
                    "other"
                  ]
                },
                "uri": {
                  "type": "string",
                  "format": "uri"
                }
              }
            }
          },
          "additionalProperties": false,
          "type": "object",
          "required": [
            "environment"
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}
`,
		"https://cdevents.dev/0.3.0/schema/testcaserun-started-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.3.0/schema/test-case-run-started-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.testcaserun.started.0.1.0"
          ],
          "default": "dev.cdevents.testcaserun.started.0.1.0"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "testCaseRun"
          ],
          "default": "testCaseRun"
        },
        "content": {
          "properties": {
            "trigger": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "manual",
                    "pipeline",
                    "event",
                    "schedule",
                    "other"
                  ]
                },
                "uri": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "environment": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            },
            "testSuiteRun": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string"
                }
              },
              "additionalProperties": false,
              "required": [
                "id"
              ]
            },
            "testCase": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "version": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "performance",
                    "functional",
                    "unit",
                    "security",
                    "compliance",
                    "integration",
                    "e2e",
                    "other"
                  ]
                },
                "uri": {
                  "type": "string",
                  "format": "uri"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            }
          },
          "additionalProperties": false,
          "type": "object",
          "required": [
            "environment"
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}
`,
		"https://cdevents.dev/0.3.0/schema/testoutput-published-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.3.0/schema/test-output-published-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.testoutput.published.0.1.0"
          ],
          "default": "dev.cdevents.testoutput.published.0.1.0"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "testOutput"
          ],
          "default": "testOutput"
        },
        "content": {
          "properties": {
            "outputType": {
              "type": "string",
              "enum": [
                "report",
                "video",
                "image",
                "log",
                "other"
              ]
            },
            "format": {
              "type": "string",
              "example": "application/pdf"
            },
            "uri": {
              "type": "string",
              "format": "uri"
            },
            "testCaseRun": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string"
                }
              },
              "additionalProperties": false,
              "required": [
                "id"
              ]
            }
          },
          "additionalProperties": false,
          "type": "object",
          "required": [
            "outputType",
            "format"
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}
`,
		"https://cdevents.dev/0.3.0/schema/testsuiterun-finished-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.3.0/schema/test-suite-finished-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.testsuiterun.finished.0.1.0"
          ],
          "default": "dev.cdevents.testsuiterun.finished.0.1.0"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "testSuiteRun"
          ],
          "default": "testSuiteRun"
        },
        "content": {
          "properties": {
            "environment": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            },
            "testSuite": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "id"
              ],
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "version": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "uri": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "outcome": {
              "type": "string",
              "enum": [
                "pass",
                "fail",
                "cancel",
                "error"
              ]
            },
            "severity": {
              "type": "string",
              "enum": [
                "low",
                "medium",
                "high",
                "critical"
              ]
            },
            "reason": {
              "type": "string"
            }
          },
          "additionalProperties": false,
          "type": "object",
          "required": [
            "outcome",
            "environment"
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}
`,
		"https://cdevents.dev/0.3.0/schema/testsuiterun-queued-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.3.0/schema/test-suite-run-queued-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.testsuiterun.queued.0.1.0"
          ],
          "default": "dev.cdevents.testsuiterun.queued.0.1.0"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "testSuiteRun"
          ],
          "default": "testSuiteRun"
        },
        "content": {
          "properties": {
            "trigger": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "manual",
                    "pipeline",
                    "event",
                    "schedule",
                    "other"
                  ]
                },
                "uri": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "environment": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            },
            "testSuite": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "id"
              ],
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "version": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "url": {
                  "type": "string",
                  "format": "uri"
                }
              }
            }
          },
          "additionalProperties": false,
          "type": "object",
          "required": [
            "environment"
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}
`,
		"https://cdevents.dev/0.3.0/schema/testsuiterun-started-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.3.0/schema/test-suite-run-started-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.testsuiterun.started.0.1.0"
          ],
          "default": "dev.cdevents.testsuiterun.started.0.1.0"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "testSuiteRun"
          ],
          "default": "testSuiteRun"
        },
        "content": {
          "properties": {
            "trigger": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "manual",
                    "pipeline",
                    "event",
                    "schedule",
                    "other"
                  ]
                },
                "uri": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "environment": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            },
            "testSuite": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "id"
              ],
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "version": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "uri": {
                  "type": "string",
                  "format": "uri"
                }
              }
            }
          },
          "additionalProperties": false,
          "type": "object",
          "required": [
            "environment"
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}
`,
		"https://cdevents.dev/0.4.1/schema/artifact-deleted-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.4.1/schema/artifact-deleted-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.artifact.deleted.0.1.0"
          ],
          "default": "dev.cdevents.artifact.deleted.0.1.0"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        },
        "schemaUri": {
          "type": "string",
          "minLength": 1,
          "format": "uri"
        },
        "chainId": {
          "type": "string",
          "minLength": 1
        },
        "links": {
          "$ref": "links/embeddedlinksarray"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "artifact"
          ],
          "default": "artifact"
        },
        "content": {
          "properties": {
            "user": {
              "type": "string",
              "minLength": 1
            }
          },
          "additionalProperties": false,
          "type": "object"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}
`,
		"https://cdevents.dev/0.4.1/schema/artifact-downloaded-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.4.1/schema/artifact-downloaded-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.artifact.downloaded.0.1.0"
          ],
          "default": "dev.cdevents.artifact.downloaded.0.1.0"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        },
        "schemaUri": {
          "type": "string",
          "minLength": 1,
          "format": "uri"
        },
        "chainId": {
          "type": "string",
          "minLength": 1
        },
        "links": {
          "$ref": "links/embeddedlinksarray"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "artifact"
          ],
          "default": "artifact"
        },
        "content": {
          "properties": {
            "user": {
              "type": "string",
              "minLength": 1
            }
          },
          "additionalProperties": false,
          "type": "object"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}
`,
		"https://cdevents.dev/0.4.1/schema/artifact-packaged-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.4.1/schema/artifact-packaged-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.artifact.packaged.0.2.0"
          ],
          "default": "dev.cdevents.artifact.packaged.0.2.0"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        },
        "schemaUri": {
          "type": "string",
          "minLength": 1,
          "format": "uri"
        },
        "chainId": {
          "type": "string",
          "minLength": 1
        },
        "links": {
          "$ref": "links/embeddedlinksarray"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "artifact"
          ],
          "default": "artifact"
        },
        "content": {
          "properties": {
            "change": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            },
            "sbom": {
              "properties": {
                "uri": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "uri"
              ]
            }
          },
          "additionalProperties": false,
          "type": "object",
          "required": [
            "change"
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}
`,
		"https://cdevents.dev/0.4.1/schema/artifact-published-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.4.1/schema/artifact-published-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.artifact.published.0.2.0"
          ],
          "default": "dev.cdevents.artifact.published.0.2.0"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        },
        "schemaUri": {
          "type": "string",
          "minLength": 1,
          "format": "uri"
        },
        "chainId": {
          "type": "string",
          "minLength": 1
        },
        "links": {
          "$ref": "links/embeddedlinksarray"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "artifact"
          ],
          "default": "artifact"
        },
        "content": {
          "properties": {
            "sbom": {
              "properties": {
                "uri": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "uri"
              ]
            },
            "user": {
              "type": "string",
              "minLength": 1
            }
          },
          "additionalProperties": false,
          "type": "object"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}
`,
		"https://cdevents.dev/0.4.1/schema/artifact-signed-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.4.1/schema/artifact-signed-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.artifact.signed.0.2.0"
          ],
          "default": "dev.cdevents.artifact.signed.0.2.0"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        },
        "schemaUri": {
          "type": "string",
          "minLength": 1,
          "format": "uri"
        },
        "chainId": {
          "type": "string",
          "minLength": 1
        },
        "links": {
          "$ref": "links/embeddedlinksarray"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "artifact"
          ],
          "default": "artifact"
        },
        "content": {
          "properties": {
            "signature": {
              "type": "string",
              "minLength": 1
            }
          },
          "additionalProperties": false,
          "type": "object",
          "required": [
            "signature"
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}
`,
		"https://cdevents.dev/0.4.1/schema/branch-created-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.4.1/schema/branch-created-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.branch.created.0.2.0"
          ],
          "default": "dev.cdevents.branch.created.0.2.0"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        },
        "schemaUri": {
          "type": "string",
          "minLength": 1,
          "format": "uri"
        },
        "chainId": {
          "type": "string",
          "minLength": 1
        },
        "links": {
          "$ref": "links/embeddedlinksarray"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "branch"
          ],
          "default": "branch"
        },
        "content": {
          "properties": {
            "repository": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            }
          },
          "additionalProperties": false,
          "type": "object"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}
`,
		"https://cdevents.dev/0.4.1/schema/branch-deleted-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.4.1/schema/branch-deleted-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.branch.deleted.0.2.0"
          ],
          "default": "dev.cdevents.branch.deleted.0.2.0"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        },
        "schemaUri": {
          "type": "string",
          "minLength": 1,
          "format": "uri"
        },
        "chainId": {
          "type": "string",
          "minLength": 1
        },
        "links": {
          "$ref": "links/embeddedlinksarray"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "branch"
          ],
          "default": "branch"
        },
        "content": {
          "properties": {
            "repository": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            }
          },
          "additionalProperties": false,
          "type": "object"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}
`,
		"https://cdevents.dev/0.4.1/schema/build-finished-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.4.1/schema/build-finished-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.build.finished.0.2.0"
          ],
          "default": "dev.cdevents.build.finished.0.2.0"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        },
        "schemaUri": {
          "type": "string",
          "minLength": 1,
          "format": "uri"
        },
        "chainId": {
          "type": "string",
          "minLength": 1
        },
        "links": {
          "$ref": "links/embeddedlinksarray"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "build"
          ],
          "default": "build"
        },
        "content": {
          "properties": {
            "artifactId": {
              "type": "string"
            }
          },
          "additionalProperties": false,
          "type": "object"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}
`,
		"https://cdevents.dev/0.4.1/schema/build-queued-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.4.1/schema/build-queued-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.build.queued.0.2.0"
          ],
          "default": "dev.cdevents.build.queued.0.2.0"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        },
        "schemaUri": {
          "type": "string",
          "minLength": 1,
          "format": "uri"
        },
        "chainId": {
          "type": "string",
          "minLength": 1
        },
        "links": {
          "$ref": "links/embeddedlinksarray"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "build"
          ],
          "default": "build"
        },
        "content": {
          "properties": {},
          "additionalProperties": false,
          "type": "object"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}
`,
		"https://cdevents.dev/0.4.1/schema/build-started-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.4.1/schema/build-started-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.build.started.0.2.0"
          ],
          "default": "dev.cdevents.build.started.0.2.0"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        },
        "schemaUri": {
          "type": "string",
          "minLength": 1,
          "format": "uri"
        },
        "chainId": {
          "type": "string",
          "minLength": 1
        },
        "links": {
          "$ref": "links/embeddedlinksarray"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "build"
          ],
          "default": "build"
        },
        "content": {
          "properties": {},
          "additionalProperties": false,
          "type": "object"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}
`,
		"https://cdevents.dev/0.4.1/schema/change-abandoned-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.4.1/schema/change-abandoned-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.change.abandoned.0.2.0"
          ],
          "default": "dev.cdevents.change.abandoned.0.2.0"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        },
        "schemaUri": {
          "type": "string",
          "minLength": 1,
          "format": "uri"
        },
        "chainId": {
          "type": "string",
          "minLength": 1
        },
        "links": {
          "$ref": "links/embeddedlinksarray"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "change"
          ],
          "default": "change"
        },
        "content": {
          "properties": {
            "repository": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            }
          },
          "additionalProperties": false,
          "type": "object"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}
`,
		"https://cdevents.dev/0.4.1/schema/change-created-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.4.1/schema/change-created-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.change.created.0.3.0"
          ],
          "default": "dev.cdevents.change.created.0.3.0"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        },
        "schemaUri": {
          "type": "string",
          "minLength": 1,
          "format": "uri"
        },
        "chainId": {
          "type": "string",
          "minLength": 1
        },
        "links": {
          "$ref": "links/embeddedlinksarray"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "change"
          ],
          "default": "change"
        },
        "content": {
          "properties": {
            "description": {
              "type": "string",
              "minLength": 1
            },
            "repository": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            }
          },
          "additionalProperties": false,
          "type": "object"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}
`,
		"https://cdevents.dev/0.4.1/schema/change-merged-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.4.1/schema/change-merged-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.change.merged.0.2.0"
          ],
          "default": "dev.cdevents.change.merged.0.2.0"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        },
        "schemaUri": {
          "type": "string",
          "minLength": 1,
          "format": "uri"
        },
        "chainId": {
          "type": "string",
          "minLength": 1
        },
        "links": {
          "$ref": "links/embeddedlinksarray"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "change"
          ],
          "default": "change"
        },
        "content": {
          "properties": {
            "repository": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            }
          },
          "additionalProperties": false,
          "type": "object"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}
`,
		"https://cdevents.dev/0.4.1/schema/change-reviewed-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.4.1/schema/change-reviewed-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.change.reviewed.0.2.0"
          ],
          "default": "dev.cdevents.change.reviewed.0.2.0"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        },
        "schemaUri": {
          "type": "string",
          "minLength": 1,
          "format": "uri"
        },
        "chainId": {
          "type": "string",
          "minLength": 1
        },
        "links": {
          "$ref": "links/embeddedlinksarray"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "change"
          ],
          "default": "change"
        },
        "content": {
          "properties": {
            "repository": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            }
          },
          "additionalProperties": false,
          "type": "object"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}
`,
		"https://cdevents.dev/0.4.1/schema/change-updated-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.4.1/schema/change-updated-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.change.updated.0.2.0"
          ],
          "default": "dev.cdevents.change.updated.0.2.0"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        },
        "schemaUri": {
          "type": "string",
          "minLength": 1,
          "format": "uri"
        },
        "chainId": {
          "type": "string",
          "minLength": 1
        },
        "links": {
          "$ref": "links/embeddedlinksarray"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "change"
          ],
          "default": "change"
        },
        "content": {
          "properties": {
            "repository": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            }
          },
          "additionalProperties": false,
          "type": "object"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}
`,
		"https://cdevents.dev/0.4.1/schema/custom": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.4.1/schema/custom",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "pattern": "^dev\\.cdeventsx\\.[a-zA-Z0-9]+-[a-zA-Z]+\\.[a-zA-Z]+\\.[0-9]\\.[0-9]\\.[0-9]$"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        },
        "schemaUri": {
          "type": "string",
          "minLength": 1,
          "format": "uri"
        },
        "chainId": {
          "type": "string",
          "minLength": 1
        },
        "links": {
          "$ref": "links/embeddedlinksarray"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "pattern": "^[a-zA-Z0-9]+-[a-zA-Z]+$"
        },
        "content": {
          "type": "object",
          "additionalProperties": true
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}
`,
		"https://cdevents.dev/0.4.1/schema/environment-created-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.4.1/schema/environment-created-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.environment.created.0.2.0"
          ],
          "default": "dev.cdevents.environment.created.0.2.0"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        },
        "schemaUri": {
          "type": "string",
          "minLength": 1,
          "format": "uri"
        },
        "chainId": {
          "type": "string",
          "minLength": 1
        },
        "links": {
          "$ref": "links/embeddedlinksarray"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "environment"
          ],
          "default": "environment"
        },
        "content": {
          "properties": {
            "name": {
              "type": "string"
            },
            "url": {
              "type": "string"
            }
          },
          "additionalProperties": false,
          "type": "object"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}
`,
		"https://cdevents.dev/0.4.1/schema/environment-deleted-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.4.1/schema/environment-deleted-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.environment.deleted.0.2.0"
          ],
          "default": "dev.cdevents.environment.deleted.0.2.0"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        },
        "schemaUri": {
          "type": "string",
          "minLength": 1,
          "format": "uri"
        },
        "chainId": {
          "type": "string",
          "minLength": 1
        },
        "links": {
          "$ref": "links/embeddedlinksarray"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "environment"
          ],
          "default": "environment"
        },
        "content": {
          "properties": {
            "name": {
              "type": "string"
            }
          },
          "additionalProperties": false,
          "type": "object"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}
`,
		"https://cdevents.dev/0.4.1/schema/environment-modified-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.4.1/schema/environment-modified-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.environment.modified.0.2.0"
          ],
          "default": "dev.cdevents.environment.modified.0.2.0"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        },
        "schemaUri": {
          "type": "string",
          "minLength": 1,
          "format": "uri"
        },
        "chainId": {
          "type": "string",
          "minLength": 1
        },
        "links": {
          "$ref": "links/embeddedlinksarray"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "environment"
          ],
          "default": "environment"
        },
        "content": {
          "properties": {
            "name": {
              "type": "string"
            },
            "url": {
              "type": "string"
            }
          },
          "additionalProperties": false,
          "type": "object"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}
`,
		"https://cdevents.dev/0.4.1/schema/incident-detected-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.4.1/schema/incident-detected-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.incident.detected.0.2.0"
          ],
          "default": "dev.cdevents.incident.detected.0.2.0"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        },
        "schemaUri": {
          "type": "string",
          "minLength": 1,
          "format": "uri"
        },
        "chainId": {
          "type": "string",
          "minLength": 1
        },
        "links": {
          "$ref": "links/embeddedlinksarray"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "incident"
          ],
          "default": "incident"
        },
        "content": {
          "properties": {
            "description": {
              "type": "string"
            },
            "environment": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            },
            "service": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            },
            "artifactId": {
              "type": "string",
              "minLength": 1
            }
          },
          "additionalProperties": false,
          "type": "object",
          "required": [
            "environment"
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}
`,
		"https://cdevents.dev/0.4.1/schema/incident-reported-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.4.1/schema/incident-reported-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.incident.reported.0.2.0"
          ],
          "default": "dev.cdevents.incident.reported.0.2.0"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        },
        "schemaUri": {
          "type": "string",
          "minLength": 1,
          "format": "uri"
        },
        "chainId": {
          "type": "string",
          "minLength": 1
        },
        "links": {
          "$ref": "links/embeddedlinksarray"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "incident"
          ],
          "default": "incident"
        },
        "content": {
          "properties": {
            "description": {
              "type": "string"
            },
            "environment": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            },
            "ticketURI": {
              "type": "string",
              "format": "uri",
              "minLength": 1
            },
            "service": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            },
            "artifactId": {
              "type": "string",
              "minLength": 1
            }
          },
          "additionalProperties": false,
          "type": "object",
          "required": [
            "environment",
            "ticketURI"
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}
`,
		"https://cdevents.dev/0.4.1/schema/incident-resolved-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.4.1/schema/incident-resolved-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.incident.resolved.0.2.0"
          ],
          "default": "dev.cdevents.incident.resolved.0.2.0"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        },
        "schemaUri": {
          "type": "string",
          "minLength": 1,
          "format": "uri"
        },
        "chainId": {
          "type": "string",
          "minLength": 1
        },
        "links": {
          "$ref": "links/embeddedlinksarray"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "incident"
          ],
          "default": "incident"
        },
        "content": {
          "properties": {
            "description": {
              "type": "string"
            },
            "environment": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            },
            "service": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            },
            "artifactId": {
              "type": "string",
              "minLength": 1
            }
          },
          "additionalProperties": false,
          "type": "object",
          "required": [
            "environment"
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}
`,
		"https://cdevents.dev/0.4.1/schema/links/embeddedlinkend": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.4.1/schema/links/embeddedlinkend",
  "properties": {
    "linkType": {
      "type": "string",
      "enum": [
        "END"
      ]
    },
    "from": {
      "description": "When consuming a CDEvent, you are consuming a parent event. So, when looking at the 'from' key, this is the parent's parent.",
      "type": "object",
      "properties": {
        "contextId": {
          "type": "string",
          "minLength": 1
        }
      },
      "required": [
        "contextId"
      ]
    },
    "tags": {
      "type": "object",
      "additionalProperties": true
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "linkType"
  ]
}

`,
		"https://cdevents.dev/0.4.1/schema/links/embeddedlinkpath": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.4.1/schema/links/embeddedlinkpath",
  "properties": {
    "linkType": {
      "type": "string",
      "enum": [
        "PATH"
      ]
    },
    "from": {
      "description": "When consuming a CDEvent, you are consuming a parent event. So, when looking at the 'from' key, this is the parent's parent.",
      "type": "object",
      "properties": {
        "contextId": {
          "type": "string",
          "minLength": 1
        }
      },
      "required": [
        "contextId"
      ]
    },
    "tags": {
      "type": "object",
      "additionalProperties": true
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "linkType",
    "from"
  ]
}
`,
		"https://cdevents.dev/0.4.1/schema/links/embeddedlinkrelation": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.4.1/schema/links/embeddedlinkrelation",
  "properties": {
    "linkType": {
      "type": "string",
      "enum": [
        "RELATION"
      ]
    },
    "linkKind": {
      "type": "string",
      "minLength": 1
    },
    "target": {
      "description": "",
      "type": "object",
      "properties": {
        "contextId": {
          "type": "string",
          "minLength": 1
        }
      }
    },
    "tags": {
      "type": "object",
      "additionalProperties": true
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "linkType",
    "linkKind",
    "target"
  ]
}

`,
		"https://cdevents.dev/0.4.1/schema/links/embeddedlinksarray": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.4.1/schema/links/embeddedlinksarray",
  "type": "array",
  "items": {
    "anyOf": [
      {
        "type": "object",
        "$ref": "embeddedlinkend"
      },
      {
        "type": "object",
        "$ref": "embeddedlinkpath"
      },
      {
        "type": "object",
        "$ref": "embeddedlinkrelation"
      }
    ]
  }
}
`,
		"https://cdevents.dev/0.4.1/schema/links/linkend": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.4.1/schema/links/linkend",
  "properties": {
    "chainId": {
      "description": "This represents the full lifecycles of a series of events in CDEvents",
      "type": "string",
      "minLength": 1
    },
    "linkType": {
      "description": "The type associated with the link. In this case, 'END', suggesting the end of some CI/CD lifecycle",
      "type": "string",
      "enum": [
        "END"
      ]
    },
    "timestamp": {
      "type": "string",
      "format": "date-time"
    },
    "from": {
      "description": "This is the context ID of the producing CDEvent.",
      "type": "object",
      "properties": {
        "contextId": {
          "type": "string",
          "minLength": 1
        }
      },
      "required": [
        "contextId"
      ]
    },
    "end": {
      "description": "This is the context ID of the final CDEvent in the chain",
      "type": "object",
      "properties": {
        "contextId": {
          "type": "string",
          "minLength": 1
        }
      },
      "required": [
        "contextId"
      ]
    },
    "tags": {
      "type": "object",
      "additionalProperties": true
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "chainId",
    "linkType",
    "timestamp",
    "from",
    "end"
  ]
}

`,
		"https://cdevents.dev/0.4.1/schema/links/linkpath": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.4.1/schema/links/linkpath",
  "properties": {
    "chainId": {
      "type": "string",
      "minLength": 1
    },
    "timestamp": {
      "type": "string",
      "format": "date-time"
    },
    "linkType": {
      "type": "string",
      "enum": [
        "PATH"
      ]
    },
    "from": {
      "type": "object",
      "properties": {
        "contextId": {
          "type": "string",
          "minLength": 1
        }
      },
      "required": [
        "contextId"
      ]
    },
    "to": {
      "type": "object",
      "properties": {
        "contextId": {
          "type": "string",
          "minLength": 1
        }
      },
      "required": [
        "contextId"
      ]
    },
    "tags": {
      "type": "object",
      "additionalProperties": true
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "chainId",
    "linkType",
    "timestamp",
    "from",
    "to"
  ]
}
`,
		"https://cdevents.dev/0.4.1/schema/links/linkrelation": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.4.1/schema/links/linkrelation",
  "properties": {
    "chainId": {
      "description": "This represents the full lifecycles of a series of events in CDEvents",
      "type": "string",
      "minLength": 1
    },
    "linkType": {
      "type": "string",
      "enum": [
        "RELATION"
      ]
    },
    "linkKind": {
      "type": "string",
      "minLength": 1
    },
    "timestamp": {
      "type": "string",
      "format": "date-time"
    },
    "source": {
      "description": "",
      "type": "object",
      "properties": {
        "contextId": {
          "type": "string",
          "minLength": 1
        }
      },
      "required": [
        "contextId"
      ]
    },
    "target": {
      "description": "",
      "type": "object",
      "properties": {
        "contextId": {
          "type": "string",
          "minLength": 1
        }
      },
      "required": [
        "contextId"
      ]
    },
    "tags": {
      "type": "object",
      "additionalProperties": true
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "chainId",
    "linkType",
    "timestamp",
    "source",
    "target"
  ]
}
`,
		"https://cdevents.dev/0.4.1/schema/links/linkstart": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.4.1/schema/links/linkstart",
  "properties": {
    "chainId": {
      "description": "This represents the full lifecycles of a series of events in CDEvents",
      "type": "string",
      "minLength": 1
    },
    "linkType": {
      "description": "The type associated with the link. In this case, 'START', suggesting the start of some CI/CD lifecycle",
      "type": "string",
      "enum": [
        "START"
      ]
    },
    "timestamp": {
      "type": "string",
      "format": "date-time"
    },
    "start": {
      "description": "This is the context ID of the starting CDEvent in the chain.",
      "type": "object",
      "properties": {
        "contextId": {
          "type": "string",
          "minLength": 1
        }
      },
      "required": [
        "contextId"
      ]
    },
    "tags": {
      "type": "object",
      "additionalProperties": true
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "chainId",
    "linkType",
    "timestamp",
    "start"
  ]
}
`,
		"https://cdevents.dev/0.4.1/schema/pipelinerun-finished-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.4.1/schema/pipeline-run-finished-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.pipelinerun.finished.0.2.0"
          ],
          "default": "dev.cdevents.pipelinerun.finished.0.2.0"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        },
        "schemaUri": {
          "type": "string",
          "minLength": 1,
          "format": "uri"
        },
        "chainId": {
          "type": "string",
          "minLength": 1
        },
        "links": {
          "$ref": "links/embeddedlinksarray"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "pipelineRun"
          ],
          "default": "pipelineRun"
        },
        "content": {
          "properties": {
            "pipelineName": {
              "type": "string"
            },
            "url": {
              "type": "string"
            },
            "outcome": {
              "type": "string"
            },
            "errors": {
              "type": "string"
            }
          },
          "additionalProperties": false,
          "type": "object"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}
`,
		"https://cdevents.dev/0.4.1/schema/pipelinerun-queued-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.4.1/schema/pipeline-run-queued-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.pipelinerun.queued.0.2.0"
          ],
          "default": "dev.cdevents.pipelinerun.queued.0.2.0"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        },
        "schemaUri": {
          "type": "string",
          "minLength": 1,
          "format": "uri"
        },
        "chainId": {
          "type": "string",
          "minLength": 1
        },
        "links": {
          "$ref": "links/embeddedlinksarray"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "pipelineRun"
          ],
          "default": "pipelineRun"
        },
        "content": {
          "properties": {
            "pipelineName": {
              "type": "string"
            },
            "url": {
              "type": "string"
            }
          },
          "additionalProperties": false,
          "type": "object"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}
`,
		"https://cdevents.dev/0.4.1/schema/pipelinerun-started-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.4.1/schema/pipeline-run-started-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.pipelinerun.started.0.2.0"
          ],
          "default": "dev.cdevents.pipelinerun.started.0.2.0"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        },
        "schemaUri": {
          "type": "string",
          "minLength": 1,
          "format": "uri"
        },
        "chainId": {
          "type": "string",
          "minLength": 1
        },
        "links": {
          "$ref": "links/embeddedlinksarray"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "pipelineRun"
          ],
          "default": "pipelineRun"
        },
        "content": {
          "properties": {
            "pipelineName": {
              "type": "string"
            },
            "url": {
              "type": "string"
            }
          },
          "additionalProperties": false,
          "type": "object",
          "required": [
            "pipelineName",
            "url"
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}
`,
		"https://cdevents.dev/0.4.1/schema/repository-created-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.4.1/schema/repository-created-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.repository.created.0.2.0"
          ],
          "default": "dev.cdevents.repository.created.0.2.0"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        },
        "schemaUri": {
          "type": "string",
          "minLength": 1,
          "format": "uri"
        },
        "chainId": {
          "type": "string",
          "minLength": 1
        },
        "links": {
          "$ref": "links/embeddedlinksarray"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "repository"
          ],
          "default": "repository"
        },
        "content": {
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1
            },
            "owner": {
              "type": "string"
            },
            "url": {
              "type": "string",
              "minLength": 1
            },
            "viewUrl": {
              "type": "string"
            }
          },
          "additionalProperties": false,
          "type": "object",
          "required": [
            "name",
            "url"
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}
`,
		"https://cdevents.dev/0.4.1/schema/repository-deleted-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.4.1/schema/repository-deleted-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.repository.deleted.0.2.0"
          ],
          "default": "dev.cdevents.repository.deleted.0.2.0"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        },
        "schemaUri": {
          "type": "string",
          "minLength": 1,
          "format": "uri"
        },
        "chainId": {
          "type": "string",
          "minLength": 1
        },
        "links": {
          "$ref": "links/embeddedlinksarray"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "repository"
          ],
          "default": "repository"
        },
        "content": {
          "properties": {
            "name": {
              "type": "string"
            },
            "owner": {
              "type": "string"
            },
            "url": {
              "type": "string"
            },
            "viewUrl": {
              "type": "string"
            }
          },
          "additionalProperties": false,
          "type": "object"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}
`,
		"https://cdevents.dev/0.4.1/schema/repository-modified-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.4.1/schema/repository-modified-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.repository.modified.0.2.0"
          ],
          "default": "dev.cdevents.repository.modified.0.2.0"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        },
        "schemaUri": {
          "type": "string",
          "minLength": 1,
          "format": "uri"
        },
        "chainId": {
          "type": "string",
          "minLength": 1
        },
        "links": {
          "$ref": "links/embeddedlinksarray"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "repository"
          ],
          "default": "repository"
        },
        "content": {
          "properties": {
            "name": {
              "type": "string"
            },
            "owner": {
              "type": "string"
            },
            "url": {
              "type": "string"
            },
            "viewUrl": {
              "type": "string"
            }
          },
          "additionalProperties": false,
          "type": "object"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}
`,
		"https://cdevents.dev/0.4.1/schema/service-deployed-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.4.1/schema/service-deployed-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.service.deployed.0.2.0"
          ],
          "default": "dev.cdevents.service.deployed.0.2.0"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        },
        "schemaUri": {
          "type": "string",
          "minLength": 1,
          "format": "uri"
        },
        "chainId": {
          "type": "string",
          "minLength": 1
        },
        "links": {
          "$ref": "links/embeddedlinksarray"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "service"
          ],
          "default": "service"
        },
        "content": {
          "properties": {
            "environment": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            },
            "artifactId": {
              "type": "string",
              "minLength": 1
            }
          },
          "additionalProperties": false,
          "type": "object",
          "required": [
            "environment",
            "artifactId"
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}
`,
		"https://cdevents.dev/0.4.1/schema/service-published-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.4.1/schema/service-published-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.service.published.0.2.0"
          ],
          "default": "dev.cdevents.service.published.0.2.0"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        },
        "schemaUri": {
          "type": "string",
          "minLength": 1,
          "format": "uri"
        },
        "chainId": {
          "type": "string",
          "minLength": 1
        },
        "links": {
          "$ref": "links/embeddedlinksarray"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "service"
          ],
          "default": "service"
        },
        "content": {
          "properties": {
            "environment": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            }
          },
          "additionalProperties": false,
          "type": "object"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}
`,
		"https://cdevents.dev/0.4.1/schema/service-removed-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.4.1/schema/service-removed-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.service.removed.0.2.0"
          ],
          "default": "dev.cdevents.service.removed.0.2.0"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        },
        "schemaUri": {
          "type": "string",
          "minLength": 1,
          "format": "uri"
        },
        "chainId": {
          "type": "string",
          "minLength": 1
        },
        "links": {
          "$ref": "links/embeddedlinksarray"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "service"
          ],
          "default": "service"
        },
        "content": {
          "properties": {
            "environment": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            }
          },
          "additionalProperties": false,
          "type": "object"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}
`,
		"https://cdevents.dev/0.4.1/schema/service-rolledback-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.4.1/schema/service-rolledback-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.service.rolledback.0.2.0"
          ],
          "default": "dev.cdevents.service.rolledback.0.2.0"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        },
        "schemaUri": {
          "type": "string",
          "minLength": 1,
          "format": "uri"
        },
        "chainId": {
          "type": "string",
          "minLength": 1
        },
        "links": {
          "$ref": "links/embeddedlinksarray"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "service"
          ],
          "default": "service"
        },
        "content": {
          "properties": {
            "environment": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            },
            "artifactId": {
              "type": "string",
              "minLength": 1
            }
          },
          "additionalProperties": false,
          "type": "object",
          "required": [
            "environment",
            "artifactId"
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}
`,
		"https://cdevents.dev/0.4.1/schema/service-upgraded-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.4.1/schema/service-upgraded-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.service.upgraded.0.2.0"
          ],
          "default": "dev.cdevents.service.upgraded.0.2.0"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        },
        "schemaUri": {
          "type": "string",
          "minLength": 1,
          "format": "uri"
        },
        "chainId": {
          "type": "string",
          "minLength": 1
        },
        "links": {
          "$ref": "links/embeddedlinksarray"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "service"
          ],
          "default": "service"
        },
        "content": {
          "properties": {
            "environment": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            },
            "artifactId": {
              "type": "string",
              "minLength": 1
            }
          },
          "additionalProperties": false,
          "type": "object",
          "required": [
            "environment",
            "artifactId"
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}
`,
		"https://cdevents.dev/0.4.1/schema/taskrun-finished-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.4.1/schema/task-run-finished-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.taskrun.finished.0.2.0"
          ],
          "default": "dev.cdevents.taskrun.finished.0.2.0"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        },
        "schemaUri": {
          "type": "string",
          "minLength": 1,
          "format": "uri"
        },
        "chainId": {
          "type": "string",
          "minLength": 1
        },
        "links": {
          "$ref": "links/embeddedlinksarray"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "taskRun"
          ],
          "default": "taskRun"
        },
        "content": {
          "properties": {
            "taskName": {
              "type": "string"
            },
            "url": {
              "type": "string"
            },
            "pipelineRun": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            },
            "outcome": {
              "type": "string"
            },
            "errors": {
              "type": "string"
            }
          },
          "additionalProperties": false,
          "type": "object"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}
`,
		"https://cdevents.dev/0.4.1/schema/taskrun-started-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.4.1/schema/task-run-started-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.taskrun.started.0.2.0"
          ],
          "default": "dev.cdevents.taskrun.started.0.2.0"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        },
        "schemaUri": {
          "type": "string",
          "minLength": 1,
          "format": "uri"
        },
        "chainId": {
          "type": "string",
          "minLength": 1
        },
        "links": {
          "$ref": "links/embeddedlinksarray"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "taskRun"
          ],
          "default": "taskRun"
        },
        "content": {
          "properties": {
            "taskName": {
              "type": "string"
            },
            "url": {
              "type": "string"
            },
            "pipelineRun": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            }
          },
          "additionalProperties": false,
          "type": "object"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}
`,
		"https://cdevents.dev/0.4.1/schema/testcaserun-finished-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.4.1/schema/test-case-run-finished-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.testcaserun.finished.0.2.0"
          ],
          "default": "dev.cdevents.testcaserun.finished.0.2.0"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        },
        "schemaUri": {
          "type": "string",
          "minLength": 1,
          "format": "uri"
        },
        "chainId": {
          "type": "string",
          "minLength": 1
        },
        "links": {
          "$ref": "links/embeddedlinksarray"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "testCaseRun"
          ],
          "default": "testCaseRun"
        },
        "content": {
          "properties": {
            "outcome": {
              "type": "string",
              "enum": [
                "pass",
                "fail",
                "cancel",
                "error"
              ]
            },
            "severity": {
              "type": "string",
              "enum": [
                "low",
                "medium",
                "high",
                "critical"
              ]
            },
            "reason": {
              "type": "string"
            },
            "environment": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            },
            "testSuiteRun": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string"
                }
              },
              "additionalProperties": false,
              "required": [
                "id"
              ]
            },
            "testCase": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "id"
              ],
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "version": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "performance",
                    "functional",
                    "unit",
                    "security",
                    "compliance",
                    "integration",
                    "e2e",
                    "other"
                  ]
                },
                "uri": {
                  "type": "string",
                  "format": "uri"
                }
              }
            }
          },
          "additionalProperties": false,
          "type": "object",
          "required": [
            "outcome",
            "environment"
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}
`,
		"https://cdevents.dev/0.4.1/schema/testcaserun-queued-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.4.1/schema/test-case-run-queued-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.testcaserun.queued.0.2.0"
          ],
          "default": "dev.cdevents.testcaserun.queued.0.2.0"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        },
        "schemaUri": {
          "type": "string",
          "minLength": 1,
          "format": "uri"
        },
        "chainId": {
          "type": "string",
          "minLength": 1
        },
        "links": {
          "$ref": "links/embeddedlinksarray"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "testCaseRun"
          ],
          "default": "testCaseRun"
        },
        "content": {
          "properties": {
            "trigger": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "manual",
                    "pipeline",
                    "event",
                    "schedule",
                    "other"
                  ]
                },
                "uri": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "environment": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            },
            "testSuiteRun": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            },
            "testCase": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "id"
              ],
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "version": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "performance",
                    "functional",
                    "unit",
                    "security",
                    "compliance",
                    "integration",
                    "e2e",
                    "other"
                  ]
                },
                "uri": {
                  "type": "string",
                  "format": "uri"
                }
              }
            }
          },
          "additionalProperties": false,
          "type": "object",
          "required": [
            "environment"
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}
`,
		"https://cdevents.dev/0.4.1/schema/testcaserun-skipped-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.4.1/schema/test-case-run-skipped-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.testcaserun.skipped.0.1.0"
          ],
          "default": "dev.cdevents.testcaserun.skipped.0.1.0"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        },
        "schemaUri": {
          "type": "string",
          "minLength": 1,
          "format": "uri"
        },
        "chainId": {
          "type": "string",
          "minLength": 1
        },
        "links": {
          "$ref": "links/embeddedlinksarray"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "testCaseRun"
          ],
          "default": "testCaseRun"
        },
        "content": {
          "properties": {
            "reason": {
              "type": "string"
            },
            "environment": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            },
            "testSuiteRun": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string"
                }
              },
              "additionalProperties": false,
              "required": [
                "id"
              ]
            },
            "testCase": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "id"
              ],
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "version": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "performance",
                    "functional",
                    "unit",
                    "security",
                    "compliance",
                    "integration",
                    "e2e",
                    "other"
                  ]
                },
                "uri": {
                  "type": "string",
                  "format": "uri"
                }
              }
            }
          },
          "additionalProperties": false,
          "type": "object",
          "required": []
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}`,
		"https://cdevents.dev/0.4.1/schema/testcaserun-started-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.4.1/schema/test-case-run-started-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.testcaserun.started.0.2.0"
          ],
          "default": "dev.cdevents.testcaserun.started.0.2.0"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        },
        "schemaUri": {
          "type": "string",
          "minLength": 1,
          "format": "uri"
        },
        "chainId": {
          "type": "string",
          "minLength": 1
        },
        "links": {
          "$ref": "links/embeddedlinksarray"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "testCaseRun"
          ],
          "default": "testCaseRun"
        },
        "content": {
          "properties": {
            "trigger": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "manual",
                    "pipeline",
                    "event",
                    "schedule",
                    "other"
                  ]
                },
                "uri": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "environment": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            },
            "testSuiteRun": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string"
                }
              },
              "additionalProperties": false,
              "required": [
                "id"
              ]
            },
            "testCase": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "version": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "performance",
                    "functional",
                    "unit",
                    "security",
                    "compliance",
                    "integration",
                    "e2e",
                    "other"
                  ]
                },
                "uri": {
                  "type": "string",
                  "format": "uri"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            }
          },
          "additionalProperties": false,
          "type": "object",
          "required": [
            "environment"
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}
`,
		"https://cdevents.dev/0.4.1/schema/testoutput-published-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.4.1/schema/test-output-published-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.testoutput.published.0.2.0"
          ],
          "default": "dev.cdevents.testoutput.published.0.2.0"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        },
        "schemaUri": {
          "type": "string",
          "minLength": 1,
          "format": "uri"
        },
        "chainId": {
          "type": "string",
          "minLength": 1
        },
        "links": {
          "$ref": "links/embeddedlinksarray"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "testOutput"
          ],
          "default": "testOutput"
        },
        "content": {
          "properties": {
            "outputType": {
              "type": "string",
              "enum": [
                "report",
                "video",
                "image",
                "log",
                "other"
              ]
            },
            "format": {
              "type": "string",
              "example": "application/pdf"
            },
            "uri": {
              "type": "string",
              "format": "uri"
            },
            "testCaseRun": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string"
                }
              },
              "additionalProperties": false,
              "required": [
                "id"
              ]
            }
          },
          "additionalProperties": false,
          "type": "object",
          "required": [
            "outputType",
            "format"
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}
`,
		"https://cdevents.dev/0.4.1/schema/testsuiterun-finished-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.4.1/schema/test-suite-run-finished-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.testsuiterun.finished.0.2.0"
          ],
          "default": "dev.cdevents.testsuiterun.finished.0.2.0"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        },
        "schemaUri": {
          "type": "string",
          "minLength": 1,
          "format": "uri"
        },
        "chainId": {
          "type": "string",
          "minLength": 1
        },
        "links": {
          "$ref": "links/embeddedlinksarray"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "testSuiteRun"
          ],
          "default": "testSuiteRun"
        },
        "content": {
          "properties": {
            "environment": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            },
            "testSuite": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "id"
              ],
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "version": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "uri": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "outcome": {
              "type": "string",
              "enum": [
                "pass",
                "fail",
                "cancel",
                "error"
              ]
            },
            "severity": {
              "type": "string",
              "enum": [
                "low",
                "medium",
                "high",
                "critical"
              ]
            },
            "reason": {
              "type": "string"
            }
          },
          "additionalProperties": false,
          "type": "object",
          "required": [
            "outcome",
            "environment"
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}
`,
		"https://cdevents.dev/0.4.1/schema/testsuiterun-queued-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.4.1/schema/test-suite-run-queued-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.testsuiterun.queued.0.2.0"
          ],
          "default": "dev.cdevents.testsuiterun.queued.0.2.0"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        },
        "schemaUri": {
          "type": "string",
          "minLength": 1,
          "format": "uri"
        },
        "chainId": {
          "type": "string",
          "minLength": 1
        },
        "links": {
          "$ref": "links/embeddedlinksarray"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "testSuiteRun"
          ],
          "default": "testSuiteRun"
        },
        "content": {
          "properties": {
            "trigger": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "manual",
                    "pipeline",
                    "event",
                    "schedule",
                    "other"
                  ]
                },
                "uri": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "environment": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            },
            "testSuite": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "id"
              ],
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "version": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "url": {
                  "type": "string",
                  "format": "uri"
                }
              }
            }
          },
          "additionalProperties": false,
          "type": "object",
          "required": [
            "environment"
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}
`,
		"https://cdevents.dev/0.4.1/schema/testsuiterun-started-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.4.1/schema/test-suite-run-started-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.testsuiterun.started.0.2.0"
          ],
          "default": "dev.cdevents.testsuiterun.started.0.2.0"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        },
        "schemaUri": {
          "type": "string",
          "minLength": 1,
          "format": "uri"
        },
        "chainId": {
          "type": "string",
          "minLength": 1
        },
        "links": {
          "$ref": "links/embeddedlinksarray"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "testSuiteRun"
          ],
          "default": "testSuiteRun"
        },
        "content": {
          "properties": {
            "trigger": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "manual",
                    "pipeline",
                    "event",
                    "schedule",
                    "other"
                  ]
                },
                "uri": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "environment": {
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string",
                  "minLength": 1,
                  "format": "uri-reference"
                }
              },
              "additionalProperties": false,
              "type": "object",
              "required": [
                "id"
              ]
            },
            "testSuite": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "id"
              ],
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "version": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "uri": {
                  "type": "string",
                  "format": "uri"
                }
              }
            }
          },
          "additionalProperties": false,
          "type": "object",
          "required": [
            "environment"
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}
`,
		"https://cdevents.dev/0.4.1/schema/ticket-closed-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.4.1/schema/ticket-closed-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.ticket.closed.0.1.0"
          ],
          "default": "dev.cdevents.ticket.closed.0.1.0"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        },
        "schemaUri": {
          "type": "string",
          "minLength": 1,
          "format": "uri"
        },
        "chainId": {
          "type": "string",
          "minLength": 1
        },
        "links": {
          "$ref": "links/embeddedlinksarray"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "ticket"
          ],
          "default": "ticket"
        },
        "content": {
          "properties": {
            "summary": {
              "type": "string"
            },
            "ticketType": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "bug",
                    "enhancement",
                    "incident",
                    "task",
                    "question"
                  ]
                },
                {
                  "type": "string"
                }
              ]
            },
            "group": {
              "type": "string"
            },
            "creator": {
              "type": "string",
              "minLength": 1
            },
            "assignees": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "priority": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "low",
                    "medium",
                    "high"
                  ]
                },
                {
                  "type": "string"
                }
              ]
            },
            "labels": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "milestone": {
              "type": "string"
            },
            "uri": {
              "type": "string",
              "minLength": 1,
              "format": "uri-reference"
            },
            "resolution": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "completed",
                    "withdrawn",
                    "duplicate"
                  ]
                },
                {
                  "type": "string",
                  "minLength": 1
                }
              ]
            },
            "updatedBy": {
              "type": "string"
            }
          },
          "additionalProperties": false,
          "type": "object",
          "required": [
            "uri",
            "resolution"
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}
`,
		"https://cdevents.dev/0.4.1/schema/ticket-created-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.4.1/schema/ticket-created-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.ticket.created.0.1.0"
          ],
          "default": "dev.cdevents.ticket.created.0.1.0"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        },
        "schemaUri": {
          "type": "string",
          "minLength": 1,
          "format": "uri"
        },
        "chainId": {
          "type": "string",
          "minLength": 1
        },
        "links": {
          "$ref": "links/embeddedlinksarray"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "ticket"
          ],
          "default": "ticket"
        },
        "content": {
          "properties": {
            "summary": {
              "type": "string"
            },
            "ticketType": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "bug",
                    "enhancement",
                    "incident",
                    "task",
                    "question"
                  ]
                },
                {
                  "type": "string"
                }
              ]
            },
            "group": {
              "type": "string"
            },
            "creator": {
              "type": "string",
              "minLength": 1
            },
            "assignees": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "priority": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "low",
                    "medium",
                    "high"
                  ]
                },
                {
                  "type": "string"
                }
              ]
            },
            "labels": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "milestone": {
              "type": "string"
            },
            "uri": {
              "type": "string",
              "minLength": 1,
              "format": "uri-reference"
            }
          },
          "additionalProperties": false,
          "type": "object",
          "required": [
            "summary",
            "creator",
            "uri"
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}
`,
		"https://cdevents.dev/0.4.1/schema/ticket-updated-event": `{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cdevents.dev/0.4.1/schema/ticket-updated-event",
  "properties": {
    "context": {
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "enum": [
            "dev.cdevents.ticket.updated.0.1.0"
          ],
          "default": "dev.cdevents.ticket.updated.0.1.0"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        },
        "schemaUri": {
          "type": "string",
          "minLength": 1,
          "format": "uri"
        },
        "chainId": {
          "type": "string",
          "minLength": 1
        },
        "links": {
          "$ref": "links/embeddedlinksarray"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "version",
        "id",
        "source",
        "type",
        "timestamp"
      ]
    },
    "subject": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "source": {
          "type": "string",
          "minLength": 1,
          "format": "uri-reference"
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "ticket"
          ],
          "default": "ticket"
        },
        "content": {
          "properties": {
            "summary": {
              "type": "string"
            },
            "ticketType": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "bug",
                    "enhancement",
                    "incident",
                    "task",
                    "question"
                  ]
                },
                {
                  "type": "string"
                }
              ]
            },
            "group": {
              "type": "string"
            },
            "creator": {
              "type": "string",
              "minLength": 1
            },
            "assignees": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "priority": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "low",
                    "medium",
                    "high"
                  ]
                },
                {
                  "type": "string"
                }
              ]
            },
            "labels": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "milestone": {
              "type": "string"
            },
            "updatedBy": {
              "type": "string"
            },
            "uri": {
              "type": "string",
              "minLength": 1,
              "format": "uri-reference"
            }
          },
          "additionalProperties": false,
          "type": "object",
          "required": [
            "uri"
          ]
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "type",
        "content"
      ]
    },
    "customData": {
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string",
          "contentEncoding": "base64"
        }
      ]
    },
    "customDataContentType": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "context",
    "subject"
  ]
}
`,
	}
)

func (SchemaDB) GetBySpecSubjectPredicate added in v0.4.1

func (db SchemaDB) GetBySpecSubjectPredicate(specVersion, subject, predicate, custom string) (string, *jsonschema.Schema, error)

type ServiceDeployedEventV0_1_1 added in v0.4.1

type ServiceDeployedEventV0_1_1 struct {
	Context Context                      `json:"context"`
	Subject ServiceDeployedSubjectV0_1_1 `json:"subject"`
	CDEventCustomData
}

func NewServiceDeployedEventV0_1_1 added in v0.4.1

func NewServiceDeployedEventV0_1_1(specVersion string) (*ServiceDeployedEventV0_1_1, error)

New creates a new ServiceDeployedEventV0_1_1

func (ServiceDeployedEventV0_1_1) GetCustomData added in v0.4.1

func (e ServiceDeployedEventV0_1_1) GetCustomData() (interface{}, error)

func (ServiceDeployedEventV0_1_1) GetCustomDataAs added in v0.4.1

func (e ServiceDeployedEventV0_1_1) GetCustomDataAs(receiver interface{}) error

func (ServiceDeployedEventV0_1_1) GetCustomDataContentType added in v0.4.1

func (e ServiceDeployedEventV0_1_1) GetCustomDataContentType() string

func (ServiceDeployedEventV0_1_1) GetCustomDataRaw added in v0.4.1

func (e ServiceDeployedEventV0_1_1) GetCustomDataRaw() ([]byte, error)

func (ServiceDeployedEventV0_1_1) GetId added in v0.4.1

func (ServiceDeployedEventV0_1_1) GetSchema added in v0.4.1

func (ServiceDeployedEventV0_1_1) GetSource added in v0.4.1

func (e ServiceDeployedEventV0_1_1) GetSource() string

func (ServiceDeployedEventV0_1_1) GetSubject added in v0.4.1

func (e ServiceDeployedEventV0_1_1) GetSubject() Subject

func (ServiceDeployedEventV0_1_1) GetSubjectContent added in v0.4.1

func (e ServiceDeployedEventV0_1_1) GetSubjectContent() interface{}

func (ServiceDeployedEventV0_1_1) GetSubjectId added in v0.4.1

func (e ServiceDeployedEventV0_1_1) GetSubjectId() string

func (ServiceDeployedEventV0_1_1) GetSubjectSource added in v0.4.1

func (e ServiceDeployedEventV0_1_1) GetSubjectSource() string

func (ServiceDeployedEventV0_1_1) GetTimestamp added in v0.4.1

func (e ServiceDeployedEventV0_1_1) GetTimestamp() time.Time

func (ServiceDeployedEventV0_1_1) GetType added in v0.4.1

func (ServiceDeployedEventV0_1_1) GetVersion added in v0.4.1

func (e ServiceDeployedEventV0_1_1) GetVersion() string

func (*ServiceDeployedEventV0_1_1) SetCustomData added in v0.4.1

func (e *ServiceDeployedEventV0_1_1) SetCustomData(contentType string, data interface{}) error

func (*ServiceDeployedEventV0_1_1) SetId added in v0.4.1

func (e *ServiceDeployedEventV0_1_1) SetId(id string)

func (*ServiceDeployedEventV0_1_1) SetSource added in v0.4.1

func (e *ServiceDeployedEventV0_1_1) SetSource(source string)

func (*ServiceDeployedEventV0_1_1) SetSubjectArtifactId added in v0.4.1

func (e *ServiceDeployedEventV0_1_1) SetSubjectArtifactId(artifactId string)

func (*ServiceDeployedEventV0_1_1) SetSubjectEnvironment added in v0.4.1

func (e *ServiceDeployedEventV0_1_1) SetSubjectEnvironment(environment *Reference)

func (*ServiceDeployedEventV0_1_1) SetSubjectId added in v0.4.1

func (e *ServiceDeployedEventV0_1_1) SetSubjectId(subjectId string)

func (*ServiceDeployedEventV0_1_1) SetSubjectSource added in v0.4.1

func (e *ServiceDeployedEventV0_1_1) SetSubjectSource(subjectSource string)

func (*ServiceDeployedEventV0_1_1) SetTimestamp added in v0.4.1

func (e *ServiceDeployedEventV0_1_1) SetTimestamp(timestamp time.Time)

type ServiceDeployedEventV0_2_0 added in v0.4.1

type ServiceDeployedEventV0_2_0 struct {
	Context ContextV04                   `json:"context"`
	Subject ServiceDeployedSubjectV0_2_0 `json:"subject"`
	CDEventCustomData
}

func NewServiceDeployedEventV0_2_0 added in v0.4.1

func NewServiceDeployedEventV0_2_0(specVersion string) (*ServiceDeployedEventV0_2_0, error)

New creates a new ServiceDeployedEventV0_2_0

func (ServiceDeployedEventV0_2_0) GetChainId added in v0.4.1

func (e ServiceDeployedEventV0_2_0) GetChainId() string

func (ServiceDeployedEventV0_2_0) GetCustomData added in v0.4.1

func (e ServiceDeployedEventV0_2_0) GetCustomData() (interface{}, error)

func (ServiceDeployedEventV0_2_0) GetCustomDataAs added in v0.4.1

func (e ServiceDeployedEventV0_2_0) GetCustomDataAs(receiver interface{}) error

func (ServiceDeployedEventV0_2_0) GetCustomDataContentType added in v0.4.1

func (e ServiceDeployedEventV0_2_0) GetCustomDataContentType() string

func (ServiceDeployedEventV0_2_0) GetCustomDataRaw added in v0.4.1

func (e ServiceDeployedEventV0_2_0) GetCustomDataRaw() ([]byte, error)

func (ServiceDeployedEventV0_2_0) GetCustomSchema added in v0.4.1

func (e ServiceDeployedEventV0_2_0) GetCustomSchema() (*jsonschema.Schema, error)

GetCustomSchema looks up the SchemaUri, if any is defined. If none is defined, it returns nil. If it's defined and cannot be found, it returns an error.

func (ServiceDeployedEventV0_2_0) GetId added in v0.4.1

func (ServiceDeployedEventV0_2_0) GetSchema added in v0.4.1

func (ServiceDeployedEventV0_2_0) GetSchemaUri added in v0.4.1

func (e ServiceDeployedEventV0_2_0) GetSchemaUri() string

func (ServiceDeployedEventV0_2_0) GetSource added in v0.4.1

func (e ServiceDeployedEventV0_2_0) GetSource() string

func (ServiceDeployedEventV0_2_0) GetSubject added in v0.4.1

func (e ServiceDeployedEventV0_2_0) GetSubject() Subject

func (ServiceDeployedEventV0_2_0) GetSubjectContent added in v0.4.1

func (e ServiceDeployedEventV0_2_0) GetSubjectContent() interface{}

func (ServiceDeployedEventV0_2_0) GetSubjectId added in v0.4.1

func (e ServiceDeployedEventV0_2_0) GetSubjectId() string

func (ServiceDeployedEventV0_2_0) GetSubjectSource added in v0.4.1

func (e ServiceDeployedEventV0_2_0) GetSubjectSource() string

func (ServiceDeployedEventV0_2_0) GetTimestamp added in v0.4.1

func (e ServiceDeployedEventV0_2_0) GetTimestamp() time.Time

func (ServiceDeployedEventV0_2_0) GetType added in v0.4.1

func (ServiceDeployedEventV0_2_0) GetVersion added in v0.4.1

func (e ServiceDeployedEventV0_2_0) GetVersion() string

func (*ServiceDeployedEventV0_2_0) SetChainId added in v0.4.1

func (e *ServiceDeployedEventV0_2_0) SetChainId(chainId string)

func (*ServiceDeployedEventV0_2_0) SetCustomData added in v0.4.1

func (e *ServiceDeployedEventV0_2_0) SetCustomData(contentType string, data interface{}) error

func (*ServiceDeployedEventV0_2_0) SetId added in v0.4.1

func (e *ServiceDeployedEventV0_2_0) SetId(id string)

func (*ServiceDeployedEventV0_2_0) SetSchemaUri added in v0.4.1

func (e *ServiceDeployedEventV0_2_0) SetSchemaUri(schema string)

func (*ServiceDeployedEventV0_2_0) SetSource added in v0.4.1

func (e *ServiceDeployedEventV0_2_0) SetSource(source string)

func (*ServiceDeployedEventV0_2_0) SetSubjectArtifactId added in v0.4.1

func (e *ServiceDeployedEventV0_2_0) SetSubjectArtifactId(artifactId string)

func (*ServiceDeployedEventV0_2_0) SetSubjectEnvironment added in v0.4.1

func (e *ServiceDeployedEventV0_2_0) SetSubjectEnvironment(environment *Reference)

func (*ServiceDeployedEventV0_2_0) SetSubjectId added in v0.4.1

func (e *ServiceDeployedEventV0_2_0) SetSubjectId(subjectId string)

func (*ServiceDeployedEventV0_2_0) SetSubjectSource added in v0.4.1

func (e *ServiceDeployedEventV0_2_0) SetSubjectSource(subjectSource string)

func (*ServiceDeployedEventV0_2_0) SetTimestamp added in v0.4.1

func (e *ServiceDeployedEventV0_2_0) SetTimestamp(timestamp time.Time)

type ServiceDeployedSubjectContentV0_1_1 added in v0.4.1

type ServiceDeployedSubjectContentV0_1_1 struct {
	ArtifactId string `json:"artifactId" validate:"purl"`

	Environment *Reference `json:"environment"`
}

type ServiceDeployedSubjectContentV0_2_0 added in v0.4.1

type ServiceDeployedSubjectContentV0_2_0 struct {
	ArtifactId string `json:"artifactId" validate:"purl"`

	Environment *Reference `json:"environment"`
}

type ServiceDeployedSubjectV0_1_1 added in v0.4.1

type ServiceDeployedSubjectV0_1_1 struct {
	SubjectBase
	Content ServiceDeployedSubjectContentV0_1_1 `json:"content"`
}

func (ServiceDeployedSubjectV0_1_1) GetSubjectType added in v0.4.1

func (sc ServiceDeployedSubjectV0_1_1) GetSubjectType() SubjectType

type ServiceDeployedSubjectV0_2_0 added in v0.4.1

type ServiceDeployedSubjectV0_2_0 struct {
	SubjectBase
	Content ServiceDeployedSubjectContentV0_2_0 `json:"content"`
}

func (ServiceDeployedSubjectV0_2_0) GetSubjectType added in v0.4.1

func (sc ServiceDeployedSubjectV0_2_0) GetSubjectType() SubjectType

type ServicePublishedEventV0_1_1 added in v0.4.1

type ServicePublishedEventV0_1_1 struct {
	Context Context                       `json:"context"`
	Subject ServicePublishedSubjectV0_1_1 `json:"subject"`
	CDEventCustomData
}

func NewServicePublishedEventV0_1_1 added in v0.4.1

func NewServicePublishedEventV0_1_1(specVersion string) (*ServicePublishedEventV0_1_1, error)

New creates a new ServicePublishedEventV0_1_1

func (ServicePublishedEventV0_1_1) GetCustomData added in v0.4.1

func (e ServicePublishedEventV0_1_1) GetCustomData() (interface{}, error)

func (ServicePublishedEventV0_1_1) GetCustomDataAs added in v0.4.1

func (e ServicePublishedEventV0_1_1) GetCustomDataAs(receiver interface{}) error

func (ServicePublishedEventV0_1_1) GetCustomDataContentType added in v0.4.1

func (e ServicePublishedEventV0_1_1) GetCustomDataContentType() string

func (ServicePublishedEventV0_1_1) GetCustomDataRaw added in v0.4.1

func (e ServicePublishedEventV0_1_1) GetCustomDataRaw() ([]byte, error)

func (ServicePublishedEventV0_1_1) GetId added in v0.4.1

func (ServicePublishedEventV0_1_1) GetSchema added in v0.4.1

func (ServicePublishedEventV0_1_1) GetSource added in v0.4.1

func (e ServicePublishedEventV0_1_1) GetSource() string

func (ServicePublishedEventV0_1_1) GetSubject added in v0.4.1

func (e ServicePublishedEventV0_1_1) GetSubject() Subject

func (ServicePublishedEventV0_1_1) GetSubjectContent added in v0.4.1

func (e ServicePublishedEventV0_1_1) GetSubjectContent() interface{}

func (ServicePublishedEventV0_1_1) GetSubjectId added in v0.4.1

func (e ServicePublishedEventV0_1_1) GetSubjectId() string

func (ServicePublishedEventV0_1_1) GetSubjectSource added in v0.4.1

func (e ServicePublishedEventV0_1_1) GetSubjectSource() string

func (ServicePublishedEventV0_1_1) GetTimestamp added in v0.4.1

func (e ServicePublishedEventV0_1_1) GetTimestamp() time.Time

func (ServicePublishedEventV0_1_1) GetType added in v0.4.1

func (ServicePublishedEventV0_1_1) GetVersion added in v0.4.1

func (e ServicePublishedEventV0_1_1) GetVersion() string

func (*ServicePublishedEventV0_1_1) SetCustomData added in v0.4.1

func (e *ServicePublishedEventV0_1_1) SetCustomData(contentType string, data interface{}) error

func (*ServicePublishedEventV0_1_1) SetId added in v0.4.1

func (e *ServicePublishedEventV0_1_1) SetId(id string)

func (*ServicePublishedEventV0_1_1) SetSource added in v0.4.1

func (e *ServicePublishedEventV0_1_1) SetSource(source string)

func (*ServicePublishedEventV0_1_1) SetSubjectEnvironment added in v0.4.1

func (e *ServicePublishedEventV0_1_1) SetSubjectEnvironment(environment *Reference)

func (*ServicePublishedEventV0_1_1) SetSubjectId added in v0.4.1

func (e *ServicePublishedEventV0_1_1) SetSubjectId(subjectId string)

func (*ServicePublishedEventV0_1_1) SetSubjectSource added in v0.4.1

func (e *ServicePublishedEventV0_1_1) SetSubjectSource(subjectSource string)

func (*ServicePublishedEventV0_1_1) SetTimestamp added in v0.4.1

func (e *ServicePublishedEventV0_1_1) SetTimestamp(timestamp time.Time)

type ServicePublishedEventV0_2_0 added in v0.4.1

type ServicePublishedEventV0_2_0 struct {
	Context ContextV04                    `json:"context"`
	Subject ServicePublishedSubjectV0_2_0 `json:"subject"`
	CDEventCustomData
}

func NewServicePublishedEventV0_2_0 added in v0.4.1

func NewServicePublishedEventV0_2_0(specVersion string) (*ServicePublishedEventV0_2_0, error)

New creates a new ServicePublishedEventV0_2_0

func (ServicePublishedEventV0_2_0) GetChainId added in v0.4.1

func (e ServicePublishedEventV0_2_0) GetChainId() string

func (ServicePublishedEventV0_2_0) GetCustomData added in v0.4.1

func (e ServicePublishedEventV0_2_0) GetCustomData() (interface{}, error)

func (ServicePublishedEventV0_2_0) GetCustomDataAs added in v0.4.1

func (e ServicePublishedEventV0_2_0) GetCustomDataAs(receiver interface{}) error

func (ServicePublishedEventV0_2_0) GetCustomDataContentType added in v0.4.1

func (e ServicePublishedEventV0_2_0) GetCustomDataContentType() string

func (ServicePublishedEventV0_2_0) GetCustomDataRaw added in v0.4.1

func (e ServicePublishedEventV0_2_0) GetCustomDataRaw() ([]byte, error)

func (ServicePublishedEventV0_2_0) GetCustomSchema added in v0.4.1

func (e ServicePublishedEventV0_2_0) GetCustomSchema() (*jsonschema.Schema, error)

GetCustomSchema looks up the SchemaUri, if any is defined. If none is defined, it returns nil. If it's defined and cannot be found, it returns an error.

func (ServicePublishedEventV0_2_0) GetId added in v0.4.1

func (ServicePublishedEventV0_2_0) GetSchema added in v0.4.1

func (ServicePublishedEventV0_2_0) GetSchemaUri added in v0.4.1

func (e ServicePublishedEventV0_2_0) GetSchemaUri() string

func (ServicePublishedEventV0_2_0) GetSource added in v0.4.1

func (e ServicePublishedEventV0_2_0) GetSource() string

func (ServicePublishedEventV0_2_0) GetSubject added in v0.4.1

func (e ServicePublishedEventV0_2_0) GetSubject() Subject

func (ServicePublishedEventV0_2_0) GetSubjectContent added in v0.4.1

func (e ServicePublishedEventV0_2_0) GetSubjectContent() interface{}

func (ServicePublishedEventV0_2_0) GetSubjectId added in v0.4.1

func (e ServicePublishedEventV0_2_0) GetSubjectId() string

func (ServicePublishedEventV0_2_0) GetSubjectSource added in v0.4.1

func (e ServicePublishedEventV0_2_0) GetSubjectSource() string

func (ServicePublishedEventV0_2_0) GetTimestamp added in v0.4.1

func (e ServicePublishedEventV0_2_0) GetTimestamp() time.Time

func (ServicePublishedEventV0_2_0) GetType added in v0.4.1

func (ServicePublishedEventV0_2_0) GetVersion added in v0.4.1

func (e ServicePublishedEventV0_2_0) GetVersion() string

func (*ServicePublishedEventV0_2_0) SetChainId added in v0.4.1

func (e *ServicePublishedEventV0_2_0) SetChainId(chainId string)

func (*ServicePublishedEventV0_2_0) SetCustomData added in v0.4.1

func (e *ServicePublishedEventV0_2_0) SetCustomData(contentType string, data interface{}) error

func (*ServicePublishedEventV0_2_0) SetId added in v0.4.1

func (e *ServicePublishedEventV0_2_0) SetId(id string)

func (*ServicePublishedEventV0_2_0) SetSchemaUri added in v0.4.1

func (e *ServicePublishedEventV0_2_0) SetSchemaUri(schema string)

func (*ServicePublishedEventV0_2_0) SetSource added in v0.4.1

func (e *ServicePublishedEventV0_2_0) SetSource(source string)

func (*ServicePublishedEventV0_2_0) SetSubjectEnvironment added in v0.4.1

func (e *ServicePublishedEventV0_2_0) SetSubjectEnvironment(environment *Reference)

func (*ServicePublishedEventV0_2_0) SetSubjectId added in v0.4.1

func (e *ServicePublishedEventV0_2_0) SetSubjectId(subjectId string)

func (*ServicePublishedEventV0_2_0) SetSubjectSource added in v0.4.1

func (e *ServicePublishedEventV0_2_0) SetSubjectSource(subjectSource string)

func (*ServicePublishedEventV0_2_0) SetTimestamp added in v0.4.1

func (e *ServicePublishedEventV0_2_0) SetTimestamp(timestamp time.Time)

type ServicePublishedSubjectContentV0_1_1 added in v0.4.1

type ServicePublishedSubjectContentV0_1_1 struct {
	Environment *Reference `json:"environment,omitempty"`
}

type ServicePublishedSubjectContentV0_2_0 added in v0.4.1

type ServicePublishedSubjectContentV0_2_0 struct {
	Environment *Reference `json:"environment,omitempty"`
}

type ServicePublishedSubjectV0_1_1 added in v0.4.1

type ServicePublishedSubjectV0_1_1 struct {
	SubjectBase
	Content ServicePublishedSubjectContentV0_1_1 `json:"content"`
}

func (ServicePublishedSubjectV0_1_1) GetSubjectType added in v0.4.1

func (sc ServicePublishedSubjectV0_1_1) GetSubjectType() SubjectType

type ServicePublishedSubjectV0_2_0 added in v0.4.1

type ServicePublishedSubjectV0_2_0 struct {
	SubjectBase
	Content ServicePublishedSubjectContentV0_2_0 `json:"content"`
}

func (ServicePublishedSubjectV0_2_0) GetSubjectType added in v0.4.1

func (sc ServicePublishedSubjectV0_2_0) GetSubjectType() SubjectType

type ServiceRemovedEventV0_1_1 added in v0.4.1

type ServiceRemovedEventV0_1_1 struct {
	Context Context                     `json:"context"`
	Subject ServiceRemovedSubjectV0_1_1 `json:"subject"`
	CDEventCustomData
}

func NewServiceRemovedEventV0_1_1 added in v0.4.1

func NewServiceRemovedEventV0_1_1(specVersion string) (*ServiceRemovedEventV0_1_1, error)

New creates a new ServiceRemovedEventV0_1_1

func (ServiceRemovedEventV0_1_1) GetCustomData added in v0.4.1

func (e ServiceRemovedEventV0_1_1) GetCustomData() (interface{}, error)

func (ServiceRemovedEventV0_1_1) GetCustomDataAs added in v0.4.1

func (e ServiceRemovedEventV0_1_1) GetCustomDataAs(receiver interface{}) error

func (ServiceRemovedEventV0_1_1) GetCustomDataContentType added in v0.4.1

func (e ServiceRemovedEventV0_1_1) GetCustomDataContentType() string

func (ServiceRemovedEventV0_1_1) GetCustomDataRaw added in v0.4.1

func (e ServiceRemovedEventV0_1_1) GetCustomDataRaw() ([]byte, error)

func (ServiceRemovedEventV0_1_1) GetId added in v0.4.1

func (ServiceRemovedEventV0_1_1) GetSchema added in v0.4.1

func (ServiceRemovedEventV0_1_1) GetSource added in v0.4.1

func (e ServiceRemovedEventV0_1_1) GetSource() string

func (ServiceRemovedEventV0_1_1) GetSubject added in v0.4.1

func (e ServiceRemovedEventV0_1_1) GetSubject() Subject

func (ServiceRemovedEventV0_1_1) GetSubjectContent added in v0.4.1

func (e ServiceRemovedEventV0_1_1) GetSubjectContent() interface{}

func (ServiceRemovedEventV0_1_1) GetSubjectId added in v0.4.1

func (e ServiceRemovedEventV0_1_1) GetSubjectId() string

func (ServiceRemovedEventV0_1_1) GetSubjectSource added in v0.4.1

func (e ServiceRemovedEventV0_1_1) GetSubjectSource() string

func (ServiceRemovedEventV0_1_1) GetTimestamp added in v0.4.1

func (e ServiceRemovedEventV0_1_1) GetTimestamp() time.Time

func (ServiceRemovedEventV0_1_1) GetType added in v0.4.1

func (ServiceRemovedEventV0_1_1) GetVersion added in v0.4.1

func (e ServiceRemovedEventV0_1_1) GetVersion() string

func (*ServiceRemovedEventV0_1_1) SetCustomData added in v0.4.1

func (e *ServiceRemovedEventV0_1_1) SetCustomData(contentType string, data interface{}) error

func (*ServiceRemovedEventV0_1_1) SetId added in v0.4.1

func (e *ServiceRemovedEventV0_1_1) SetId(id string)

func (*ServiceRemovedEventV0_1_1) SetSource added in v0.4.1

func (e *ServiceRemovedEventV0_1_1) SetSource(source string)

func (*ServiceRemovedEventV0_1_1) SetSubjectEnvironment added in v0.4.1

func (e *ServiceRemovedEventV0_1_1) SetSubjectEnvironment(environment *Reference)

func (*ServiceRemovedEventV0_1_1) SetSubjectId added in v0.4.1

func (e *ServiceRemovedEventV0_1_1) SetSubjectId(subjectId string)

func (*ServiceRemovedEventV0_1_1) SetSubjectSource added in v0.4.1

func (e *ServiceRemovedEventV0_1_1) SetSubjectSource(subjectSource string)

func (*ServiceRemovedEventV0_1_1) SetTimestamp added in v0.4.1

func (e *ServiceRemovedEventV0_1_1) SetTimestamp(timestamp time.Time)

type ServiceRemovedEventV0_2_0 added in v0.4.1

type ServiceRemovedEventV0_2_0 struct {
	Context ContextV04                  `json:"context"`
	Subject ServiceRemovedSubjectV0_2_0 `json:"subject"`
	CDEventCustomData
}

func NewServiceRemovedEventV0_2_0 added in v0.4.1

func NewServiceRemovedEventV0_2_0(specVersion string) (*ServiceRemovedEventV0_2_0, error)

New creates a new ServiceRemovedEventV0_2_0

func (ServiceRemovedEventV0_2_0) GetChainId added in v0.4.1

func (e ServiceRemovedEventV0_2_0) GetChainId() string

func (ServiceRemovedEventV0_2_0) GetCustomData added in v0.4.1

func (e ServiceRemovedEventV0_2_0) GetCustomData() (interface{}, error)

func (ServiceRemovedEventV0_2_0) GetCustomDataAs added in v0.4.1

func (e ServiceRemovedEventV0_2_0) GetCustomDataAs(receiver interface{}) error

func (ServiceRemovedEventV0_2_0) GetCustomDataContentType added in v0.4.1

func (e ServiceRemovedEventV0_2_0) GetCustomDataContentType() string

func (ServiceRemovedEventV0_2_0) GetCustomDataRaw added in v0.4.1

func (e ServiceRemovedEventV0_2_0) GetCustomDataRaw() ([]byte, error)

func (ServiceRemovedEventV0_2_0) GetCustomSchema added in v0.4.1

func (e ServiceRemovedEventV0_2_0) GetCustomSchema() (*jsonschema.Schema, error)

GetCustomSchema looks up the SchemaUri, if any is defined. If none is defined, it returns nil. If it's defined and cannot be found, it returns an error.

func (ServiceRemovedEventV0_2_0) GetId added in v0.4.1

func (ServiceRemovedEventV0_2_0) GetSchema added in v0.4.1

func (ServiceRemovedEventV0_2_0) GetSchemaUri added in v0.4.1

func (e ServiceRemovedEventV0_2_0) GetSchemaUri() string

func (ServiceRemovedEventV0_2_0) GetSource added in v0.4.1

func (e ServiceRemovedEventV0_2_0) GetSource() string

func (ServiceRemovedEventV0_2_0) GetSubject added in v0.4.1

func (e ServiceRemovedEventV0_2_0) GetSubject() Subject

func (ServiceRemovedEventV0_2_0) GetSubjectContent added in v0.4.1

func (e ServiceRemovedEventV0_2_0) GetSubjectContent() interface{}

func (ServiceRemovedEventV0_2_0) GetSubjectId added in v0.4.1

func (e ServiceRemovedEventV0_2_0) GetSubjectId() string

func (ServiceRemovedEventV0_2_0) GetSubjectSource added in v0.4.1

func (e ServiceRemovedEventV0_2_0) GetSubjectSource() string

func (ServiceRemovedEventV0_2_0) GetTimestamp added in v0.4.1

func (e ServiceRemovedEventV0_2_0) GetTimestamp() time.Time

func (ServiceRemovedEventV0_2_0) GetType added in v0.4.1

func (ServiceRemovedEventV0_2_0) GetVersion added in v0.4.1

func (e ServiceRemovedEventV0_2_0) GetVersion() string

func (*ServiceRemovedEventV0_2_0) SetChainId added in v0.4.1

func (e *ServiceRemovedEventV0_2_0) SetChainId(chainId string)

func (*ServiceRemovedEventV0_2_0) SetCustomData added in v0.4.1

func (e *ServiceRemovedEventV0_2_0) SetCustomData(contentType string, data interface{}) error

func (*ServiceRemovedEventV0_2_0) SetId added in v0.4.1

func (e *ServiceRemovedEventV0_2_0) SetId(id string)
func (e *ServiceRemovedEventV0_2_0) SetLinks(links EmbeddedLinksArray)

func (*ServiceRemovedEventV0_2_0) SetSchemaUri added in v0.4.1

func (e *ServiceRemovedEventV0_2_0) SetSchemaUri(schema string)

func (*ServiceRemovedEventV0_2_0) SetSource added in v0.4.1

func (e *ServiceRemovedEventV0_2_0) SetSource(source string)

func (*ServiceRemovedEventV0_2_0) SetSubjectEnvironment added in v0.4.1

func (e *ServiceRemovedEventV0_2_0) SetSubjectEnvironment(environment *Reference)

func (*ServiceRemovedEventV0_2_0) SetSubjectId added in v0.4.1

func (e *ServiceRemovedEventV0_2_0) SetSubjectId(subjectId string)

func (*ServiceRemovedEventV0_2_0) SetSubjectSource added in v0.4.1

func (e *ServiceRemovedEventV0_2_0) SetSubjectSource(subjectSource string)

func (*ServiceRemovedEventV0_2_0) SetTimestamp added in v0.4.1

func (e *ServiceRemovedEventV0_2_0) SetTimestamp(timestamp time.Time)

type ServiceRemovedSubjectContentV0_1_1 added in v0.4.1

type ServiceRemovedSubjectContentV0_1_1 struct {
	Environment *Reference `json:"environment,omitempty"`
}

type ServiceRemovedSubjectContentV0_2_0 added in v0.4.1

type ServiceRemovedSubjectContentV0_2_0 struct {
	Environment *Reference `json:"environment,omitempty"`
}

type ServiceRemovedSubjectV0_1_1 added in v0.4.1

type ServiceRemovedSubjectV0_1_1 struct {
	SubjectBase
	Content ServiceRemovedSubjectContentV0_1_1 `json:"content"`
}

func (ServiceRemovedSubjectV0_1_1) GetSubjectType added in v0.4.1

func (sc ServiceRemovedSubjectV0_1_1) GetSubjectType() SubjectType

type ServiceRemovedSubjectV0_2_0 added in v0.4.1

type ServiceRemovedSubjectV0_2_0 struct {
	SubjectBase
	Content ServiceRemovedSubjectContentV0_2_0 `json:"content"`
}

func (ServiceRemovedSubjectV0_2_0) GetSubjectType added in v0.4.1

func (sc ServiceRemovedSubjectV0_2_0) GetSubjectType() SubjectType

type ServiceRolledbackEventV0_1_1 added in v0.4.1

type ServiceRolledbackEventV0_1_1 struct {
	Context Context                        `json:"context"`
	Subject ServiceRolledbackSubjectV0_1_1 `json:"subject"`
	CDEventCustomData
}

func NewServiceRolledbackEventV0_1_1 added in v0.4.1

func NewServiceRolledbackEventV0_1_1(specVersion string) (*ServiceRolledbackEventV0_1_1, error)

New creates a new ServiceRolledbackEventV0_1_1

func (ServiceRolledbackEventV0_1_1) GetCustomData added in v0.4.1

func (e ServiceRolledbackEventV0_1_1) GetCustomData() (interface{}, error)

func (ServiceRolledbackEventV0_1_1) GetCustomDataAs added in v0.4.1

func (e ServiceRolledbackEventV0_1_1) GetCustomDataAs(receiver interface{}) error

func (ServiceRolledbackEventV0_1_1) GetCustomDataContentType added in v0.4.1

func (e ServiceRolledbackEventV0_1_1) GetCustomDataContentType() string

func (ServiceRolledbackEventV0_1_1) GetCustomDataRaw added in v0.4.1

func (e ServiceRolledbackEventV0_1_1) GetCustomDataRaw() ([]byte, error)

func (ServiceRolledbackEventV0_1_1) GetId added in v0.4.1

func (ServiceRolledbackEventV0_1_1) GetSchema added in v0.4.1

func (ServiceRolledbackEventV0_1_1) GetSource added in v0.4.1

func (e ServiceRolledbackEventV0_1_1) GetSource() string

func (ServiceRolledbackEventV0_1_1) GetSubject added in v0.4.1

func (e ServiceRolledbackEventV0_1_1) GetSubject() Subject

func (ServiceRolledbackEventV0_1_1) GetSubjectContent added in v0.4.1

func (e ServiceRolledbackEventV0_1_1) GetSubjectContent() interface{}

func (ServiceRolledbackEventV0_1_1) GetSubjectId added in v0.4.1

func (e ServiceRolledbackEventV0_1_1) GetSubjectId() string

func (ServiceRolledbackEventV0_1_1) GetSubjectSource added in v0.4.1

func (e ServiceRolledbackEventV0_1_1) GetSubjectSource() string

func (ServiceRolledbackEventV0_1_1) GetTimestamp added in v0.4.1

func (e ServiceRolledbackEventV0_1_1) GetTimestamp() time.Time

func (ServiceRolledbackEventV0_1_1) GetType added in v0.4.1

func (ServiceRolledbackEventV0_1_1) GetVersion added in v0.4.1

func (e ServiceRolledbackEventV0_1_1) GetVersion() string

func (*ServiceRolledbackEventV0_1_1) SetCustomData added in v0.4.1

func (e *ServiceRolledbackEventV0_1_1) SetCustomData(contentType string, data interface{}) error

func (*ServiceRolledbackEventV0_1_1) SetId added in v0.4.1

func (e *ServiceRolledbackEventV0_1_1) SetId(id string)

func (*ServiceRolledbackEventV0_1_1) SetSource added in v0.4.1

func (e *ServiceRolledbackEventV0_1_1) SetSource(source string)

func (*ServiceRolledbackEventV0_1_1) SetSubjectArtifactId added in v0.4.1

func (e *ServiceRolledbackEventV0_1_1) SetSubjectArtifactId(artifactId string)

func (*ServiceRolledbackEventV0_1_1) SetSubjectEnvironment added in v0.4.1

func (e *ServiceRolledbackEventV0_1_1) SetSubjectEnvironment(environment *Reference)

func (*ServiceRolledbackEventV0_1_1) SetSubjectId added in v0.4.1

func (e *ServiceRolledbackEventV0_1_1) SetSubjectId(subjectId string)

func (*ServiceRolledbackEventV0_1_1) SetSubjectSource added in v0.4.1

func (e *ServiceRolledbackEventV0_1_1) SetSubjectSource(subjectSource string)

func (*ServiceRolledbackEventV0_1_1) SetTimestamp added in v0.4.1

func (e *ServiceRolledbackEventV0_1_1) SetTimestamp(timestamp time.Time)

type ServiceRolledbackEventV0_2_0 added in v0.4.1

type ServiceRolledbackEventV0_2_0 struct {
	Context ContextV04                     `json:"context"`
	Subject ServiceRolledbackSubjectV0_2_0 `json:"subject"`
	CDEventCustomData
}

func NewServiceRolledbackEventV0_2_0 added in v0.4.1

func NewServiceRolledbackEventV0_2_0(specVersion string) (*ServiceRolledbackEventV0_2_0, error)

New creates a new ServiceRolledbackEventV0_2_0

func (ServiceRolledbackEventV0_2_0) GetChainId added in v0.4.1

func (e ServiceRolledbackEventV0_2_0) GetChainId() string

func (ServiceRolledbackEventV0_2_0) GetCustomData added in v0.4.1

func (e ServiceRolledbackEventV0_2_0) GetCustomData() (interface{}, error)

func (ServiceRolledbackEventV0_2_0) GetCustomDataAs added in v0.4.1

func (e ServiceRolledbackEventV0_2_0) GetCustomDataAs(receiver interface{}) error

func (ServiceRolledbackEventV0_2_0) GetCustomDataContentType added in v0.4.1

func (e ServiceRolledbackEventV0_2_0) GetCustomDataContentType() string

func (ServiceRolledbackEventV0_2_0) GetCustomDataRaw added in v0.4.1

func (e ServiceRolledbackEventV0_2_0) GetCustomDataRaw() ([]byte, error)

func (ServiceRolledbackEventV0_2_0) GetCustomSchema added in v0.4.1

func (e ServiceRolledbackEventV0_2_0) GetCustomSchema() (*jsonschema.Schema, error)

GetCustomSchema looks up the SchemaUri, if any is defined. If none is defined, it returns nil. If it's defined and cannot be found, it returns an error.

func (ServiceRolledbackEventV0_2_0) GetId added in v0.4.1

func (ServiceRolledbackEventV0_2_0) GetSchema added in v0.4.1

func (ServiceRolledbackEventV0_2_0) GetSchemaUri added in v0.4.1

func (e ServiceRolledbackEventV0_2_0) GetSchemaUri() string

func (ServiceRolledbackEventV0_2_0) GetSource added in v0.4.1

func (e ServiceRolledbackEventV0_2_0) GetSource() string

func (ServiceRolledbackEventV0_2_0) GetSubject added in v0.4.1

func (e ServiceRolledbackEventV0_2_0) GetSubject() Subject

func (ServiceRolledbackEventV0_2_0) GetSubjectContent added in v0.4.1

func (e ServiceRolledbackEventV0_2_0) GetSubjectContent() interface{}

func (ServiceRolledbackEventV0_2_0) GetSubjectId added in v0.4.1

func (e ServiceRolledbackEventV0_2_0) GetSubjectId() string

func (ServiceRolledbackEventV0_2_0) GetSubjectSource added in v0.4.1

func (e ServiceRolledbackEventV0_2_0) GetSubjectSource() string

func (ServiceRolledbackEventV0_2_0) GetTimestamp added in v0.4.1

func (e ServiceRolledbackEventV0_2_0) GetTimestamp() time.Time

func (ServiceRolledbackEventV0_2_0) GetType added in v0.4.1

func (ServiceRolledbackEventV0_2_0) GetVersion added in v0.4.1

func (e ServiceRolledbackEventV0_2_0) GetVersion() string

func (*ServiceRolledbackEventV0_2_0) SetChainId added in v0.4.1

func (e *ServiceRolledbackEventV0_2_0) SetChainId(chainId string)

func (*ServiceRolledbackEventV0_2_0) SetCustomData added in v0.4.1

func (e *ServiceRolledbackEventV0_2_0) SetCustomData(contentType string, data interface{}) error

func (*ServiceRolledbackEventV0_2_0) SetId added in v0.4.1

func (e *ServiceRolledbackEventV0_2_0) SetId(id string)

func (*ServiceRolledbackEventV0_2_0) SetSchemaUri added in v0.4.1

func (e *ServiceRolledbackEventV0_2_0) SetSchemaUri(schema string)

func (*ServiceRolledbackEventV0_2_0) SetSource added in v0.4.1

func (e *ServiceRolledbackEventV0_2_0) SetSource(source string)

func (*ServiceRolledbackEventV0_2_0) SetSubjectArtifactId added in v0.4.1

func (e *ServiceRolledbackEventV0_2_0) SetSubjectArtifactId(artifactId string)

func (*ServiceRolledbackEventV0_2_0) SetSubjectEnvironment added in v0.4.1

func (e *ServiceRolledbackEventV0_2_0) SetSubjectEnvironment(environment *Reference)

func (*ServiceRolledbackEventV0_2_0) SetSubjectId added in v0.4.1

func (e *ServiceRolledbackEventV0_2_0) SetSubjectId(subjectId string)

func (*ServiceRolledbackEventV0_2_0) SetSubjectSource added in v0.4.1

func (e *ServiceRolledbackEventV0_2_0) SetSubjectSource(subjectSource string)

func (*ServiceRolledbackEventV0_2_0) SetTimestamp added in v0.4.1

func (e *ServiceRolledbackEventV0_2_0) SetTimestamp(timestamp time.Time)

type ServiceRolledbackSubjectContentV0_1_1 added in v0.4.1

type ServiceRolledbackSubjectContentV0_1_1 struct {
	ArtifactId string `json:"artifactId" validate:"purl"`

	Environment *Reference `json:"environment"`
}

type ServiceRolledbackSubjectContentV0_2_0 added in v0.4.1

type ServiceRolledbackSubjectContentV0_2_0 struct {
	ArtifactId string `json:"artifactId" validate:"purl"`

	Environment *Reference `json:"environment"`
}

type ServiceRolledbackSubjectV0_1_1 added in v0.4.1

type ServiceRolledbackSubjectV0_1_1 struct {
	SubjectBase
	Content ServiceRolledbackSubjectContentV0_1_1 `json:"content"`
}

func (ServiceRolledbackSubjectV0_1_1) GetSubjectType added in v0.4.1

func (sc ServiceRolledbackSubjectV0_1_1) GetSubjectType() SubjectType

type ServiceRolledbackSubjectV0_2_0 added in v0.4.1

type ServiceRolledbackSubjectV0_2_0 struct {
	SubjectBase
	Content ServiceRolledbackSubjectContentV0_2_0 `json:"content"`
}

func (ServiceRolledbackSubjectV0_2_0) GetSubjectType added in v0.4.1

func (sc ServiceRolledbackSubjectV0_2_0) GetSubjectType() SubjectType

type ServiceUpgradedEventV0_1_1 added in v0.4.1

type ServiceUpgradedEventV0_1_1 struct {
	Context Context                      `json:"context"`
	Subject ServiceUpgradedSubjectV0_1_1 `json:"subject"`
	CDEventCustomData
}

func NewServiceUpgradedEventV0_1_1 added in v0.4.1

func NewServiceUpgradedEventV0_1_1(specVersion string) (*ServiceUpgradedEventV0_1_1, error)

New creates a new ServiceUpgradedEventV0_1_1

func (ServiceUpgradedEventV0_1_1) GetCustomData added in v0.4.1

func (e ServiceUpgradedEventV0_1_1) GetCustomData() (interface{}, error)

func (ServiceUpgradedEventV0_1_1) GetCustomDataAs added in v0.4.1

func (e ServiceUpgradedEventV0_1_1) GetCustomDataAs(receiver interface{}) error

func (ServiceUpgradedEventV0_1_1) GetCustomDataContentType added in v0.4.1

func (e ServiceUpgradedEventV0_1_1) GetCustomDataContentType() string

func (ServiceUpgradedEventV0_1_1) GetCustomDataRaw added in v0.4.1

func (e ServiceUpgradedEventV0_1_1) GetCustomDataRaw() ([]byte, error)

func (ServiceUpgradedEventV0_1_1) GetId added in v0.4.1

func (ServiceUpgradedEventV0_1_1) GetSchema added in v0.4.1

func (ServiceUpgradedEventV0_1_1) GetSource added in v0.4.1

func (e ServiceUpgradedEventV0_1_1) GetSource() string

func (ServiceUpgradedEventV0_1_1) GetSubject added in v0.4.1

func (e ServiceUpgradedEventV0_1_1) GetSubject() Subject

func (ServiceUpgradedEventV0_1_1) GetSubjectContent added in v0.4.1

func (e ServiceUpgradedEventV0_1_1) GetSubjectContent() interface{}

func (ServiceUpgradedEventV0_1_1) GetSubjectId added in v0.4.1

func (e ServiceUpgradedEventV0_1_1) GetSubjectId() string

func (ServiceUpgradedEventV0_1_1) GetSubjectSource added in v0.4.1

func (e ServiceUpgradedEventV0_1_1) GetSubjectSource() string

func (ServiceUpgradedEventV0_1_1) GetTimestamp added in v0.4.1

func (e ServiceUpgradedEventV0_1_1) GetTimestamp() time.Time

func (ServiceUpgradedEventV0_1_1) GetType added in v0.4.1

func (ServiceUpgradedEventV0_1_1) GetVersion added in v0.4.1

func (e ServiceUpgradedEventV0_1_1) GetVersion() string

func (*ServiceUpgradedEventV0_1_1) SetCustomData added in v0.4.1

func (e *ServiceUpgradedEventV0_1_1) SetCustomData(contentType string, data interface{}) error

func (*ServiceUpgradedEventV0_1_1) SetId added in v0.4.1

func (e *ServiceUpgradedEventV0_1_1) SetId(id string)

func (*ServiceUpgradedEventV0_1_1) SetSource added in v0.4.1

func (e *ServiceUpgradedEventV0_1_1) SetSource(source string)

func (*ServiceUpgradedEventV0_1_1) SetSubjectArtifactId added in v0.4.1

func (e *ServiceUpgradedEventV0_1_1) SetSubjectArtifactId(artifactId string)

func (*ServiceUpgradedEventV0_1_1) SetSubjectEnvironment added in v0.4.1

func (e *ServiceUpgradedEventV0_1_1) SetSubjectEnvironment(environment *Reference)

func (*ServiceUpgradedEventV0_1_1) SetSubjectId added in v0.4.1

func (e *ServiceUpgradedEventV0_1_1) SetSubjectId(subjectId string)

func (*ServiceUpgradedEventV0_1_1) SetSubjectSource added in v0.4.1

func (e *ServiceUpgradedEventV0_1_1) SetSubjectSource(subjectSource string)

func (*ServiceUpgradedEventV0_1_1) SetTimestamp added in v0.4.1

func (e *ServiceUpgradedEventV0_1_1) SetTimestamp(timestamp time.Time)

type ServiceUpgradedEventV0_2_0 added in v0.4.1

type ServiceUpgradedEventV0_2_0 struct {
	Context ContextV04                   `json:"context"`
	Subject ServiceUpgradedSubjectV0_2_0 `json:"subject"`
	CDEventCustomData
}

func NewServiceUpgradedEventV0_2_0 added in v0.4.1

func NewServiceUpgradedEventV0_2_0(specVersion string) (*ServiceUpgradedEventV0_2_0, error)

New creates a new ServiceUpgradedEventV0_2_0

func (ServiceUpgradedEventV0_2_0) GetChainId added in v0.4.1

func (e ServiceUpgradedEventV0_2_0) GetChainId() string

func (ServiceUpgradedEventV0_2_0) GetCustomData added in v0.4.1

func (e ServiceUpgradedEventV0_2_0) GetCustomData() (interface{}, error)

func (ServiceUpgradedEventV0_2_0) GetCustomDataAs added in v0.4.1

func (e ServiceUpgradedEventV0_2_0) GetCustomDataAs(receiver interface{}) error

func (ServiceUpgradedEventV0_2_0) GetCustomDataContentType added in v0.4.1

func (e ServiceUpgradedEventV0_2_0) GetCustomDataContentType() string

func (ServiceUpgradedEventV0_2_0) GetCustomDataRaw added in v0.4.1

func (e ServiceUpgradedEventV0_2_0) GetCustomDataRaw() ([]byte, error)

func (ServiceUpgradedEventV0_2_0) GetCustomSchema added in v0.4.1

func (e ServiceUpgradedEventV0_2_0) GetCustomSchema() (*jsonschema.Schema, error)

GetCustomSchema looks up the SchemaUri, if any is defined. If none is defined, it returns nil. If it's defined and cannot be found, it returns an error.

func (ServiceUpgradedEventV0_2_0) GetId added in v0.4.1

func (ServiceUpgradedEventV0_2_0) GetSchema added in v0.4.1

func (ServiceUpgradedEventV0_2_0) GetSchemaUri added in v0.4.1

func (e ServiceUpgradedEventV0_2_0) GetSchemaUri() string

func (ServiceUpgradedEventV0_2_0) GetSource added in v0.4.1

func (e ServiceUpgradedEventV0_2_0) GetSource() string

func (ServiceUpgradedEventV0_2_0) GetSubject added in v0.4.1

func (e ServiceUpgradedEventV0_2_0) GetSubject() Subject

func (ServiceUpgradedEventV0_2_0) GetSubjectContent added in v0.4.1

func (e ServiceUpgradedEventV0_2_0) GetSubjectContent() interface{}

func (ServiceUpgradedEventV0_2_0) GetSubjectId added in v0.4.1

func (e ServiceUpgradedEventV0_2_0) GetSubjectId() string

func (ServiceUpgradedEventV0_2_0) GetSubjectSource added in v0.4.1

func (e ServiceUpgradedEventV0_2_0) GetSubjectSource() string

func (ServiceUpgradedEventV0_2_0) GetTimestamp added in v0.4.1

func (e ServiceUpgradedEventV0_2_0) GetTimestamp() time.Time

func (ServiceUpgradedEventV0_2_0) GetType added in v0.4.1

func (ServiceUpgradedEventV0_2_0) GetVersion added in v0.4.1

func (e ServiceUpgradedEventV0_2_0) GetVersion() string

func (*ServiceUpgradedEventV0_2_0) SetChainId added in v0.4.1

func (e *ServiceUpgradedEventV0_2_0) SetChainId(chainId string)

func (*ServiceUpgradedEventV0_2_0) SetCustomData added in v0.4.1

func (e *ServiceUpgradedEventV0_2_0) SetCustomData(contentType string, data interface{}) error

func (*ServiceUpgradedEventV0_2_0) SetId added in v0.4.1

func (e *ServiceUpgradedEventV0_2_0) SetId(id string)

func (*ServiceUpgradedEventV0_2_0) SetSchemaUri added in v0.4.1

func (e *ServiceUpgradedEventV0_2_0) SetSchemaUri(schema string)

func (*ServiceUpgradedEventV0_2_0) SetSource added in v0.4.1

func (e *ServiceUpgradedEventV0_2_0) SetSource(source string)

func (*ServiceUpgradedEventV0_2_0) SetSubjectArtifactId added in v0.4.1

func (e *ServiceUpgradedEventV0_2_0) SetSubjectArtifactId(artifactId string)

func (*ServiceUpgradedEventV0_2_0) SetSubjectEnvironment added in v0.4.1

func (e *ServiceUpgradedEventV0_2_0) SetSubjectEnvironment(environment *Reference)

func (*ServiceUpgradedEventV0_2_0) SetSubjectId added in v0.4.1

func (e *ServiceUpgradedEventV0_2_0) SetSubjectId(subjectId string)

func (*ServiceUpgradedEventV0_2_0) SetSubjectSource added in v0.4.1

func (e *ServiceUpgradedEventV0_2_0) SetSubjectSource(subjectSource string)

func (*ServiceUpgradedEventV0_2_0) SetTimestamp added in v0.4.1

func (e *ServiceUpgradedEventV0_2_0) SetTimestamp(timestamp time.Time)

type ServiceUpgradedSubjectContentV0_1_1 added in v0.4.1

type ServiceUpgradedSubjectContentV0_1_1 struct {
	ArtifactId string `json:"artifactId" validate:"purl"`

	Environment *Reference `json:"environment"`
}

type ServiceUpgradedSubjectContentV0_2_0 added in v0.4.1

type ServiceUpgradedSubjectContentV0_2_0 struct {
	ArtifactId string `json:"artifactId" validate:"purl"`

	Environment *Reference `json:"environment"`
}

type ServiceUpgradedSubjectV0_1_1 added in v0.4.1

type ServiceUpgradedSubjectV0_1_1 struct {
	SubjectBase
	Content ServiceUpgradedSubjectContentV0_1_1 `json:"content"`
}

func (ServiceUpgradedSubjectV0_1_1) GetSubjectType added in v0.4.1

func (sc ServiceUpgradedSubjectV0_1_1) GetSubjectType() SubjectType

type ServiceUpgradedSubjectV0_2_0 added in v0.4.1

type ServiceUpgradedSubjectV0_2_0 struct {
	SubjectBase
	Content ServiceUpgradedSubjectContentV0_2_0 `json:"content"`
}

func (ServiceUpgradedSubjectV0_2_0) GetSubjectType added in v0.4.1

func (sc ServiceUpgradedSubjectV0_2_0) GetSubjectType() SubjectType

type Subject

type Subject interface {
	GetSubjectType() SubjectType
}

type SubjectBase

type SubjectBase struct {
	Reference

	// The type of subject. Constraints what is a valid valid SubjectContent
	Type SubjectType `json:"type" jsonschema:"required,minLength=1"`
}

type SubjectType

type SubjectType string

func (SubjectType) String

func (t SubjectType) String() string

type Tags added in v0.4.1

type Tags map[string]interface{}

type TaskRunFinishedEventV0_1_1 added in v0.4.1

type TaskRunFinishedEventV0_1_1 struct {
	Context Context                      `json:"context"`
	Subject TaskRunFinishedSubjectV0_1_1 `json:"subject"`
	CDEventCustomData
}

func NewTaskRunFinishedEventV0_1_1 added in v0.4.1

func NewTaskRunFinishedEventV0_1_1(specVersion string) (*TaskRunFinishedEventV0_1_1, error)

New creates a new TaskRunFinishedEventV0_1_1

func (TaskRunFinishedEventV0_1_1) GetCustomData added in v0.4.1

func (e TaskRunFinishedEventV0_1_1) GetCustomData() (interface{}, error)

func (TaskRunFinishedEventV0_1_1) GetCustomDataAs added in v0.4.1

func (e TaskRunFinishedEventV0_1_1) GetCustomDataAs(receiver interface{}) error

func (TaskRunFinishedEventV0_1_1) GetCustomDataContentType added in v0.4.1

func (e TaskRunFinishedEventV0_1_1) GetCustomDataContentType() string

func (TaskRunFinishedEventV0_1_1) GetCustomDataRaw added in v0.4.1

func (e TaskRunFinishedEventV0_1_1) GetCustomDataRaw() ([]byte, error)

func (TaskRunFinishedEventV0_1_1) GetId added in v0.4.1

func (TaskRunFinishedEventV0_1_1) GetSchema added in v0.4.1

func (TaskRunFinishedEventV0_1_1) GetSource added in v0.4.1

func (e TaskRunFinishedEventV0_1_1) GetSource() string

func (TaskRunFinishedEventV0_1_1) GetSubject added in v0.4.1

func (e TaskRunFinishedEventV0_1_1) GetSubject() Subject

func (TaskRunFinishedEventV0_1_1) GetSubjectContent added in v0.4.1

func (e TaskRunFinishedEventV0_1_1) GetSubjectContent() interface{}

func (TaskRunFinishedEventV0_1_1) GetSubjectId added in v0.4.1

func (e TaskRunFinishedEventV0_1_1) GetSubjectId() string

func (TaskRunFinishedEventV0_1_1) GetSubjectSource added in v0.4.1

func (e TaskRunFinishedEventV0_1_1) GetSubjectSource() string

func (TaskRunFinishedEventV0_1_1) GetTimestamp added in v0.4.1

func (e TaskRunFinishedEventV0_1_1) GetTimestamp() time.Time

func (TaskRunFinishedEventV0_1_1) GetType added in v0.4.1

func (TaskRunFinishedEventV0_1_1) GetVersion added in v0.4.1

func (e TaskRunFinishedEventV0_1_1) GetVersion() string

func (*TaskRunFinishedEventV0_1_1) SetCustomData added in v0.4.1

func (e *TaskRunFinishedEventV0_1_1) SetCustomData(contentType string, data interface{}) error

func (*TaskRunFinishedEventV0_1_1) SetId added in v0.4.1

func (e *TaskRunFinishedEventV0_1_1) SetId(id string)

func (*TaskRunFinishedEventV0_1_1) SetSource added in v0.4.1

func (e *TaskRunFinishedEventV0_1_1) SetSource(source string)

func (*TaskRunFinishedEventV0_1_1) SetSubjectErrors added in v0.4.1

func (e *TaskRunFinishedEventV0_1_1) SetSubjectErrors(errors string)

func (*TaskRunFinishedEventV0_1_1) SetSubjectId added in v0.4.1

func (e *TaskRunFinishedEventV0_1_1) SetSubjectId(subjectId string)

func (*TaskRunFinishedEventV0_1_1) SetSubjectOutcome added in v0.4.1

func (e *TaskRunFinishedEventV0_1_1) SetSubjectOutcome(outcome string)

func (*TaskRunFinishedEventV0_1_1) SetSubjectPipelineRun added in v0.4.1

func (e *TaskRunFinishedEventV0_1_1) SetSubjectPipelineRun(pipelineRun *Reference)

func (*TaskRunFinishedEventV0_1_1) SetSubjectSource added in v0.4.1

func (e *TaskRunFinishedEventV0_1_1) SetSubjectSource(subjectSource string)

func (*TaskRunFinishedEventV0_1_1) SetSubjectTaskName added in v0.4.1

func (e *TaskRunFinishedEventV0_1_1) SetSubjectTaskName(taskName string)

func (*TaskRunFinishedEventV0_1_1) SetSubjectUrl added in v0.4.1

func (e *TaskRunFinishedEventV0_1_1) SetSubjectUrl(url string)

func (*TaskRunFinishedEventV0_1_1) SetTimestamp added in v0.4.1

func (e *TaskRunFinishedEventV0_1_1) SetTimestamp(timestamp time.Time)

type TaskRunFinishedEventV0_2_0 added in v0.4.1

type TaskRunFinishedEventV0_2_0 struct {
	Context ContextV04                   `json:"context"`
	Subject TaskRunFinishedSubjectV0_2_0 `json:"subject"`
	CDEventCustomData
}

func NewTaskRunFinishedEventV0_2_0 added in v0.4.1

func NewTaskRunFinishedEventV0_2_0(specVersion string) (*TaskRunFinishedEventV0_2_0, error)

New creates a new TaskRunFinishedEventV0_2_0

func (TaskRunFinishedEventV0_2_0) GetChainId added in v0.4.1

func (e TaskRunFinishedEventV0_2_0) GetChainId() string

func (TaskRunFinishedEventV0_2_0) GetCustomData added in v0.4.1

func (e TaskRunFinishedEventV0_2_0) GetCustomData() (interface{}, error)

func (TaskRunFinishedEventV0_2_0) GetCustomDataAs added in v0.4.1

func (e TaskRunFinishedEventV0_2_0) GetCustomDataAs(receiver interface{}) error

func (TaskRunFinishedEventV0_2_0) GetCustomDataContentType added in v0.4.1

func (e TaskRunFinishedEventV0_2_0) GetCustomDataContentType() string

func (TaskRunFinishedEventV0_2_0) GetCustomDataRaw added in v0.4.1

func (e TaskRunFinishedEventV0_2_0) GetCustomDataRaw() ([]byte, error)

func (TaskRunFinishedEventV0_2_0) GetCustomSchema added in v0.4.1

func (e TaskRunFinishedEventV0_2_0) GetCustomSchema() (*jsonschema.Schema, error)

GetCustomSchema looks up the SchemaUri, if any is defined. If none is defined, it returns nil. If it's defined and cannot be found, it returns an error.

func (TaskRunFinishedEventV0_2_0) GetId added in v0.4.1

func (TaskRunFinishedEventV0_2_0) GetSchema added in v0.4.1

func (TaskRunFinishedEventV0_2_0) GetSchemaUri added in v0.4.1

func (e TaskRunFinishedEventV0_2_0) GetSchemaUri() string

func (TaskRunFinishedEventV0_2_0) GetSource added in v0.4.1

func (e TaskRunFinishedEventV0_2_0) GetSource() string

func (TaskRunFinishedEventV0_2_0) GetSubject added in v0.4.1

func (e TaskRunFinishedEventV0_2_0) GetSubject() Subject

func (TaskRunFinishedEventV0_2_0) GetSubjectContent added in v0.4.1

func (e TaskRunFinishedEventV0_2_0) GetSubjectContent() interface{}

func (TaskRunFinishedEventV0_2_0) GetSubjectId added in v0.4.1

func (e TaskRunFinishedEventV0_2_0) GetSubjectId() string

func (TaskRunFinishedEventV0_2_0) GetSubjectSource added in v0.4.1

func (e TaskRunFinishedEventV0_2_0) GetSubjectSource() string

func (TaskRunFinishedEventV0_2_0) GetTimestamp added in v0.4.1

func (e TaskRunFinishedEventV0_2_0) GetTimestamp() time.Time

func (TaskRunFinishedEventV0_2_0) GetType added in v0.4.1

func (TaskRunFinishedEventV0_2_0) GetVersion added in v0.4.1

func (e TaskRunFinishedEventV0_2_0) GetVersion() string

func (*TaskRunFinishedEventV0_2_0) SetChainId added in v0.4.1

func (e *TaskRunFinishedEventV0_2_0) SetChainId(chainId string)

func (*TaskRunFinishedEventV0_2_0) SetCustomData added in v0.4.1

func (e *TaskRunFinishedEventV0_2_0) SetCustomData(contentType string, data interface{}) error

func (*TaskRunFinishedEventV0_2_0) SetId added in v0.4.1

func (e *TaskRunFinishedEventV0_2_0) SetId(id string)

func (*TaskRunFinishedEventV0_2_0) SetSchemaUri added in v0.4.1

func (e *TaskRunFinishedEventV0_2_0) SetSchemaUri(schema string)

func (*TaskRunFinishedEventV0_2_0) SetSource added in v0.4.1

func (e *TaskRunFinishedEventV0_2_0) SetSource(source string)

func (*TaskRunFinishedEventV0_2_0) SetSubjectErrors added in v0.4.1

func (e *TaskRunFinishedEventV0_2_0) SetSubjectErrors(errors string)

func (*TaskRunFinishedEventV0_2_0) SetSubjectId added in v0.4.1

func (e *TaskRunFinishedEventV0_2_0) SetSubjectId(subjectId string)

func (*TaskRunFinishedEventV0_2_0) SetSubjectOutcome added in v0.4.1

func (e *TaskRunFinishedEventV0_2_0) SetSubjectOutcome(outcome string)

func (*TaskRunFinishedEventV0_2_0) SetSubjectPipelineRun added in v0.4.1

func (e *TaskRunFinishedEventV0_2_0) SetSubjectPipelineRun(pipelineRun *Reference)

func (*TaskRunFinishedEventV0_2_0) SetSubjectSource added in v0.4.1

func (e *TaskRunFinishedEventV0_2_0) SetSubjectSource(subjectSource string)

func (*TaskRunFinishedEventV0_2_0) SetSubjectTaskName added in v0.4.1

func (e *TaskRunFinishedEventV0_2_0) SetSubjectTaskName(taskName string)

func (*TaskRunFinishedEventV0_2_0) SetSubjectUrl added in v0.4.1

func (e *TaskRunFinishedEventV0_2_0) SetSubjectUrl(url string)

func (*TaskRunFinishedEventV0_2_0) SetTimestamp added in v0.4.1

func (e *TaskRunFinishedEventV0_2_0) SetTimestamp(timestamp time.Time)

type TaskRunFinishedSubjectContentV0_1_1 added in v0.4.1

type TaskRunFinishedSubjectContentV0_1_1 struct {
	Errors string `json:"errors,omitempty"`

	Outcome string `json:"outcome,omitempty"`

	PipelineRun *Reference `json:"pipelineRun,omitempty"`

	TaskName string `json:"taskName,omitempty"`

	Url string `json:"url,omitempty"`
}

type TaskRunFinishedSubjectContentV0_2_0 added in v0.4.1

type TaskRunFinishedSubjectContentV0_2_0 struct {
	Errors string `json:"errors,omitempty"`

	Outcome string `json:"outcome,omitempty"`

	PipelineRun *Reference `json:"pipelineRun,omitempty"`

	TaskName string `json:"taskName,omitempty"`

	Url string `json:"url,omitempty"`
}

type TaskRunFinishedSubjectV0_1_1 added in v0.4.1

type TaskRunFinishedSubjectV0_1_1 struct {
	SubjectBase
	Content TaskRunFinishedSubjectContentV0_1_1 `json:"content"`
}

func (TaskRunFinishedSubjectV0_1_1) GetSubjectType added in v0.4.1

func (sc TaskRunFinishedSubjectV0_1_1) GetSubjectType() SubjectType

type TaskRunFinishedSubjectV0_2_0 added in v0.4.1

type TaskRunFinishedSubjectV0_2_0 struct {
	SubjectBase
	Content TaskRunFinishedSubjectContentV0_2_0 `json:"content"`
}

func (TaskRunFinishedSubjectV0_2_0) GetSubjectType added in v0.4.1

func (sc TaskRunFinishedSubjectV0_2_0) GetSubjectType() SubjectType

type TaskRunStartedEventV0_1_1 added in v0.4.1

type TaskRunStartedEventV0_1_1 struct {
	Context Context                     `json:"context"`
	Subject TaskRunStartedSubjectV0_1_1 `json:"subject"`
	CDEventCustomData
}

func NewTaskRunStartedEventV0_1_1 added in v0.4.1

func NewTaskRunStartedEventV0_1_1(specVersion string) (*TaskRunStartedEventV0_1_1, error)

New creates a new TaskRunStartedEventV0_1_1

func (TaskRunStartedEventV0_1_1) GetCustomData added in v0.4.1

func (e TaskRunStartedEventV0_1_1) GetCustomData() (interface{}, error)

func (TaskRunStartedEventV0_1_1) GetCustomDataAs added in v0.4.1

func (e TaskRunStartedEventV0_1_1) GetCustomDataAs(receiver interface{}) error

func (TaskRunStartedEventV0_1_1) GetCustomDataContentType added in v0.4.1

func (e TaskRunStartedEventV0_1_1) GetCustomDataContentType() string

func (TaskRunStartedEventV0_1_1) GetCustomDataRaw added in v0.4.1

func (e TaskRunStartedEventV0_1_1) GetCustomDataRaw() ([]byte, error)

func (TaskRunStartedEventV0_1_1) GetId added in v0.4.1

func (TaskRunStartedEventV0_1_1) GetSchema added in v0.4.1

func (TaskRunStartedEventV0_1_1) GetSource added in v0.4.1

func (e TaskRunStartedEventV0_1_1) GetSource() string

func (TaskRunStartedEventV0_1_1) GetSubject added in v0.4.1

func (e TaskRunStartedEventV0_1_1) GetSubject() Subject

func (TaskRunStartedEventV0_1_1) GetSubjectContent added in v0.4.1

func (e TaskRunStartedEventV0_1_1) GetSubjectContent() interface{}

func (TaskRunStartedEventV0_1_1) GetSubjectId added in v0.4.1

func (e TaskRunStartedEventV0_1_1) GetSubjectId() string

func (TaskRunStartedEventV0_1_1) GetSubjectSource added in v0.4.1

func (e TaskRunStartedEventV0_1_1) GetSubjectSource() string

func (TaskRunStartedEventV0_1_1) GetTimestamp added in v0.4.1

func (e TaskRunStartedEventV0_1_1) GetTimestamp() time.Time

func (TaskRunStartedEventV0_1_1) GetType added in v0.4.1

func (TaskRunStartedEventV0_1_1) GetVersion added in v0.4.1

func (e TaskRunStartedEventV0_1_1) GetVersion() string

func (*TaskRunStartedEventV0_1_1) SetCustomData added in v0.4.1

func (e *TaskRunStartedEventV0_1_1) SetCustomData(contentType string, data interface{}) error

func (*TaskRunStartedEventV0_1_1) SetId added in v0.4.1

func (e *TaskRunStartedEventV0_1_1) SetId(id string)

func (*TaskRunStartedEventV0_1_1) SetSource added in v0.4.1

func (e *TaskRunStartedEventV0_1_1) SetSource(source string)

func (*TaskRunStartedEventV0_1_1) SetSubjectId added in v0.4.1

func (e *TaskRunStartedEventV0_1_1) SetSubjectId(subjectId string)

func (*TaskRunStartedEventV0_1_1) SetSubjectPipelineRun added in v0.4.1

func (e *TaskRunStartedEventV0_1_1) SetSubjectPipelineRun(pipelineRun *Reference)

func (*TaskRunStartedEventV0_1_1) SetSubjectSource added in v0.4.1

func (e *TaskRunStartedEventV0_1_1) SetSubjectSource(subjectSource string)

func (*TaskRunStartedEventV0_1_1) SetSubjectTaskName added in v0.4.1

func (e *TaskRunStartedEventV0_1_1) SetSubjectTaskName(taskName string)

func (*TaskRunStartedEventV0_1_1) SetSubjectUrl added in v0.4.1

func (e *TaskRunStartedEventV0_1_1) SetSubjectUrl(url string)

func (*TaskRunStartedEventV0_1_1) SetTimestamp added in v0.4.1

func (e *TaskRunStartedEventV0_1_1) SetTimestamp(timestamp time.Time)

type TaskRunStartedEventV0_2_0 added in v0.4.1

type TaskRunStartedEventV0_2_0 struct {
	Context ContextV04                  `json:"context"`
	Subject TaskRunStartedSubjectV0_2_0 `json:"subject"`
	CDEventCustomData
}

func NewTaskRunStartedEventV0_2_0 added in v0.4.1

func NewTaskRunStartedEventV0_2_0(specVersion string) (*TaskRunStartedEventV0_2_0, error)

New creates a new TaskRunStartedEventV0_2_0

func (TaskRunStartedEventV0_2_0) GetChainId added in v0.4.1

func (e TaskRunStartedEventV0_2_0) GetChainId() string

func (TaskRunStartedEventV0_2_0) GetCustomData added in v0.4.1

func (e TaskRunStartedEventV0_2_0) GetCustomData() (interface{}, error)

func (TaskRunStartedEventV0_2_0) GetCustomDataAs added in v0.4.1

func (e TaskRunStartedEventV0_2_0) GetCustomDataAs(receiver interface{}) error

func (TaskRunStartedEventV0_2_0) GetCustomDataContentType added in v0.4.1

func (e TaskRunStartedEventV0_2_0) GetCustomDataContentType() string

func (TaskRunStartedEventV0_2_0) GetCustomDataRaw added in v0.4.1

func (e TaskRunStartedEventV0_2_0) GetCustomDataRaw() ([]byte, error)

func (TaskRunStartedEventV0_2_0) GetCustomSchema added in v0.4.1

func (e TaskRunStartedEventV0_2_0) GetCustomSchema() (*jsonschema.Schema, error)

GetCustomSchema looks up the SchemaUri, if any is defined. If none is defined, it returns nil. If it's defined and cannot be found, it returns an error.

func (TaskRunStartedEventV0_2_0) GetId added in v0.4.1

func (TaskRunStartedEventV0_2_0) GetSchema added in v0.4.1

func (TaskRunStartedEventV0_2_0) GetSchemaUri added in v0.4.1

func (e TaskRunStartedEventV0_2_0) GetSchemaUri() string

func (TaskRunStartedEventV0_2_0) GetSource added in v0.4.1

func (e TaskRunStartedEventV0_2_0) GetSource() string

func (TaskRunStartedEventV0_2_0) GetSubject added in v0.4.1

func (e TaskRunStartedEventV0_2_0) GetSubject() Subject

func (TaskRunStartedEventV0_2_0) GetSubjectContent added in v0.4.1

func (e TaskRunStartedEventV0_2_0) GetSubjectContent() interface{}

func (TaskRunStartedEventV0_2_0) GetSubjectId added in v0.4.1

func (e TaskRunStartedEventV0_2_0) GetSubjectId() string

func (TaskRunStartedEventV0_2_0) GetSubjectSource added in v0.4.1

func (e TaskRunStartedEventV0_2_0) GetSubjectSource() string

func (TaskRunStartedEventV0_2_0) GetTimestamp added in v0.4.1

func (e TaskRunStartedEventV0_2_0) GetTimestamp() time.Time

func (TaskRunStartedEventV0_2_0) GetType added in v0.4.1

func (TaskRunStartedEventV0_2_0) GetVersion added in v0.4.1

func (e TaskRunStartedEventV0_2_0) GetVersion() string

func (*TaskRunStartedEventV0_2_0) SetChainId added in v0.4.1

func (e *TaskRunStartedEventV0_2_0) SetChainId(chainId string)

func (*TaskRunStartedEventV0_2_0) SetCustomData added in v0.4.1

func (e *TaskRunStartedEventV0_2_0) SetCustomData(contentType string, data interface{}) error

func (*TaskRunStartedEventV0_2_0) SetId added in v0.4.1

func (e *TaskRunStartedEventV0_2_0) SetId(id string)
func (e *TaskRunStartedEventV0_2_0) SetLinks(links EmbeddedLinksArray)

func (*TaskRunStartedEventV0_2_0) SetSchemaUri added in v0.4.1

func (e *TaskRunStartedEventV0_2_0) SetSchemaUri(schema string)

func (*TaskRunStartedEventV0_2_0) SetSource added in v0.4.1

func (e *TaskRunStartedEventV0_2_0) SetSource(source string)

func (*TaskRunStartedEventV0_2_0) SetSubjectId added in v0.4.1

func (e *TaskRunStartedEventV0_2_0) SetSubjectId(subjectId string)

func (*TaskRunStartedEventV0_2_0) SetSubjectPipelineRun added in v0.4.1

func (e *TaskRunStartedEventV0_2_0) SetSubjectPipelineRun(pipelineRun *Reference)

func (*TaskRunStartedEventV0_2_0) SetSubjectSource added in v0.4.1

func (e *TaskRunStartedEventV0_2_0) SetSubjectSource(subjectSource string)

func (*TaskRunStartedEventV0_2_0) SetSubjectTaskName added in v0.4.1

func (e *TaskRunStartedEventV0_2_0) SetSubjectTaskName(taskName string)

func (*TaskRunStartedEventV0_2_0) SetSubjectUrl added in v0.4.1

func (e *TaskRunStartedEventV0_2_0) SetSubjectUrl(url string)

func (*TaskRunStartedEventV0_2_0) SetTimestamp added in v0.4.1

func (e *TaskRunStartedEventV0_2_0) SetTimestamp(timestamp time.Time)

type TaskRunStartedSubjectContentV0_1_1 added in v0.4.1

type TaskRunStartedSubjectContentV0_1_1 struct {
	PipelineRun *Reference `json:"pipelineRun,omitempty"`

	TaskName string `json:"taskName,omitempty"`

	Url string `json:"url,omitempty"`
}

type TaskRunStartedSubjectContentV0_2_0 added in v0.4.1

type TaskRunStartedSubjectContentV0_2_0 struct {
	PipelineRun *Reference `json:"pipelineRun,omitempty"`

	TaskName string `json:"taskName,omitempty"`

	Url string `json:"url,omitempty"`
}

type TaskRunStartedSubjectV0_1_1 added in v0.4.1

type TaskRunStartedSubjectV0_1_1 struct {
	SubjectBase
	Content TaskRunStartedSubjectContentV0_1_1 `json:"content"`
}

func (TaskRunStartedSubjectV0_1_1) GetSubjectType added in v0.4.1

func (sc TaskRunStartedSubjectV0_1_1) GetSubjectType() SubjectType

type TaskRunStartedSubjectV0_2_0 added in v0.4.1

type TaskRunStartedSubjectV0_2_0 struct {
	SubjectBase
	Content TaskRunStartedSubjectContentV0_2_0 `json:"content"`
}

func (TaskRunStartedSubjectV0_2_0) GetSubjectType added in v0.4.1

func (sc TaskRunStartedSubjectV0_2_0) GetSubjectType() SubjectType

type TestCaseRunFinishedEventV0_1_0 added in v0.4.1

type TestCaseRunFinishedEventV0_1_0 struct {
	Context Context                          `json:"context"`
	Subject TestCaseRunFinishedSubjectV0_1_0 `json:"subject"`
	CDEventCustomData
}

func NewTestCaseRunFinishedEventV0_1_0 added in v0.4.1

func NewTestCaseRunFinishedEventV0_1_0(specVersion string) (*TestCaseRunFinishedEventV0_1_0, error)

New creates a new TestCaseRunFinishedEventV0_1_0

func (TestCaseRunFinishedEventV0_1_0) GetCustomData added in v0.4.1

func (e TestCaseRunFinishedEventV0_1_0) GetCustomData() (interface{}, error)

func (TestCaseRunFinishedEventV0_1_0) GetCustomDataAs added in v0.4.1

func (e TestCaseRunFinishedEventV0_1_0) GetCustomDataAs(receiver interface{}) error

func (TestCaseRunFinishedEventV0_1_0) GetCustomDataContentType added in v0.4.1

func (e TestCaseRunFinishedEventV0_1_0) GetCustomDataContentType() string

func (TestCaseRunFinishedEventV0_1_0) GetCustomDataRaw added in v0.4.1

func (e TestCaseRunFinishedEventV0_1_0) GetCustomDataRaw() ([]byte, error)

func (TestCaseRunFinishedEventV0_1_0) GetId added in v0.4.1

func (TestCaseRunFinishedEventV0_1_0) GetSchema added in v0.4.1

func (TestCaseRunFinishedEventV0_1_0) GetSource added in v0.4.1

func (e TestCaseRunFinishedEventV0_1_0) GetSource() string

func (TestCaseRunFinishedEventV0_1_0) GetSubject added in v0.4.1

func (e TestCaseRunFinishedEventV0_1_0) GetSubject() Subject

func (TestCaseRunFinishedEventV0_1_0) GetSubjectContent added in v0.4.1

func (e TestCaseRunFinishedEventV0_1_0) GetSubjectContent() interface{}

func (TestCaseRunFinishedEventV0_1_0) GetSubjectId added in v0.4.1

func (e TestCaseRunFinishedEventV0_1_0) GetSubjectId() string

func (TestCaseRunFinishedEventV0_1_0) GetSubjectSource added in v0.4.1

func (e TestCaseRunFinishedEventV0_1_0) GetSubjectSource() string

func (TestCaseRunFinishedEventV0_1_0) GetTimestamp added in v0.4.1

func (e TestCaseRunFinishedEventV0_1_0) GetTimestamp() time.Time

func (TestCaseRunFinishedEventV0_1_0) GetType added in v0.4.1

func (TestCaseRunFinishedEventV0_1_0) GetVersion added in v0.4.1

func (e TestCaseRunFinishedEventV0_1_0) GetVersion() string

func (*TestCaseRunFinishedEventV0_1_0) SetCustomData added in v0.4.1

func (e *TestCaseRunFinishedEventV0_1_0) SetCustomData(contentType string, data interface{}) error

func (*TestCaseRunFinishedEventV0_1_0) SetId added in v0.4.1

func (*TestCaseRunFinishedEventV0_1_0) SetSource added in v0.4.1

func (e *TestCaseRunFinishedEventV0_1_0) SetSource(source string)

func (*TestCaseRunFinishedEventV0_1_0) SetSubjectEnvironment added in v0.4.1

func (e *TestCaseRunFinishedEventV0_1_0) SetSubjectEnvironment(environment *Reference)

func (*TestCaseRunFinishedEventV0_1_0) SetSubjectId added in v0.4.1

func (e *TestCaseRunFinishedEventV0_1_0) SetSubjectId(subjectId string)

func (*TestCaseRunFinishedEventV0_1_0) SetSubjectOutcome added in v0.4.1

func (e *TestCaseRunFinishedEventV0_1_0) SetSubjectOutcome(outcome string)

func (*TestCaseRunFinishedEventV0_1_0) SetSubjectReason added in v0.4.1

func (e *TestCaseRunFinishedEventV0_1_0) SetSubjectReason(reason string)

func (*TestCaseRunFinishedEventV0_1_0) SetSubjectSeverity added in v0.4.1

func (e *TestCaseRunFinishedEventV0_1_0) SetSubjectSeverity(severity string)

func (*TestCaseRunFinishedEventV0_1_0) SetSubjectSource added in v0.4.1

func (e *TestCaseRunFinishedEventV0_1_0) SetSubjectSource(subjectSource string)

func (*TestCaseRunFinishedEventV0_1_0) SetSubjectTestCase added in v0.4.1

func (*TestCaseRunFinishedEventV0_1_0) SetSubjectTestSuiteRun added in v0.4.1

func (e *TestCaseRunFinishedEventV0_1_0) SetSubjectTestSuiteRun(testSuiteRun *Reference)

func (*TestCaseRunFinishedEventV0_1_0) SetTimestamp added in v0.4.1

func (e *TestCaseRunFinishedEventV0_1_0) SetTimestamp(timestamp time.Time)

type TestCaseRunFinishedEventV0_2_0 added in v0.4.1

type TestCaseRunFinishedEventV0_2_0 struct {
	Context ContextV04                       `json:"context"`
	Subject TestCaseRunFinishedSubjectV0_2_0 `json:"subject"`
	CDEventCustomData
}

func NewTestCaseRunFinishedEventV0_2_0 added in v0.4.1

func NewTestCaseRunFinishedEventV0_2_0(specVersion string) (*TestCaseRunFinishedEventV0_2_0, error)

New creates a new TestCaseRunFinishedEventV0_2_0

func (TestCaseRunFinishedEventV0_2_0) GetChainId added in v0.4.1

func (e TestCaseRunFinishedEventV0_2_0) GetChainId() string

func (TestCaseRunFinishedEventV0_2_0) GetCustomData added in v0.4.1

func (e TestCaseRunFinishedEventV0_2_0) GetCustomData() (interface{}, error)

func (TestCaseRunFinishedEventV0_2_0) GetCustomDataAs added in v0.4.1

func (e TestCaseRunFinishedEventV0_2_0) GetCustomDataAs(receiver interface{}) error

func (TestCaseRunFinishedEventV0_2_0) GetCustomDataContentType added in v0.4.1

func (e TestCaseRunFinishedEventV0_2_0) GetCustomDataContentType() string

func (TestCaseRunFinishedEventV0_2_0) GetCustomDataRaw added in v0.4.1

func (e TestCaseRunFinishedEventV0_2_0) GetCustomDataRaw() ([]byte, error)

func (TestCaseRunFinishedEventV0_2_0) GetCustomSchema added in v0.4.1

func (e TestCaseRunFinishedEventV0_2_0) GetCustomSchema() (*jsonschema.Schema, error)

GetCustomSchema looks up the SchemaUri, if any is defined. If none is defined, it returns nil. If it's defined and cannot be found, it returns an error.

func (TestCaseRunFinishedEventV0_2_0) GetId added in v0.4.1

func (TestCaseRunFinishedEventV0_2_0) GetSchema added in v0.4.1

func (TestCaseRunFinishedEventV0_2_0) GetSchemaUri added in v0.4.1

func (e TestCaseRunFinishedEventV0_2_0) GetSchemaUri() string

func (TestCaseRunFinishedEventV0_2_0) GetSource added in v0.4.1

func (e TestCaseRunFinishedEventV0_2_0) GetSource() string

func (TestCaseRunFinishedEventV0_2_0) GetSubject added in v0.4.1

func (e TestCaseRunFinishedEventV0_2_0) GetSubject() Subject

func (TestCaseRunFinishedEventV0_2_0) GetSubjectContent added in v0.4.1

func (e TestCaseRunFinishedEventV0_2_0) GetSubjectContent() interface{}

func (TestCaseRunFinishedEventV0_2_0) GetSubjectId added in v0.4.1

func (e TestCaseRunFinishedEventV0_2_0) GetSubjectId() string

func (TestCaseRunFinishedEventV0_2_0) GetSubjectSource added in v0.4.1

func (e TestCaseRunFinishedEventV0_2_0) GetSubjectSource() string

func (TestCaseRunFinishedEventV0_2_0) GetTimestamp added in v0.4.1

func (e TestCaseRunFinishedEventV0_2_0) GetTimestamp() time.Time

func (TestCaseRunFinishedEventV0_2_0) GetType added in v0.4.1

func (TestCaseRunFinishedEventV0_2_0) GetVersion added in v0.4.1

func (e TestCaseRunFinishedEventV0_2_0) GetVersion() string

func (*TestCaseRunFinishedEventV0_2_0) SetChainId added in v0.4.1

func (e *TestCaseRunFinishedEventV0_2_0) SetChainId(chainId string)

func (*TestCaseRunFinishedEventV0_2_0) SetCustomData added in v0.4.1

func (e *TestCaseRunFinishedEventV0_2_0) SetCustomData(contentType string, data interface{}) error

func (*TestCaseRunFinishedEventV0_2_0) SetId added in v0.4.1

func (*TestCaseRunFinishedEventV0_2_0) SetSchemaUri added in v0.4.1

func (e *TestCaseRunFinishedEventV0_2_0) SetSchemaUri(schema string)

func (*TestCaseRunFinishedEventV0_2_0) SetSource added in v0.4.1

func (e *TestCaseRunFinishedEventV0_2_0) SetSource(source string)

func (*TestCaseRunFinishedEventV0_2_0) SetSubjectEnvironment added in v0.4.1

func (e *TestCaseRunFinishedEventV0_2_0) SetSubjectEnvironment(environment *Reference)

func (*TestCaseRunFinishedEventV0_2_0) SetSubjectId added in v0.4.1

func (e *TestCaseRunFinishedEventV0_2_0) SetSubjectId(subjectId string)

func (*TestCaseRunFinishedEventV0_2_0) SetSubjectOutcome added in v0.4.1

func (e *TestCaseRunFinishedEventV0_2_0) SetSubjectOutcome(outcome string)

func (*TestCaseRunFinishedEventV0_2_0) SetSubjectReason added in v0.4.1

func (e *TestCaseRunFinishedEventV0_2_0) SetSubjectReason(reason string)

func (*TestCaseRunFinishedEventV0_2_0) SetSubjectSeverity added in v0.4.1

func (e *TestCaseRunFinishedEventV0_2_0) SetSubjectSeverity(severity string)

func (*TestCaseRunFinishedEventV0_2_0) SetSubjectSource added in v0.4.1

func (e *TestCaseRunFinishedEventV0_2_0) SetSubjectSource(subjectSource string)

func (*TestCaseRunFinishedEventV0_2_0) SetSubjectTestCase added in v0.4.1

func (*TestCaseRunFinishedEventV0_2_0) SetSubjectTestSuiteRun added in v0.4.1

func (e *TestCaseRunFinishedEventV0_2_0) SetSubjectTestSuiteRun(testSuiteRun *Reference)

func (*TestCaseRunFinishedEventV0_2_0) SetTimestamp added in v0.4.1

func (e *TestCaseRunFinishedEventV0_2_0) SetTimestamp(timestamp time.Time)

type TestCaseRunFinishedSubjectContentTestCaseV0_1_0 added in v0.4.1

type TestCaseRunFinishedSubjectContentTestCaseV0_1_0 struct {
	Id string `json:"id"`

	Name string `json:"name,omitempty"`

	Type string `json:"type,omitempty"`

	Uri string `json:"uri,omitempty"`

	Version string `json:"version,omitempty"`
}

TestCaseRunFinishedSubjectContentTestCaseV0_1_0 holds the content of a TestCase field in the content

type TestCaseRunFinishedSubjectContentTestCaseV0_2_0 added in v0.4.1

type TestCaseRunFinishedSubjectContentTestCaseV0_2_0 struct {
	Id string `json:"id"`

	Name string `json:"name,omitempty"`

	Type string `json:"type,omitempty"`

	Uri string `json:"uri,omitempty"`

	Version string `json:"version,omitempty"`
}

TestCaseRunFinishedSubjectContentTestCaseV0_2_0 holds the content of a TestCase field in the content

type TestCaseRunFinishedSubjectContentV0_1_0 added in v0.4.1

type TestCaseRunFinishedSubjectContentV0_1_0 struct {
	Environment *Reference `json:"environment"`

	Outcome string `json:"outcome"`

	Reason string `json:"reason,omitempty"`

	Severity string `json:"severity,omitempty"`

	TestCase *TestCaseRunFinishedSubjectContentTestCaseV0_1_0 `json:"testCase,omitempty"`

	TestSuiteRun *Reference `json:"testSuiteRun,omitempty"`
}

type TestCaseRunFinishedSubjectContentV0_2_0 added in v0.4.1

type TestCaseRunFinishedSubjectContentV0_2_0 struct {
	Environment *Reference `json:"environment"`

	Outcome string `json:"outcome"`

	Reason string `json:"reason,omitempty"`

	Severity string `json:"severity,omitempty"`

	TestCase *TestCaseRunFinishedSubjectContentTestCaseV0_2_0 `json:"testCase,omitempty"`

	TestSuiteRun *Reference `json:"testSuiteRun,omitempty"`
}

type TestCaseRunFinishedSubjectV0_1_0 added in v0.4.1

type TestCaseRunFinishedSubjectV0_1_0 struct {
	SubjectBase
	Content TestCaseRunFinishedSubjectContentV0_1_0 `json:"content"`
}

func (TestCaseRunFinishedSubjectV0_1_0) GetSubjectType added in v0.4.1

func (sc TestCaseRunFinishedSubjectV0_1_0) GetSubjectType() SubjectType

type TestCaseRunFinishedSubjectV0_2_0 added in v0.4.1

type TestCaseRunFinishedSubjectV0_2_0 struct {
	SubjectBase
	Content TestCaseRunFinishedSubjectContentV0_2_0 `json:"content"`
}

func (TestCaseRunFinishedSubjectV0_2_0) GetSubjectType added in v0.4.1

func (sc TestCaseRunFinishedSubjectV0_2_0) GetSubjectType() SubjectType

type TestCaseRunQueuedEventV0_1_0 added in v0.4.1

type TestCaseRunQueuedEventV0_1_0 struct {
	Context Context                        `json:"context"`
	Subject TestCaseRunQueuedSubjectV0_1_0 `json:"subject"`
	CDEventCustomData
}

func NewTestCaseRunQueuedEventV0_1_0 added in v0.4.1

func NewTestCaseRunQueuedEventV0_1_0(specVersion string) (*TestCaseRunQueuedEventV0_1_0, error)

New creates a new TestCaseRunQueuedEventV0_1_0

func (TestCaseRunQueuedEventV0_1_0) GetCustomData added in v0.4.1

func (e TestCaseRunQueuedEventV0_1_0) GetCustomData() (interface{}, error)

func (TestCaseRunQueuedEventV0_1_0) GetCustomDataAs added in v0.4.1

func (e TestCaseRunQueuedEventV0_1_0) GetCustomDataAs(receiver interface{}) error

func (TestCaseRunQueuedEventV0_1_0) GetCustomDataContentType added in v0.4.1

func (e TestCaseRunQueuedEventV0_1_0) GetCustomDataContentType() string

func (TestCaseRunQueuedEventV0_1_0) GetCustomDataRaw added in v0.4.1

func (e TestCaseRunQueuedEventV0_1_0) GetCustomDataRaw() ([]byte, error)

func (TestCaseRunQueuedEventV0_1_0) GetId added in v0.4.1

func (TestCaseRunQueuedEventV0_1_0) GetSchema added in v0.4.1

func (TestCaseRunQueuedEventV0_1_0) GetSource added in v0.4.1

func (e TestCaseRunQueuedEventV0_1_0) GetSource() string

func (TestCaseRunQueuedEventV0_1_0) GetSubject added in v0.4.1

func (e TestCaseRunQueuedEventV0_1_0) GetSubject() Subject

func (TestCaseRunQueuedEventV0_1_0) GetSubjectContent added in v0.4.1

func (e TestCaseRunQueuedEventV0_1_0) GetSubjectContent() interface{}

func (TestCaseRunQueuedEventV0_1_0) GetSubjectId added in v0.4.1

func (e TestCaseRunQueuedEventV0_1_0) GetSubjectId() string

func (TestCaseRunQueuedEventV0_1_0) GetSubjectSource added in v0.4.1

func (e TestCaseRunQueuedEventV0_1_0) GetSubjectSource() string

func (TestCaseRunQueuedEventV0_1_0) GetTimestamp added in v0.4.1

func (e TestCaseRunQueuedEventV0_1_0) GetTimestamp() time.Time

func (TestCaseRunQueuedEventV0_1_0) GetType added in v0.4.1

func (TestCaseRunQueuedEventV0_1_0) GetVersion added in v0.4.1

func (e TestCaseRunQueuedEventV0_1_0) GetVersion() string

func (*TestCaseRunQueuedEventV0_1_0) SetCustomData added in v0.4.1

func (e *TestCaseRunQueuedEventV0_1_0) SetCustomData(contentType string, data interface{}) error

func (*TestCaseRunQueuedEventV0_1_0) SetId added in v0.4.1

func (e *TestCaseRunQueuedEventV0_1_0) SetId(id string)

func (*TestCaseRunQueuedEventV0_1_0) SetSource added in v0.4.1

func (e *TestCaseRunQueuedEventV0_1_0) SetSource(source string)

func (*TestCaseRunQueuedEventV0_1_0) SetSubjectEnvironment added in v0.4.1

func (e *TestCaseRunQueuedEventV0_1_0) SetSubjectEnvironment(environment *Reference)

func (*TestCaseRunQueuedEventV0_1_0) SetSubjectId added in v0.4.1

func (e *TestCaseRunQueuedEventV0_1_0) SetSubjectId(subjectId string)

func (*TestCaseRunQueuedEventV0_1_0) SetSubjectSource added in v0.4.1

func (e *TestCaseRunQueuedEventV0_1_0) SetSubjectSource(subjectSource string)

func (*TestCaseRunQueuedEventV0_1_0) SetSubjectTestCase added in v0.4.1

func (*TestCaseRunQueuedEventV0_1_0) SetSubjectTestSuiteRun added in v0.4.1

func (e *TestCaseRunQueuedEventV0_1_0) SetSubjectTestSuiteRun(testSuiteRun *Reference)

func (*TestCaseRunQueuedEventV0_1_0) SetSubjectTrigger added in v0.4.1

func (*TestCaseRunQueuedEventV0_1_0) SetTimestamp added in v0.4.1

func (e *TestCaseRunQueuedEventV0_1_0) SetTimestamp(timestamp time.Time)

type TestCaseRunQueuedEventV0_2_0 added in v0.4.1

type TestCaseRunQueuedEventV0_2_0 struct {
	Context ContextV04                     `json:"context"`
	Subject TestCaseRunQueuedSubjectV0_2_0 `json:"subject"`
	CDEventCustomData
}

func NewTestCaseRunQueuedEventV0_2_0 added in v0.4.1

func NewTestCaseRunQueuedEventV0_2_0(specVersion string) (*TestCaseRunQueuedEventV0_2_0, error)

New creates a new TestCaseRunQueuedEventV0_2_0

func (TestCaseRunQueuedEventV0_2_0) GetChainId added in v0.4.1

func (e TestCaseRunQueuedEventV0_2_0) GetChainId() string

func (TestCaseRunQueuedEventV0_2_0) GetCustomData added in v0.4.1

func (e TestCaseRunQueuedEventV0_2_0) GetCustomData() (interface{}, error)

func (TestCaseRunQueuedEventV0_2_0) GetCustomDataAs added in v0.4.1

func (e TestCaseRunQueuedEventV0_2_0) GetCustomDataAs(receiver interface{}) error

func (TestCaseRunQueuedEventV0_2_0) GetCustomDataContentType added in v0.4.1

func (e TestCaseRunQueuedEventV0_2_0) GetCustomDataContentType() string

func (TestCaseRunQueuedEventV0_2_0) GetCustomDataRaw added in v0.4.1

func (e TestCaseRunQueuedEventV0_2_0) GetCustomDataRaw() ([]byte, error)

func (TestCaseRunQueuedEventV0_2_0) GetCustomSchema added in v0.4.1

func (e TestCaseRunQueuedEventV0_2_0) GetCustomSchema() (*jsonschema.Schema, error)

GetCustomSchema looks up the SchemaUri, if any is defined. If none is defined, it returns nil. If it's defined and cannot be found, it returns an error.

func (TestCaseRunQueuedEventV0_2_0) GetId added in v0.4.1

func (TestCaseRunQueuedEventV0_2_0) GetSchema added in v0.4.1

func (TestCaseRunQueuedEventV0_2_0) GetSchemaUri added in v0.4.1

func (e TestCaseRunQueuedEventV0_2_0) GetSchemaUri() string

func (TestCaseRunQueuedEventV0_2_0) GetSource added in v0.4.1

func (e TestCaseRunQueuedEventV0_2_0) GetSource() string

func (TestCaseRunQueuedEventV0_2_0) GetSubject added in v0.4.1

func (e TestCaseRunQueuedEventV0_2_0) GetSubject() Subject

func (TestCaseRunQueuedEventV0_2_0) GetSubjectContent added in v0.4.1

func (e TestCaseRunQueuedEventV0_2_0) GetSubjectContent() interface{}

func (TestCaseRunQueuedEventV0_2_0) GetSubjectId added in v0.4.1

func (e TestCaseRunQueuedEventV0_2_0) GetSubjectId() string

func (TestCaseRunQueuedEventV0_2_0) GetSubjectSource added in v0.4.1

func (e TestCaseRunQueuedEventV0_2_0) GetSubjectSource() string

func (TestCaseRunQueuedEventV0_2_0) GetTimestamp added in v0.4.1

func (e TestCaseRunQueuedEventV0_2_0) GetTimestamp() time.Time

func (TestCaseRunQueuedEventV0_2_0) GetType added in v0.4.1

func (TestCaseRunQueuedEventV0_2_0) GetVersion added in v0.4.1

func (e TestCaseRunQueuedEventV0_2_0) GetVersion() string

func (*TestCaseRunQueuedEventV0_2_0) SetChainId added in v0.4.1

func (e *TestCaseRunQueuedEventV0_2_0) SetChainId(chainId string)

func (*TestCaseRunQueuedEventV0_2_0) SetCustomData added in v0.4.1

func (e *TestCaseRunQueuedEventV0_2_0) SetCustomData(contentType string, data interface{}) error

func (*TestCaseRunQueuedEventV0_2_0) SetId added in v0.4.1

func (e *TestCaseRunQueuedEventV0_2_0) SetId(id string)

func (*TestCaseRunQueuedEventV0_2_0) SetSchemaUri added in v0.4.1

func (e *TestCaseRunQueuedEventV0_2_0) SetSchemaUri(schema string)

func (*TestCaseRunQueuedEventV0_2_0) SetSource added in v0.4.1

func (e *TestCaseRunQueuedEventV0_2_0) SetSource(source string)

func (*TestCaseRunQueuedEventV0_2_0) SetSubjectEnvironment added in v0.4.1

func (e *TestCaseRunQueuedEventV0_2_0) SetSubjectEnvironment(environment *Reference)

func (*TestCaseRunQueuedEventV0_2_0) SetSubjectId added in v0.4.1

func (e *TestCaseRunQueuedEventV0_2_0) SetSubjectId(subjectId string)

func (*TestCaseRunQueuedEventV0_2_0) SetSubjectSource added in v0.4.1

func (e *TestCaseRunQueuedEventV0_2_0) SetSubjectSource(subjectSource string)

func (*TestCaseRunQueuedEventV0_2_0) SetSubjectTestCase added in v0.4.1

func (*TestCaseRunQueuedEventV0_2_0) SetSubjectTestSuiteRun added in v0.4.1

func (e *TestCaseRunQueuedEventV0_2_0) SetSubjectTestSuiteRun(testSuiteRun *Reference)

func (*TestCaseRunQueuedEventV0_2_0) SetSubjectTrigger added in v0.4.1

func (*TestCaseRunQueuedEventV0_2_0) SetTimestamp added in v0.4.1

func (e *TestCaseRunQueuedEventV0_2_0) SetTimestamp(timestamp time.Time)

type TestCaseRunQueuedSubjectContentTestCaseV0_1_0 added in v0.4.1

type TestCaseRunQueuedSubjectContentTestCaseV0_1_0 struct {
	Id string `json:"id"`

	Name string `json:"name,omitempty"`

	Type string `json:"type,omitempty"`

	Uri string `json:"uri,omitempty"`

	Version string `json:"version,omitempty"`
}

TestCaseRunQueuedSubjectContentTestCaseV0_1_0 holds the content of a TestCase field in the content

type TestCaseRunQueuedSubjectContentTestCaseV0_2_0 added in v0.4.1

type TestCaseRunQueuedSubjectContentTestCaseV0_2_0 struct {
	Id string `json:"id"`

	Name string `json:"name,omitempty"`

	Type string `json:"type,omitempty"`

	Uri string `json:"uri,omitempty"`

	Version string `json:"version,omitempty"`
}

TestCaseRunQueuedSubjectContentTestCaseV0_2_0 holds the content of a TestCase field in the content

type TestCaseRunQueuedSubjectContentTriggerV0_1_0 added in v0.4.1

type TestCaseRunQueuedSubjectContentTriggerV0_1_0 struct {
	Type string `json:"type,omitempty"`

	Uri string `json:"uri,omitempty"`
}

TestCaseRunQueuedSubjectContentTriggerV0_1_0 holds the content of a Trigger field in the content

type TestCaseRunQueuedSubjectContentTriggerV0_2_0 added in v0.4.1

type TestCaseRunQueuedSubjectContentTriggerV0_2_0 struct {
	Type string `json:"type,omitempty"`

	Uri string `json:"uri,omitempty"`
}

TestCaseRunQueuedSubjectContentTriggerV0_2_0 holds the content of a Trigger field in the content

type TestCaseRunQueuedSubjectContentV0_1_0 added in v0.4.1

type TestCaseRunQueuedSubjectContentV0_1_0 struct {
	Environment *Reference `json:"environment"`

	TestCase *TestCaseRunQueuedSubjectContentTestCaseV0_1_0 `json:"testCase,omitempty"`

	TestSuiteRun *Reference `json:"testSuiteRun,omitempty"`

	Trigger *TestCaseRunQueuedSubjectContentTriggerV0_1_0 `json:"trigger,omitempty"`
}

type TestCaseRunQueuedSubjectContentV0_2_0 added in v0.4.1

type TestCaseRunQueuedSubjectContentV0_2_0 struct {
	Environment *Reference `json:"environment"`

	TestCase *TestCaseRunQueuedSubjectContentTestCaseV0_2_0 `json:"testCase,omitempty"`

	TestSuiteRun *Reference `json:"testSuiteRun,omitempty"`

	Trigger *TestCaseRunQueuedSubjectContentTriggerV0_2_0 `json:"trigger,omitempty"`
}

type TestCaseRunQueuedSubjectV0_1_0 added in v0.4.1

type TestCaseRunQueuedSubjectV0_1_0 struct {
	SubjectBase
	Content TestCaseRunQueuedSubjectContentV0_1_0 `json:"content"`
}

func (TestCaseRunQueuedSubjectV0_1_0) GetSubjectType added in v0.4.1

func (sc TestCaseRunQueuedSubjectV0_1_0) GetSubjectType() SubjectType

type TestCaseRunQueuedSubjectV0_2_0 added in v0.4.1

type TestCaseRunQueuedSubjectV0_2_0 struct {
	SubjectBase
	Content TestCaseRunQueuedSubjectContentV0_2_0 `json:"content"`
}

func (TestCaseRunQueuedSubjectV0_2_0) GetSubjectType added in v0.4.1

func (sc TestCaseRunQueuedSubjectV0_2_0) GetSubjectType() SubjectType

type TestCaseRunSkippedEventV0_1_0 added in v0.4.1

type TestCaseRunSkippedEventV0_1_0 struct {
	Context ContextV04                      `json:"context"`
	Subject TestCaseRunSkippedSubjectV0_1_0 `json:"subject"`
	CDEventCustomData
}

func NewTestCaseRunSkippedEventV0_1_0 added in v0.4.1

func NewTestCaseRunSkippedEventV0_1_0(specVersion string) (*TestCaseRunSkippedEventV0_1_0, error)

New creates a new TestCaseRunSkippedEventV0_1_0

func (TestCaseRunSkippedEventV0_1_0) GetChainId added in v0.4.1

func (e TestCaseRunSkippedEventV0_1_0) GetChainId() string

func (TestCaseRunSkippedEventV0_1_0) GetCustomData added in v0.4.1

func (e TestCaseRunSkippedEventV0_1_0) GetCustomData() (interface{}, error)

func (TestCaseRunSkippedEventV0_1_0) GetCustomDataAs added in v0.4.1

func (e TestCaseRunSkippedEventV0_1_0) GetCustomDataAs(receiver interface{}) error

func (TestCaseRunSkippedEventV0_1_0) GetCustomDataContentType added in v0.4.1

func (e TestCaseRunSkippedEventV0_1_0) GetCustomDataContentType() string

func (TestCaseRunSkippedEventV0_1_0) GetCustomDataRaw added in v0.4.1

func (e TestCaseRunSkippedEventV0_1_0) GetCustomDataRaw() ([]byte, error)

func (TestCaseRunSkippedEventV0_1_0) GetCustomSchema added in v0.4.1

func (e TestCaseRunSkippedEventV0_1_0) GetCustomSchema() (*jsonschema.Schema, error)

GetCustomSchema looks up the SchemaUri, if any is defined. If none is defined, it returns nil. If it's defined and cannot be found, it returns an error.

func (TestCaseRunSkippedEventV0_1_0) GetId added in v0.4.1

func (TestCaseRunSkippedEventV0_1_0) GetSchema added in v0.4.1

func (TestCaseRunSkippedEventV0_1_0) GetSchemaUri added in v0.4.1

func (e TestCaseRunSkippedEventV0_1_0) GetSchemaUri() string

func (TestCaseRunSkippedEventV0_1_0) GetSource added in v0.4.1

func (e TestCaseRunSkippedEventV0_1_0) GetSource() string

func (TestCaseRunSkippedEventV0_1_0) GetSubject added in v0.4.1

func (e TestCaseRunSkippedEventV0_1_0) GetSubject() Subject

func (TestCaseRunSkippedEventV0_1_0) GetSubjectContent added in v0.4.1

func (e TestCaseRunSkippedEventV0_1_0) GetSubjectContent() interface{}

func (TestCaseRunSkippedEventV0_1_0) GetSubjectId added in v0.4.1

func (e TestCaseRunSkippedEventV0_1_0) GetSubjectId() string

func (TestCaseRunSkippedEventV0_1_0) GetSubjectSource added in v0.4.1

func (e TestCaseRunSkippedEventV0_1_0) GetSubjectSource() string

func (TestCaseRunSkippedEventV0_1_0) GetTimestamp added in v0.4.1

func (e TestCaseRunSkippedEventV0_1_0) GetTimestamp() time.Time

func (TestCaseRunSkippedEventV0_1_0) GetType added in v0.4.1

func (TestCaseRunSkippedEventV0_1_0) GetVersion added in v0.4.1

func (e TestCaseRunSkippedEventV0_1_0) GetVersion() string

func (*TestCaseRunSkippedEventV0_1_0) SetChainId added in v0.4.1

func (e *TestCaseRunSkippedEventV0_1_0) SetChainId(chainId string)

func (*TestCaseRunSkippedEventV0_1_0) SetCustomData added in v0.4.1

func (e *TestCaseRunSkippedEventV0_1_0) SetCustomData(contentType string, data interface{}) error

func (*TestCaseRunSkippedEventV0_1_0) SetId added in v0.4.1

func (*TestCaseRunSkippedEventV0_1_0) SetSchemaUri added in v0.4.1

func (e *TestCaseRunSkippedEventV0_1_0) SetSchemaUri(schema string)

func (*TestCaseRunSkippedEventV0_1_0) SetSource added in v0.4.1

func (e *TestCaseRunSkippedEventV0_1_0) SetSource(source string)

func (*TestCaseRunSkippedEventV0_1_0) SetSubjectEnvironment added in v0.4.1

func (e *TestCaseRunSkippedEventV0_1_0) SetSubjectEnvironment(environment *Reference)

func (*TestCaseRunSkippedEventV0_1_0) SetSubjectId added in v0.4.1

func (e *TestCaseRunSkippedEventV0_1_0) SetSubjectId(subjectId string)

func (*TestCaseRunSkippedEventV0_1_0) SetSubjectReason added in v0.4.1

func (e *TestCaseRunSkippedEventV0_1_0) SetSubjectReason(reason string)

func (*TestCaseRunSkippedEventV0_1_0) SetSubjectSource added in v0.4.1

func (e *TestCaseRunSkippedEventV0_1_0) SetSubjectSource(subjectSource string)

func (*TestCaseRunSkippedEventV0_1_0) SetSubjectTestCase added in v0.4.1

func (*TestCaseRunSkippedEventV0_1_0) SetSubjectTestSuiteRun added in v0.4.1

func (e *TestCaseRunSkippedEventV0_1_0) SetSubjectTestSuiteRun(testSuiteRun *Reference)

func (*TestCaseRunSkippedEventV0_1_0) SetTimestamp added in v0.4.1

func (e *TestCaseRunSkippedEventV0_1_0) SetTimestamp(timestamp time.Time)

type TestCaseRunSkippedSubjectContentTestCaseV0_1_0 added in v0.4.1

type TestCaseRunSkippedSubjectContentTestCaseV0_1_0 struct {
	Id string `json:"id"`

	Name string `json:"name,omitempty"`

	Type string `json:"type,omitempty"`

	Uri string `json:"uri,omitempty"`

	Version string `json:"version,omitempty"`
}

TestCaseRunSkippedSubjectContentTestCaseV0_1_0 holds the content of a TestCase field in the content

type TestCaseRunSkippedSubjectContentV0_1_0 added in v0.4.1

type TestCaseRunSkippedSubjectContentV0_1_0 struct {
	Environment *Reference `json:"environment,omitempty"`

	Reason string `json:"reason,omitempty"`

	TestCase *TestCaseRunSkippedSubjectContentTestCaseV0_1_0 `json:"testCase,omitempty"`

	TestSuiteRun *Reference `json:"testSuiteRun,omitempty"`
}

type TestCaseRunSkippedSubjectV0_1_0 added in v0.4.1

type TestCaseRunSkippedSubjectV0_1_0 struct {
	SubjectBase
	Content TestCaseRunSkippedSubjectContentV0_1_0 `json:"content"`
}

func (TestCaseRunSkippedSubjectV0_1_0) GetSubjectType added in v0.4.1

func (sc TestCaseRunSkippedSubjectV0_1_0) GetSubjectType() SubjectType

type TestCaseRunStartedEventV0_1_0 added in v0.4.1

type TestCaseRunStartedEventV0_1_0 struct {
	Context Context                         `json:"context"`
	Subject TestCaseRunStartedSubjectV0_1_0 `json:"subject"`
	CDEventCustomData
}

func NewTestCaseRunStartedEventV0_1_0 added in v0.4.1

func NewTestCaseRunStartedEventV0_1_0(specVersion string) (*TestCaseRunStartedEventV0_1_0, error)

New creates a new TestCaseRunStartedEventV0_1_0

func (TestCaseRunStartedEventV0_1_0) GetCustomData added in v0.4.1

func (e TestCaseRunStartedEventV0_1_0) GetCustomData() (interface{}, error)

func (TestCaseRunStartedEventV0_1_0) GetCustomDataAs added in v0.4.1

func (e TestCaseRunStartedEventV0_1_0) GetCustomDataAs(receiver interface{}) error

func (TestCaseRunStartedEventV0_1_0) GetCustomDataContentType added in v0.4.1

func (e TestCaseRunStartedEventV0_1_0) GetCustomDataContentType() string

func (TestCaseRunStartedEventV0_1_0) GetCustomDataRaw added in v0.4.1

func (e TestCaseRunStartedEventV0_1_0) GetCustomDataRaw() ([]byte, error)

func (TestCaseRunStartedEventV0_1_0) GetId added in v0.4.1

func (TestCaseRunStartedEventV0_1_0) GetSchema added in v0.4.1

func (TestCaseRunStartedEventV0_1_0) GetSource added in v0.4.1

func (e TestCaseRunStartedEventV0_1_0) GetSource() string

func (TestCaseRunStartedEventV0_1_0) GetSubject added in v0.4.1

func (e TestCaseRunStartedEventV0_1_0) GetSubject() Subject

func (TestCaseRunStartedEventV0_1_0) GetSubjectContent added in v0.4.1

func (e TestCaseRunStartedEventV0_1_0) GetSubjectContent() interface{}

func (TestCaseRunStartedEventV0_1_0) GetSubjectId added in v0.4.1

func (e TestCaseRunStartedEventV0_1_0) GetSubjectId() string

func (TestCaseRunStartedEventV0_1_0) GetSubjectSource added in v0.4.1

func (e TestCaseRunStartedEventV0_1_0) GetSubjectSource() string

func (TestCaseRunStartedEventV0_1_0) GetTimestamp added in v0.4.1

func (e TestCaseRunStartedEventV0_1_0) GetTimestamp() time.Time

func (TestCaseRunStartedEventV0_1_0) GetType added in v0.4.1

func (TestCaseRunStartedEventV0_1_0) GetVersion added in v0.4.1

func (e TestCaseRunStartedEventV0_1_0) GetVersion() string

func (*TestCaseRunStartedEventV0_1_0) SetCustomData added in v0.4.1

func (e *TestCaseRunStartedEventV0_1_0) SetCustomData(contentType string, data interface{}) error

func (*TestCaseRunStartedEventV0_1_0) SetId added in v0.4.1

func (*TestCaseRunStartedEventV0_1_0) SetSource added in v0.4.1

func (e *TestCaseRunStartedEventV0_1_0) SetSource(source string)

func (*TestCaseRunStartedEventV0_1_0) SetSubjectEnvironment added in v0.4.1

func (e *TestCaseRunStartedEventV0_1_0) SetSubjectEnvironment(environment *Reference)

func (*TestCaseRunStartedEventV0_1_0) SetSubjectId added in v0.4.1

func (e *TestCaseRunStartedEventV0_1_0) SetSubjectId(subjectId string)

func (*TestCaseRunStartedEventV0_1_0) SetSubjectSource added in v0.4.1

func (e *TestCaseRunStartedEventV0_1_0) SetSubjectSource(subjectSource string)

func (*TestCaseRunStartedEventV0_1_0) SetSubjectTestCase added in v0.4.1

func (*TestCaseRunStartedEventV0_1_0) SetSubjectTestSuiteRun added in v0.4.1

func (e *TestCaseRunStartedEventV0_1_0) SetSubjectTestSuiteRun(testSuiteRun *Reference)

func (*TestCaseRunStartedEventV0_1_0) SetSubjectTrigger added in v0.4.1

func (*TestCaseRunStartedEventV0_1_0) SetTimestamp added in v0.4.1

func (e *TestCaseRunStartedEventV0_1_0) SetTimestamp(timestamp time.Time)

type TestCaseRunStartedEventV0_2_0 added in v0.4.1

type TestCaseRunStartedEventV0_2_0 struct {
	Context ContextV04                      `json:"context"`
	Subject TestCaseRunStartedSubjectV0_2_0 `json:"subject"`
	CDEventCustomData
}

func NewTestCaseRunStartedEventV0_2_0 added in v0.4.1

func NewTestCaseRunStartedEventV0_2_0(specVersion string) (*TestCaseRunStartedEventV0_2_0, error)

New creates a new TestCaseRunStartedEventV0_2_0

func (TestCaseRunStartedEventV0_2_0) GetChainId added in v0.4.1

func (e TestCaseRunStartedEventV0_2_0) GetChainId() string

func (TestCaseRunStartedEventV0_2_0) GetCustomData added in v0.4.1

func (e TestCaseRunStartedEventV0_2_0) GetCustomData() (interface{}, error)

func (TestCaseRunStartedEventV0_2_0) GetCustomDataAs added in v0.4.1

func (e TestCaseRunStartedEventV0_2_0) GetCustomDataAs(receiver interface{}) error

func (TestCaseRunStartedEventV0_2_0) GetCustomDataContentType added in v0.4.1

func (e TestCaseRunStartedEventV0_2_0) GetCustomDataContentType() string

func (TestCaseRunStartedEventV0_2_0) GetCustomDataRaw added in v0.4.1

func (e TestCaseRunStartedEventV0_2_0) GetCustomDataRaw() ([]byte, error)

func (TestCaseRunStartedEventV0_2_0) GetCustomSchema added in v0.4.1

func (e TestCaseRunStartedEventV0_2_0) GetCustomSchema() (*jsonschema.Schema, error)

GetCustomSchema looks up the SchemaUri, if any is defined. If none is defined, it returns nil. If it's defined and cannot be found, it returns an error.

func (TestCaseRunStartedEventV0_2_0) GetId added in v0.4.1

func (TestCaseRunStartedEventV0_2_0) GetSchema added in v0.4.1

func (TestCaseRunStartedEventV0_2_0) GetSchemaUri added in v0.4.1

func (e TestCaseRunStartedEventV0_2_0) GetSchemaUri() string

func (TestCaseRunStartedEventV0_2_0) GetSource added in v0.4.1

func (e TestCaseRunStartedEventV0_2_0) GetSource() string

func (TestCaseRunStartedEventV0_2_0) GetSubject added in v0.4.1

func (e TestCaseRunStartedEventV0_2_0) GetSubject() Subject

func (TestCaseRunStartedEventV0_2_0) GetSubjectContent added in v0.4.1

func (e TestCaseRunStartedEventV0_2_0) GetSubjectContent() interface{}

func (TestCaseRunStartedEventV0_2_0) GetSubjectId added in v0.4.1

func (e TestCaseRunStartedEventV0_2_0) GetSubjectId() string

func (TestCaseRunStartedEventV0_2_0) GetSubjectSource added in v0.4.1

func (e TestCaseRunStartedEventV0_2_0) GetSubjectSource() string

func (TestCaseRunStartedEventV0_2_0) GetTimestamp added in v0.4.1

func (e TestCaseRunStartedEventV0_2_0) GetTimestamp() time.Time

func (TestCaseRunStartedEventV0_2_0) GetType added in v0.4.1

func (TestCaseRunStartedEventV0_2_0) GetVersion added in v0.4.1

func (e TestCaseRunStartedEventV0_2_0) GetVersion() string

func (*TestCaseRunStartedEventV0_2_0) SetChainId added in v0.4.1

func (e *TestCaseRunStartedEventV0_2_0) SetChainId(chainId string)

func (*TestCaseRunStartedEventV0_2_0) SetCustomData added in v0.4.1

func (e *TestCaseRunStartedEventV0_2_0) SetCustomData(contentType string, data interface{}) error

func (*TestCaseRunStartedEventV0_2_0) SetId added in v0.4.1

func (*TestCaseRunStartedEventV0_2_0) SetSchemaUri added in v0.4.1

func (e *TestCaseRunStartedEventV0_2_0) SetSchemaUri(schema string)

func (*TestCaseRunStartedEventV0_2_0) SetSource added in v0.4.1

func (e *TestCaseRunStartedEventV0_2_0) SetSource(source string)

func (*TestCaseRunStartedEventV0_2_0) SetSubjectEnvironment added in v0.4.1

func (e *TestCaseRunStartedEventV0_2_0) SetSubjectEnvironment(environment *Reference)

func (*TestCaseRunStartedEventV0_2_0) SetSubjectId added in v0.4.1

func (e *TestCaseRunStartedEventV0_2_0) SetSubjectId(subjectId string)

func (*TestCaseRunStartedEventV0_2_0) SetSubjectSource added in v0.4.1

func (e *TestCaseRunStartedEventV0_2_0) SetSubjectSource(subjectSource string)

func (*TestCaseRunStartedEventV0_2_0) SetSubjectTestCase added in v0.4.1

func (*TestCaseRunStartedEventV0_2_0) SetSubjectTestSuiteRun added in v0.4.1

func (e *TestCaseRunStartedEventV0_2_0) SetSubjectTestSuiteRun(testSuiteRun *Reference)

func (*TestCaseRunStartedEventV0_2_0) SetSubjectTrigger added in v0.4.1

func (*TestCaseRunStartedEventV0_2_0) SetTimestamp added in v0.4.1

func (e *TestCaseRunStartedEventV0_2_0) SetTimestamp(timestamp time.Time)

type TestCaseRunStartedSubjectContentTestCaseV0_1_0 added in v0.4.1

type TestCaseRunStartedSubjectContentTestCaseV0_1_0 struct {
	Id string `json:"id"`

	Name string `json:"name,omitempty"`

	Type string `json:"type,omitempty"`

	Uri string `json:"uri,omitempty"`

	Version string `json:"version,omitempty"`
}

TestCaseRunStartedSubjectContentTestCaseV0_1_0 holds the content of a TestCase field in the content

type TestCaseRunStartedSubjectContentTestCaseV0_2_0 added in v0.4.1

type TestCaseRunStartedSubjectContentTestCaseV0_2_0 struct {
	Id string `json:"id"`

	Name string `json:"name,omitempty"`

	Type string `json:"type,omitempty"`

	Uri string `json:"uri,omitempty"`

	Version string `json:"version,omitempty"`
}

TestCaseRunStartedSubjectContentTestCaseV0_2_0 holds the content of a TestCase field in the content

type TestCaseRunStartedSubjectContentTriggerV0_1_0 added in v0.4.1

type TestCaseRunStartedSubjectContentTriggerV0_1_0 struct {
	Type string `json:"type,omitempty"`

	Uri string `json:"uri,omitempty"`
}

TestCaseRunStartedSubjectContentTriggerV0_1_0 holds the content of a Trigger field in the content

type TestCaseRunStartedSubjectContentTriggerV0_2_0 added in v0.4.1

type TestCaseRunStartedSubjectContentTriggerV0_2_0 struct {
	Type string `json:"type,omitempty"`

	Uri string `json:"uri,omitempty"`
}

TestCaseRunStartedSubjectContentTriggerV0_2_0 holds the content of a Trigger field in the content

type TestCaseRunStartedSubjectContentV0_1_0 added in v0.4.1

type TestCaseRunStartedSubjectContentV0_1_0 struct {
	Environment *Reference `json:"environment"`

	TestCase *TestCaseRunStartedSubjectContentTestCaseV0_1_0 `json:"testCase,omitempty"`

	TestSuiteRun *Reference `json:"testSuiteRun,omitempty"`

	Trigger *TestCaseRunStartedSubjectContentTriggerV0_1_0 `json:"trigger,omitempty"`
}

type TestCaseRunStartedSubjectContentV0_2_0 added in v0.4.1

type TestCaseRunStartedSubjectContentV0_2_0 struct {
	Environment *Reference `json:"environment"`

	TestCase *TestCaseRunStartedSubjectContentTestCaseV0_2_0 `json:"testCase,omitempty"`

	TestSuiteRun *Reference `json:"testSuiteRun,omitempty"`

	Trigger *TestCaseRunStartedSubjectContentTriggerV0_2_0 `json:"trigger,omitempty"`
}

type TestCaseRunStartedSubjectV0_1_0 added in v0.4.1

type TestCaseRunStartedSubjectV0_1_0 struct {
	SubjectBase
	Content TestCaseRunStartedSubjectContentV0_1_0 `json:"content"`
}

func (TestCaseRunStartedSubjectV0_1_0) GetSubjectType added in v0.4.1

func (sc TestCaseRunStartedSubjectV0_1_0) GetSubjectType() SubjectType

type TestCaseRunStartedSubjectV0_2_0 added in v0.4.1

type TestCaseRunStartedSubjectV0_2_0 struct {
	SubjectBase
	Content TestCaseRunStartedSubjectContentV0_2_0 `json:"content"`
}

func (TestCaseRunStartedSubjectV0_2_0) GetSubjectType added in v0.4.1

func (sc TestCaseRunStartedSubjectV0_2_0) GetSubjectType() SubjectType

type TestOutputPublishedEventV0_1_0 added in v0.4.1

type TestOutputPublishedEventV0_1_0 struct {
	Context Context                          `json:"context"`
	Subject TestOutputPublishedSubjectV0_1_0 `json:"subject"`
	CDEventCustomData
}

func NewTestOutputPublishedEventV0_1_0 added in v0.4.1

func NewTestOutputPublishedEventV0_1_0(specVersion string) (*TestOutputPublishedEventV0_1_0, error)

New creates a new TestOutputPublishedEventV0_1_0

func (TestOutputPublishedEventV0_1_0) GetCustomData added in v0.4.1

func (e TestOutputPublishedEventV0_1_0) GetCustomData() (interface{}, error)

func (TestOutputPublishedEventV0_1_0) GetCustomDataAs added in v0.4.1

func (e TestOutputPublishedEventV0_1_0) GetCustomDataAs(receiver interface{}) error

func (TestOutputPublishedEventV0_1_0) GetCustomDataContentType added in v0.4.1

func (e TestOutputPublishedEventV0_1_0) GetCustomDataContentType() string

func (TestOutputPublishedEventV0_1_0) GetCustomDataRaw added in v0.4.1

func (e TestOutputPublishedEventV0_1_0) GetCustomDataRaw() ([]byte, error)

func (TestOutputPublishedEventV0_1_0) GetId added in v0.4.1

func (TestOutputPublishedEventV0_1_0) GetSchema added in v0.4.1

func (TestOutputPublishedEventV0_1_0) GetSource added in v0.4.1

func (e TestOutputPublishedEventV0_1_0) GetSource() string

func (TestOutputPublishedEventV0_1_0) GetSubject added in v0.4.1

func (e TestOutputPublishedEventV0_1_0) GetSubject() Subject

func (TestOutputPublishedEventV0_1_0) GetSubjectContent added in v0.4.1

func (e TestOutputPublishedEventV0_1_0) GetSubjectContent() interface{}

func (TestOutputPublishedEventV0_1_0) GetSubjectId added in v0.4.1

func (e TestOutputPublishedEventV0_1_0) GetSubjectId() string

func (TestOutputPublishedEventV0_1_0) GetSubjectSource added in v0.4.1

func (e TestOutputPublishedEventV0_1_0) GetSubjectSource() string

func (TestOutputPublishedEventV0_1_0) GetTimestamp added in v0.4.1

func (e TestOutputPublishedEventV0_1_0) GetTimestamp() time.Time

func (TestOutputPublishedEventV0_1_0) GetType added in v0.4.1

func (TestOutputPublishedEventV0_1_0) GetVersion added in v0.4.1

func (e TestOutputPublishedEventV0_1_0) GetVersion() string

func (*TestOutputPublishedEventV0_1_0) SetCustomData added in v0.4.1

func (e *TestOutputPublishedEventV0_1_0) SetCustomData(contentType string, data interface{}) error

func (*TestOutputPublishedEventV0_1_0) SetId added in v0.4.1

func (*TestOutputPublishedEventV0_1_0) SetSource added in v0.4.1

func (e *TestOutputPublishedEventV0_1_0) SetSource(source string)

func (*TestOutputPublishedEventV0_1_0) SetSubjectFormat added in v0.4.1

func (e *TestOutputPublishedEventV0_1_0) SetSubjectFormat(format string)

func (*TestOutputPublishedEventV0_1_0) SetSubjectId added in v0.4.1

func (e *TestOutputPublishedEventV0_1_0) SetSubjectId(subjectId string)

func (*TestOutputPublishedEventV0_1_0) SetSubjectOutputType added in v0.4.1

func (e *TestOutputPublishedEventV0_1_0) SetSubjectOutputType(outputType string)

func (*TestOutputPublishedEventV0_1_0) SetSubjectSource added in v0.4.1

func (e *TestOutputPublishedEventV0_1_0) SetSubjectSource(subjectSource string)

func (*TestOutputPublishedEventV0_1_0) SetSubjectTestCaseRun added in v0.4.1

func (e *TestOutputPublishedEventV0_1_0) SetSubjectTestCaseRun(testCaseRun *Reference)

func (*TestOutputPublishedEventV0_1_0) SetSubjectUri added in v0.4.1

func (e *TestOutputPublishedEventV0_1_0) SetSubjectUri(uri string)

func (*TestOutputPublishedEventV0_1_0) SetTimestamp added in v0.4.1

func (e *TestOutputPublishedEventV0_1_0) SetTimestamp(timestamp time.Time)

type TestOutputPublishedEventV0_2_0 added in v0.4.1

type TestOutputPublishedEventV0_2_0 struct {
	Context ContextV04                       `json:"context"`
	Subject TestOutputPublishedSubjectV0_2_0 `json:"subject"`
	CDEventCustomData
}

func NewTestOutputPublishedEventV0_2_0 added in v0.4.1

func NewTestOutputPublishedEventV0_2_0(specVersion string) (*TestOutputPublishedEventV0_2_0, error)

New creates a new TestOutputPublishedEventV0_2_0

func (TestOutputPublishedEventV0_2_0) GetChainId added in v0.4.1

func (e TestOutputPublishedEventV0_2_0) GetChainId() string

func (TestOutputPublishedEventV0_2_0) GetCustomData added in v0.4.1

func (e TestOutputPublishedEventV0_2_0) GetCustomData() (interface{}, error)

func (TestOutputPublishedEventV0_2_0) GetCustomDataAs added in v0.4.1

func (e TestOutputPublishedEventV0_2_0) GetCustomDataAs(receiver interface{}) error

func (TestOutputPublishedEventV0_2_0) GetCustomDataContentType added in v0.4.1

func (e TestOutputPublishedEventV0_2_0) GetCustomDataContentType() string

func (TestOutputPublishedEventV0_2_0) GetCustomDataRaw added in v0.4.1

func (e TestOutputPublishedEventV0_2_0) GetCustomDataRaw() ([]byte, error)

func (TestOutputPublishedEventV0_2_0) GetCustomSchema added in v0.4.1

func (e TestOutputPublishedEventV0_2_0) GetCustomSchema() (*jsonschema.Schema, error)

GetCustomSchema looks up the SchemaUri, if any is defined. If none is defined, it returns nil. If it's defined and cannot be found, it returns an error.

func (TestOutputPublishedEventV0_2_0) GetId added in v0.4.1

func (TestOutputPublishedEventV0_2_0) GetSchema added in v0.4.1

func (TestOutputPublishedEventV0_2_0) GetSchemaUri added in v0.4.1

func (e TestOutputPublishedEventV0_2_0) GetSchemaUri() string

func (TestOutputPublishedEventV0_2_0) GetSource added in v0.4.1

func (e TestOutputPublishedEventV0_2_0) GetSource() string

func (TestOutputPublishedEventV0_2_0) GetSubject added in v0.4.1

func (e TestOutputPublishedEventV0_2_0) GetSubject() Subject

func (TestOutputPublishedEventV0_2_0) GetSubjectContent added in v0.4.1

func (e TestOutputPublishedEventV0_2_0) GetSubjectContent() interface{}

func (TestOutputPublishedEventV0_2_0) GetSubjectId added in v0.4.1

func (e TestOutputPublishedEventV0_2_0) GetSubjectId() string

func (TestOutputPublishedEventV0_2_0) GetSubjectSource added in v0.4.1

func (e TestOutputPublishedEventV0_2_0) GetSubjectSource() string

func (TestOutputPublishedEventV0_2_0) GetTimestamp added in v0.4.1

func (e TestOutputPublishedEventV0_2_0) GetTimestamp() time.Time

func (TestOutputPublishedEventV0_2_0) GetType added in v0.4.1

func (TestOutputPublishedEventV0_2_0) GetVersion added in v0.4.1

func (e TestOutputPublishedEventV0_2_0) GetVersion() string

func (*TestOutputPublishedEventV0_2_0) SetChainId added in v0.4.1

func (e *TestOutputPublishedEventV0_2_0) SetChainId(chainId string)

func (*TestOutputPublishedEventV0_2_0) SetCustomData added in v0.4.1

func (e *TestOutputPublishedEventV0_2_0) SetCustomData(contentType string, data interface{}) error

func (*TestOutputPublishedEventV0_2_0) SetId added in v0.4.1

func (*TestOutputPublishedEventV0_2_0) SetSchemaUri added in v0.4.1

func (e *TestOutputPublishedEventV0_2_0) SetSchemaUri(schema string)

func (*TestOutputPublishedEventV0_2_0) SetSource added in v0.4.1

func (e *TestOutputPublishedEventV0_2_0) SetSource(source string)

func (*TestOutputPublishedEventV0_2_0) SetSubjectFormat added in v0.4.1

func (e *TestOutputPublishedEventV0_2_0) SetSubjectFormat(format string)

func (*TestOutputPublishedEventV0_2_0) SetSubjectId added in v0.4.1

func (e *TestOutputPublishedEventV0_2_0) SetSubjectId(subjectId string)

func (*TestOutputPublishedEventV0_2_0) SetSubjectOutputType added in v0.4.1

func (e *TestOutputPublishedEventV0_2_0) SetSubjectOutputType(outputType string)

func (*TestOutputPublishedEventV0_2_0) SetSubjectSource added in v0.4.1

func (e *TestOutputPublishedEventV0_2_0) SetSubjectSource(subjectSource string)

func (*TestOutputPublishedEventV0_2_0) SetSubjectTestCaseRun added in v0.4.1

func (e *TestOutputPublishedEventV0_2_0) SetSubjectTestCaseRun(testCaseRun *Reference)

func (*TestOutputPublishedEventV0_2_0) SetSubjectUri added in v0.4.1

func (e *TestOutputPublishedEventV0_2_0) SetSubjectUri(uri string)

func (*TestOutputPublishedEventV0_2_0) SetTimestamp added in v0.4.1

func (e *TestOutputPublishedEventV0_2_0) SetTimestamp(timestamp time.Time)

type TestOutputPublishedSubjectContentV0_1_0 added in v0.4.1

type TestOutputPublishedSubjectContentV0_1_0 struct {
	Format string `json:"format"`

	OutputType string `json:"outputType"`

	TestCaseRun *Reference `json:"testCaseRun,omitempty"`

	Uri string `json:"uri,omitempty"`
}

type TestOutputPublishedSubjectContentV0_2_0 added in v0.4.1

type TestOutputPublishedSubjectContentV0_2_0 struct {
	Format string `json:"format"`

	OutputType string `json:"outputType"`

	TestCaseRun *Reference `json:"testCaseRun,omitempty"`

	Uri string `json:"uri,omitempty"`
}

type TestOutputPublishedSubjectV0_1_0 added in v0.4.1

type TestOutputPublishedSubjectV0_1_0 struct {
	SubjectBase
	Content TestOutputPublishedSubjectContentV0_1_0 `json:"content"`
}

func (TestOutputPublishedSubjectV0_1_0) GetSubjectType added in v0.4.1

func (sc TestOutputPublishedSubjectV0_1_0) GetSubjectType() SubjectType

type TestOutputPublishedSubjectV0_2_0 added in v0.4.1

type TestOutputPublishedSubjectV0_2_0 struct {
	SubjectBase
	Content TestOutputPublishedSubjectContentV0_2_0 `json:"content"`
}

func (TestOutputPublishedSubjectV0_2_0) GetSubjectType added in v0.4.1

func (sc TestOutputPublishedSubjectV0_2_0) GetSubjectType() SubjectType

type TestSuiteRunFinishedEventV0_1_0 added in v0.4.1

type TestSuiteRunFinishedEventV0_1_0 struct {
	Context Context                           `json:"context"`
	Subject TestSuiteRunFinishedSubjectV0_1_0 `json:"subject"`
	CDEventCustomData
}

func NewTestSuiteRunFinishedEventV0_1_0 added in v0.4.1

func NewTestSuiteRunFinishedEventV0_1_0(specVersion string) (*TestSuiteRunFinishedEventV0_1_0, error)

New creates a new TestSuiteRunFinishedEventV0_1_0

func (TestSuiteRunFinishedEventV0_1_0) GetCustomData added in v0.4.1

func (e TestSuiteRunFinishedEventV0_1_0) GetCustomData() (interface{}, error)

func (TestSuiteRunFinishedEventV0_1_0) GetCustomDataAs added in v0.4.1

func (e TestSuiteRunFinishedEventV0_1_0) GetCustomDataAs(receiver interface{}) error

func (TestSuiteRunFinishedEventV0_1_0) GetCustomDataContentType added in v0.4.1

func (e TestSuiteRunFinishedEventV0_1_0) GetCustomDataContentType() string

func (TestSuiteRunFinishedEventV0_1_0) GetCustomDataRaw added in v0.4.1

func (e TestSuiteRunFinishedEventV0_1_0) GetCustomDataRaw() ([]byte, error)

func (TestSuiteRunFinishedEventV0_1_0) GetId added in v0.4.1

func (TestSuiteRunFinishedEventV0_1_0) GetSchema added in v0.4.1

func (TestSuiteRunFinishedEventV0_1_0) GetSource added in v0.4.1

func (TestSuiteRunFinishedEventV0_1_0) GetSubject added in v0.4.1

func (TestSuiteRunFinishedEventV0_1_0) GetSubjectContent added in v0.4.1

func (e TestSuiteRunFinishedEventV0_1_0) GetSubjectContent() interface{}

func (TestSuiteRunFinishedEventV0_1_0) GetSubjectId added in v0.4.1

func (e TestSuiteRunFinishedEventV0_1_0) GetSubjectId() string

func (TestSuiteRunFinishedEventV0_1_0) GetSubjectSource added in v0.4.1

func (e TestSuiteRunFinishedEventV0_1_0) GetSubjectSource() string

func (TestSuiteRunFinishedEventV0_1_0) GetTimestamp added in v0.4.1

func (e TestSuiteRunFinishedEventV0_1_0) GetTimestamp() time.Time

func (TestSuiteRunFinishedEventV0_1_0) GetType added in v0.4.1

func (TestSuiteRunFinishedEventV0_1_0) GetVersion added in v0.4.1

func (e TestSuiteRunFinishedEventV0_1_0) GetVersion() string

func (*TestSuiteRunFinishedEventV0_1_0) SetCustomData added in v0.4.1

func (e *TestSuiteRunFinishedEventV0_1_0) SetCustomData(contentType string, data interface{}) error

func (*TestSuiteRunFinishedEventV0_1_0) SetId added in v0.4.1

func (*TestSuiteRunFinishedEventV0_1_0) SetSource added in v0.4.1

func (e *TestSuiteRunFinishedEventV0_1_0) SetSource(source string)

func (*TestSuiteRunFinishedEventV0_1_0) SetSubjectEnvironment added in v0.4.1

func (e *TestSuiteRunFinishedEventV0_1_0) SetSubjectEnvironment(environment *Reference)

func (*TestSuiteRunFinishedEventV0_1_0) SetSubjectId added in v0.4.1

func (e *TestSuiteRunFinishedEventV0_1_0) SetSubjectId(subjectId string)

func (*TestSuiteRunFinishedEventV0_1_0) SetSubjectOutcome added in v0.4.1

func (e *TestSuiteRunFinishedEventV0_1_0) SetSubjectOutcome(outcome string)

func (*TestSuiteRunFinishedEventV0_1_0) SetSubjectReason added in v0.4.1

func (e *TestSuiteRunFinishedEventV0_1_0) SetSubjectReason(reason string)

func (*TestSuiteRunFinishedEventV0_1_0) SetSubjectSeverity added in v0.4.1

func (e *TestSuiteRunFinishedEventV0_1_0) SetSubjectSeverity(severity string)

func (*TestSuiteRunFinishedEventV0_1_0) SetSubjectSource added in v0.4.1

func (e *TestSuiteRunFinishedEventV0_1_0) SetSubjectSource(subjectSource string)

func (*TestSuiteRunFinishedEventV0_1_0) SetSubjectTestSuite added in v0.4.1

func (*TestSuiteRunFinishedEventV0_1_0) SetTimestamp added in v0.4.1

func (e *TestSuiteRunFinishedEventV0_1_0) SetTimestamp(timestamp time.Time)

type TestSuiteRunFinishedEventV0_2_0 added in v0.4.1

type TestSuiteRunFinishedEventV0_2_0 struct {
	Context ContextV04                        `json:"context"`
	Subject TestSuiteRunFinishedSubjectV0_2_0 `json:"subject"`
	CDEventCustomData
}

func NewTestSuiteRunFinishedEventV0_2_0 added in v0.4.1

func NewTestSuiteRunFinishedEventV0_2_0(specVersion string) (*TestSuiteRunFinishedEventV0_2_0, error)

New creates a new TestSuiteRunFinishedEventV0_2_0

func (TestSuiteRunFinishedEventV0_2_0) GetChainId added in v0.4.1

func (e TestSuiteRunFinishedEventV0_2_0) GetChainId() string

func (TestSuiteRunFinishedEventV0_2_0) GetCustomData added in v0.4.1

func (e TestSuiteRunFinishedEventV0_2_0) GetCustomData() (interface{}, error)

func (TestSuiteRunFinishedEventV0_2_0) GetCustomDataAs added in v0.4.1

func (e TestSuiteRunFinishedEventV0_2_0) GetCustomDataAs(receiver interface{}) error

func (TestSuiteRunFinishedEventV0_2_0) GetCustomDataContentType added in v0.4.1

func (e TestSuiteRunFinishedEventV0_2_0) GetCustomDataContentType() string

func (TestSuiteRunFinishedEventV0_2_0) GetCustomDataRaw added in v0.4.1

func (e TestSuiteRunFinishedEventV0_2_0) GetCustomDataRaw() ([]byte, error)

func (TestSuiteRunFinishedEventV0_2_0) GetCustomSchema added in v0.4.1

func (e TestSuiteRunFinishedEventV0_2_0) GetCustomSchema() (*jsonschema.Schema, error)

GetCustomSchema looks up the SchemaUri, if any is defined. If none is defined, it returns nil. If it's defined and cannot be found, it returns an error.

func (TestSuiteRunFinishedEventV0_2_0) GetId added in v0.4.1

func (TestSuiteRunFinishedEventV0_2_0) GetSchema added in v0.4.1

func (TestSuiteRunFinishedEventV0_2_0) GetSchemaUri added in v0.4.1

func (e TestSuiteRunFinishedEventV0_2_0) GetSchemaUri() string

func (TestSuiteRunFinishedEventV0_2_0) GetSource added in v0.4.1

func (TestSuiteRunFinishedEventV0_2_0) GetSubject added in v0.4.1

func (TestSuiteRunFinishedEventV0_2_0) GetSubjectContent added in v0.4.1

func (e TestSuiteRunFinishedEventV0_2_0) GetSubjectContent() interface{}

func (TestSuiteRunFinishedEventV0_2_0) GetSubjectId added in v0.4.1

func (e TestSuiteRunFinishedEventV0_2_0) GetSubjectId() string

func (TestSuiteRunFinishedEventV0_2_0) GetSubjectSource added in v0.4.1

func (e TestSuiteRunFinishedEventV0_2_0) GetSubjectSource() string

func (TestSuiteRunFinishedEventV0_2_0) GetTimestamp added in v0.4.1

func (e TestSuiteRunFinishedEventV0_2_0) GetTimestamp() time.Time

func (TestSuiteRunFinishedEventV0_2_0) GetType added in v0.4.1

func (TestSuiteRunFinishedEventV0_2_0) GetVersion added in v0.4.1

func (e TestSuiteRunFinishedEventV0_2_0) GetVersion() string

func (*TestSuiteRunFinishedEventV0_2_0) SetChainId added in v0.4.1

func (e *TestSuiteRunFinishedEventV0_2_0) SetChainId(chainId string)

func (*TestSuiteRunFinishedEventV0_2_0) SetCustomData added in v0.4.1

func (e *TestSuiteRunFinishedEventV0_2_0) SetCustomData(contentType string, data interface{}) error

func (*TestSuiteRunFinishedEventV0_2_0) SetId added in v0.4.1

func (*TestSuiteRunFinishedEventV0_2_0) SetSchemaUri added in v0.4.1

func (e *TestSuiteRunFinishedEventV0_2_0) SetSchemaUri(schema string)

func (*TestSuiteRunFinishedEventV0_2_0) SetSource added in v0.4.1

func (e *TestSuiteRunFinishedEventV0_2_0) SetSource(source string)

func (*TestSuiteRunFinishedEventV0_2_0) SetSubjectEnvironment added in v0.4.1

func (e *TestSuiteRunFinishedEventV0_2_0) SetSubjectEnvironment(environment *Reference)

func (*TestSuiteRunFinishedEventV0_2_0) SetSubjectId added in v0.4.1

func (e *TestSuiteRunFinishedEventV0_2_0) SetSubjectId(subjectId string)

func (*TestSuiteRunFinishedEventV0_2_0) SetSubjectOutcome added in v0.4.1

func (e *TestSuiteRunFinishedEventV0_2_0) SetSubjectOutcome(outcome string)

func (*TestSuiteRunFinishedEventV0_2_0) SetSubjectReason added in v0.4.1

func (e *TestSuiteRunFinishedEventV0_2_0) SetSubjectReason(reason string)

func (*TestSuiteRunFinishedEventV0_2_0) SetSubjectSeverity added in v0.4.1

func (e *TestSuiteRunFinishedEventV0_2_0) SetSubjectSeverity(severity string)

func (*TestSuiteRunFinishedEventV0_2_0) SetSubjectSource added in v0.4.1

func (e *TestSuiteRunFinishedEventV0_2_0) SetSubjectSource(subjectSource string)

func (*TestSuiteRunFinishedEventV0_2_0) SetSubjectTestSuite added in v0.4.1

func (*TestSuiteRunFinishedEventV0_2_0) SetTimestamp added in v0.4.1

func (e *TestSuiteRunFinishedEventV0_2_0) SetTimestamp(timestamp time.Time)

type TestSuiteRunFinishedSubjectContentTestSuiteV0_1_0 added in v0.4.1

type TestSuiteRunFinishedSubjectContentTestSuiteV0_1_0 struct {
	Id string `json:"id"`

	Name string `json:"name,omitempty"`

	Uri string `json:"uri,omitempty"`

	Version string `json:"version,omitempty"`
}

TestSuiteRunFinishedSubjectContentTestSuiteV0_1_0 holds the content of a TestSuite field in the content

type TestSuiteRunFinishedSubjectContentTestSuiteV0_2_0 added in v0.4.1

type TestSuiteRunFinishedSubjectContentTestSuiteV0_2_0 struct {
	Id string `json:"id"`

	Name string `json:"name,omitempty"`

	Uri string `json:"uri,omitempty"`

	Version string `json:"version,omitempty"`
}

TestSuiteRunFinishedSubjectContentTestSuiteV0_2_0 holds the content of a TestSuite field in the content

type TestSuiteRunFinishedSubjectContentV0_1_0 added in v0.4.1

type TestSuiteRunFinishedSubjectContentV0_1_0 struct {
	Environment *Reference `json:"environment"`

	Outcome string `json:"outcome"`

	Reason string `json:"reason,omitempty"`

	Severity string `json:"severity,omitempty"`

	TestSuite *TestSuiteRunFinishedSubjectContentTestSuiteV0_1_0 `json:"testSuite,omitempty"`
}

type TestSuiteRunFinishedSubjectContentV0_2_0 added in v0.4.1

type TestSuiteRunFinishedSubjectContentV0_2_0 struct {
	Environment *Reference `json:"environment"`

	Outcome string `json:"outcome"`

	Reason string `json:"reason,omitempty"`

	Severity string `json:"severity,omitempty"`

	TestSuite *TestSuiteRunFinishedSubjectContentTestSuiteV0_2_0 `json:"testSuite,omitempty"`
}

type TestSuiteRunFinishedSubjectV0_1_0 added in v0.4.1

type TestSuiteRunFinishedSubjectV0_1_0 struct {
	SubjectBase
	Content TestSuiteRunFinishedSubjectContentV0_1_0 `json:"content"`
}

func (TestSuiteRunFinishedSubjectV0_1_0) GetSubjectType added in v0.4.1

func (sc TestSuiteRunFinishedSubjectV0_1_0) GetSubjectType() SubjectType

type TestSuiteRunFinishedSubjectV0_2_0 added in v0.4.1

type TestSuiteRunFinishedSubjectV0_2_0 struct {
	SubjectBase
	Content TestSuiteRunFinishedSubjectContentV0_2_0 `json:"content"`
}

func (TestSuiteRunFinishedSubjectV0_2_0) GetSubjectType added in v0.4.1

func (sc TestSuiteRunFinishedSubjectV0_2_0) GetSubjectType() SubjectType

type TestSuiteRunQueuedEventV0_1_0 added in v0.4.1

type TestSuiteRunQueuedEventV0_1_0 struct {
	Context Context                         `json:"context"`
	Subject TestSuiteRunQueuedSubjectV0_1_0 `json:"subject"`
	CDEventCustomData
}

func NewTestSuiteRunQueuedEventV0_1_0 added in v0.4.1

func NewTestSuiteRunQueuedEventV0_1_0(specVersion string) (*TestSuiteRunQueuedEventV0_1_0, error)

New creates a new TestSuiteRunQueuedEventV0_1_0

func (TestSuiteRunQueuedEventV0_1_0) GetCustomData added in v0.4.1

func (e TestSuiteRunQueuedEventV0_1_0) GetCustomData() (interface{}, error)

func (TestSuiteRunQueuedEventV0_1_0) GetCustomDataAs added in v0.4.1

func (e TestSuiteRunQueuedEventV0_1_0) GetCustomDataAs(receiver interface{}) error

func (TestSuiteRunQueuedEventV0_1_0) GetCustomDataContentType added in v0.4.1

func (e TestSuiteRunQueuedEventV0_1_0) GetCustomDataContentType() string

func (TestSuiteRunQueuedEventV0_1_0) GetCustomDataRaw added in v0.4.1

func (e TestSuiteRunQueuedEventV0_1_0) GetCustomDataRaw() ([]byte, error)

func (TestSuiteRunQueuedEventV0_1_0) GetId added in v0.4.1

func (TestSuiteRunQueuedEventV0_1_0) GetSchema added in v0.4.1

func (TestSuiteRunQueuedEventV0_1_0) GetSource added in v0.4.1

func (e TestSuiteRunQueuedEventV0_1_0) GetSource() string

func (TestSuiteRunQueuedEventV0_1_0) GetSubject added in v0.4.1

func (e TestSuiteRunQueuedEventV0_1_0) GetSubject() Subject

func (TestSuiteRunQueuedEventV0_1_0) GetSubjectContent added in v0.4.1

func (e TestSuiteRunQueuedEventV0_1_0) GetSubjectContent() interface{}

func (TestSuiteRunQueuedEventV0_1_0) GetSubjectId added in v0.4.1

func (e TestSuiteRunQueuedEventV0_1_0) GetSubjectId() string

func (TestSuiteRunQueuedEventV0_1_0) GetSubjectSource added in v0.4.1

func (e TestSuiteRunQueuedEventV0_1_0) GetSubjectSource() string

func (TestSuiteRunQueuedEventV0_1_0) GetTimestamp added in v0.4.1

func (e TestSuiteRunQueuedEventV0_1_0) GetTimestamp() time.Time

func (TestSuiteRunQueuedEventV0_1_0) GetType added in v0.4.1

func (TestSuiteRunQueuedEventV0_1_0) GetVersion added in v0.4.1

func (e TestSuiteRunQueuedEventV0_1_0) GetVersion() string

func (*TestSuiteRunQueuedEventV0_1_0) SetCustomData added in v0.4.1

func (e *TestSuiteRunQueuedEventV0_1_0) SetCustomData(contentType string, data interface{}) error

func (*TestSuiteRunQueuedEventV0_1_0) SetId added in v0.4.1

func (*TestSuiteRunQueuedEventV0_1_0) SetSource added in v0.4.1

func (e *TestSuiteRunQueuedEventV0_1_0) SetSource(source string)

func (*TestSuiteRunQueuedEventV0_1_0) SetSubjectEnvironment added in v0.4.1

func (e *TestSuiteRunQueuedEventV0_1_0) SetSubjectEnvironment(environment *Reference)

func (*TestSuiteRunQueuedEventV0_1_0) SetSubjectId added in v0.4.1

func (e *TestSuiteRunQueuedEventV0_1_0) SetSubjectId(subjectId string)

func (*TestSuiteRunQueuedEventV0_1_0) SetSubjectSource added in v0.4.1

func (e *TestSuiteRunQueuedEventV0_1_0) SetSubjectSource(subjectSource string)

func (*TestSuiteRunQueuedEventV0_1_0) SetSubjectTestSuite added in v0.4.1

func (*TestSuiteRunQueuedEventV0_1_0) SetSubjectTrigger added in v0.4.1

func (*TestSuiteRunQueuedEventV0_1_0) SetTimestamp added in v0.4.1

func (e *TestSuiteRunQueuedEventV0_1_0) SetTimestamp(timestamp time.Time)

type TestSuiteRunQueuedEventV0_2_0 added in v0.4.1

type TestSuiteRunQueuedEventV0_2_0 struct {
	Context ContextV04                      `json:"context"`
	Subject TestSuiteRunQueuedSubjectV0_2_0 `json:"subject"`
	CDEventCustomData
}

func NewTestSuiteRunQueuedEventV0_2_0 added in v0.4.1

func NewTestSuiteRunQueuedEventV0_2_0(specVersion string) (*TestSuiteRunQueuedEventV0_2_0, error)

New creates a new TestSuiteRunQueuedEventV0_2_0

func (TestSuiteRunQueuedEventV0_2_0) GetChainId added in v0.4.1

func (e TestSuiteRunQueuedEventV0_2_0) GetChainId() string

func (TestSuiteRunQueuedEventV0_2_0) GetCustomData added in v0.4.1

func (e TestSuiteRunQueuedEventV0_2_0) GetCustomData() (interface{}, error)

func (TestSuiteRunQueuedEventV0_2_0) GetCustomDataAs added in v0.4.1

func (e TestSuiteRunQueuedEventV0_2_0) GetCustomDataAs(receiver interface{}) error

func (TestSuiteRunQueuedEventV0_2_0) GetCustomDataContentType added in v0.4.1

func (e TestSuiteRunQueuedEventV0_2_0) GetCustomDataContentType() string

func (TestSuiteRunQueuedEventV0_2_0) GetCustomDataRaw added in v0.4.1

func (e TestSuiteRunQueuedEventV0_2_0) GetCustomDataRaw() ([]byte, error)

func (TestSuiteRunQueuedEventV0_2_0) GetCustomSchema added in v0.4.1

func (e TestSuiteRunQueuedEventV0_2_0) GetCustomSchema() (*jsonschema.Schema, error)

GetCustomSchema looks up the SchemaUri, if any is defined. If none is defined, it returns nil. If it's defined and cannot be found, it returns an error.

func (TestSuiteRunQueuedEventV0_2_0) GetId added in v0.4.1

func (TestSuiteRunQueuedEventV0_2_0) GetSchema added in v0.4.1

func (TestSuiteRunQueuedEventV0_2_0) GetSchemaUri added in v0.4.1

func (e TestSuiteRunQueuedEventV0_2_0) GetSchemaUri() string

func (TestSuiteRunQueuedEventV0_2_0) GetSource added in v0.4.1

func (e TestSuiteRunQueuedEventV0_2_0) GetSource() string

func (TestSuiteRunQueuedEventV0_2_0) GetSubject added in v0.4.1

func (e TestSuiteRunQueuedEventV0_2_0) GetSubject() Subject

func (TestSuiteRunQueuedEventV0_2_0) GetSubjectContent added in v0.4.1

func (e TestSuiteRunQueuedEventV0_2_0) GetSubjectContent() interface{}

func (TestSuiteRunQueuedEventV0_2_0) GetSubjectId added in v0.4.1

func (e TestSuiteRunQueuedEventV0_2_0) GetSubjectId() string

func (TestSuiteRunQueuedEventV0_2_0) GetSubjectSource added in v0.4.1

func (e TestSuiteRunQueuedEventV0_2_0) GetSubjectSource() string

func (TestSuiteRunQueuedEventV0_2_0) GetTimestamp added in v0.4.1

func (e TestSuiteRunQueuedEventV0_2_0) GetTimestamp() time.Time

func (TestSuiteRunQueuedEventV0_2_0) GetType added in v0.4.1

func (TestSuiteRunQueuedEventV0_2_0) GetVersion added in v0.4.1

func (e TestSuiteRunQueuedEventV0_2_0) GetVersion() string

func (*TestSuiteRunQueuedEventV0_2_0) SetChainId added in v0.4.1

func (e *TestSuiteRunQueuedEventV0_2_0) SetChainId(chainId string)

func (*TestSuiteRunQueuedEventV0_2_0) SetCustomData added in v0.4.1

func (e *TestSuiteRunQueuedEventV0_2_0) SetCustomData(contentType string, data interface{}) error

func (*TestSuiteRunQueuedEventV0_2_0) SetId added in v0.4.1

func (*TestSuiteRunQueuedEventV0_2_0) SetSchemaUri added in v0.4.1

func (e *TestSuiteRunQueuedEventV0_2_0) SetSchemaUri(schema string)

func (*TestSuiteRunQueuedEventV0_2_0) SetSource added in v0.4.1

func (e *TestSuiteRunQueuedEventV0_2_0) SetSource(source string)

func (*TestSuiteRunQueuedEventV0_2_0) SetSubjectEnvironment added in v0.4.1

func (e *TestSuiteRunQueuedEventV0_2_0) SetSubjectEnvironment(environment *Reference)

func (*TestSuiteRunQueuedEventV0_2_0) SetSubjectId added in v0.4.1

func (e *TestSuiteRunQueuedEventV0_2_0) SetSubjectId(subjectId string)

func (*TestSuiteRunQueuedEventV0_2_0) SetSubjectSource added in v0.4.1

func (e *TestSuiteRunQueuedEventV0_2_0) SetSubjectSource(subjectSource string)

func (*TestSuiteRunQueuedEventV0_2_0) SetSubjectTestSuite added in v0.4.1

func (*TestSuiteRunQueuedEventV0_2_0) SetSubjectTrigger added in v0.4.1

func (*TestSuiteRunQueuedEventV0_2_0) SetTimestamp added in v0.4.1

func (e *TestSuiteRunQueuedEventV0_2_0) SetTimestamp(timestamp time.Time)

type TestSuiteRunQueuedSubjectContentTestSuiteV0_1_0 added in v0.4.1

type TestSuiteRunQueuedSubjectContentTestSuiteV0_1_0 struct {
	Id string `json:"id"`

	Name string `json:"name,omitempty"`

	Url string `json:"url,omitempty"`

	Version string `json:"version,omitempty"`
}

TestSuiteRunQueuedSubjectContentTestSuiteV0_1_0 holds the content of a TestSuite field in the content

type TestSuiteRunQueuedSubjectContentTestSuiteV0_2_0 added in v0.4.1

type TestSuiteRunQueuedSubjectContentTestSuiteV0_2_0 struct {
	Id string `json:"id"`

	Name string `json:"name,omitempty"`

	Url string `json:"url,omitempty"`

	Version string `json:"version,omitempty"`
}

TestSuiteRunQueuedSubjectContentTestSuiteV0_2_0 holds the content of a TestSuite field in the content

type TestSuiteRunQueuedSubjectContentTriggerV0_1_0 added in v0.4.1

type TestSuiteRunQueuedSubjectContentTriggerV0_1_0 struct {
	Type string `json:"type,omitempty"`

	Uri string `json:"uri,omitempty"`
}

TestSuiteRunQueuedSubjectContentTriggerV0_1_0 holds the content of a Trigger field in the content

type TestSuiteRunQueuedSubjectContentTriggerV0_2_0 added in v0.4.1

type TestSuiteRunQueuedSubjectContentTriggerV0_2_0 struct {
	Type string `json:"type,omitempty"`

	Uri string `json:"uri,omitempty"`
}

TestSuiteRunQueuedSubjectContentTriggerV0_2_0 holds the content of a Trigger field in the content

type TestSuiteRunQueuedSubjectContentV0_1_0 added in v0.4.1

type TestSuiteRunQueuedSubjectContentV0_1_0 struct {
	Environment *Reference `json:"environment"`

	TestSuite *TestSuiteRunQueuedSubjectContentTestSuiteV0_1_0 `json:"testSuite,omitempty"`

	Trigger *TestSuiteRunQueuedSubjectContentTriggerV0_1_0 `json:"trigger,omitempty"`
}

type TestSuiteRunQueuedSubjectContentV0_2_0 added in v0.4.1

type TestSuiteRunQueuedSubjectContentV0_2_0 struct {
	Environment *Reference `json:"environment"`

	TestSuite *TestSuiteRunQueuedSubjectContentTestSuiteV0_2_0 `json:"testSuite,omitempty"`

	Trigger *TestSuiteRunQueuedSubjectContentTriggerV0_2_0 `json:"trigger,omitempty"`
}

type TestSuiteRunQueuedSubjectV0_1_0 added in v0.4.1

type TestSuiteRunQueuedSubjectV0_1_0 struct {
	SubjectBase
	Content TestSuiteRunQueuedSubjectContentV0_1_0 `json:"content"`
}

func (TestSuiteRunQueuedSubjectV0_1_0) GetSubjectType added in v0.4.1

func (sc TestSuiteRunQueuedSubjectV0_1_0) GetSubjectType() SubjectType

type TestSuiteRunQueuedSubjectV0_2_0 added in v0.4.1

type TestSuiteRunQueuedSubjectV0_2_0 struct {
	SubjectBase
	Content TestSuiteRunQueuedSubjectContentV0_2_0 `json:"content"`
}

func (TestSuiteRunQueuedSubjectV0_2_0) GetSubjectType added in v0.4.1

func (sc TestSuiteRunQueuedSubjectV0_2_0) GetSubjectType() SubjectType

type TestSuiteRunStartedEventV0_1_0 added in v0.4.1

type TestSuiteRunStartedEventV0_1_0 struct {
	Context Context                          `json:"context"`
	Subject TestSuiteRunStartedSubjectV0_1_0 `json:"subject"`
	CDEventCustomData
}

func NewTestSuiteRunStartedEventV0_1_0 added in v0.4.1

func NewTestSuiteRunStartedEventV0_1_0(specVersion string) (*TestSuiteRunStartedEventV0_1_0, error)

New creates a new TestSuiteRunStartedEventV0_1_0

func (TestSuiteRunStartedEventV0_1_0) GetCustomData added in v0.4.1

func (e TestSuiteRunStartedEventV0_1_0) GetCustomData() (interface{}, error)

func (TestSuiteRunStartedEventV0_1_0) GetCustomDataAs added in v0.4.1

func (e TestSuiteRunStartedEventV0_1_0) GetCustomDataAs(receiver interface{}) error

func (TestSuiteRunStartedEventV0_1_0) GetCustomDataContentType added in v0.4.1

func (e TestSuiteRunStartedEventV0_1_0) GetCustomDataContentType() string

func (TestSuiteRunStartedEventV0_1_0) GetCustomDataRaw added in v0.4.1

func (e TestSuiteRunStartedEventV0_1_0) GetCustomDataRaw() ([]byte, error)

func (TestSuiteRunStartedEventV0_1_0) GetId added in v0.4.1

func (TestSuiteRunStartedEventV0_1_0) GetSchema added in v0.4.1

func (TestSuiteRunStartedEventV0_1_0) GetSource added in v0.4.1

func (e TestSuiteRunStartedEventV0_1_0) GetSource() string

func (TestSuiteRunStartedEventV0_1_0) GetSubject added in v0.4.1

func (e TestSuiteRunStartedEventV0_1_0) GetSubject() Subject

func (TestSuiteRunStartedEventV0_1_0) GetSubjectContent added in v0.4.1

func (e TestSuiteRunStartedEventV0_1_0) GetSubjectContent() interface{}

func (TestSuiteRunStartedEventV0_1_0) GetSubjectId added in v0.4.1

func (e TestSuiteRunStartedEventV0_1_0) GetSubjectId() string

func (TestSuiteRunStartedEventV0_1_0) GetSubjectSource added in v0.4.1

func (e TestSuiteRunStartedEventV0_1_0) GetSubjectSource() string

func (TestSuiteRunStartedEventV0_1_0) GetTimestamp added in v0.4.1

func (e TestSuiteRunStartedEventV0_1_0) GetTimestamp() time.Time

func (TestSuiteRunStartedEventV0_1_0) GetType added in v0.4.1

func (TestSuiteRunStartedEventV0_1_0) GetVersion added in v0.4.1

func (e TestSuiteRunStartedEventV0_1_0) GetVersion() string

func (*TestSuiteRunStartedEventV0_1_0) SetCustomData added in v0.4.1

func (e *TestSuiteRunStartedEventV0_1_0) SetCustomData(contentType string, data interface{}) error

func (*TestSuiteRunStartedEventV0_1_0) SetId added in v0.4.1

func (*TestSuiteRunStartedEventV0_1_0) SetSource added in v0.4.1

func (e *TestSuiteRunStartedEventV0_1_0) SetSource(source string)

func (*TestSuiteRunStartedEventV0_1_0) SetSubjectEnvironment added in v0.4.1

func (e *TestSuiteRunStartedEventV0_1_0) SetSubjectEnvironment(environment *Reference)

func (*TestSuiteRunStartedEventV0_1_0) SetSubjectId added in v0.4.1

func (e *TestSuiteRunStartedEventV0_1_0) SetSubjectId(subjectId string)

func (*TestSuiteRunStartedEventV0_1_0) SetSubjectSource added in v0.4.1

func (e *TestSuiteRunStartedEventV0_1_0) SetSubjectSource(subjectSource string)

func (*TestSuiteRunStartedEventV0_1_0) SetSubjectTestSuite added in v0.4.1

func (*TestSuiteRunStartedEventV0_1_0) SetSubjectTrigger added in v0.4.1

func (*TestSuiteRunStartedEventV0_1_0) SetTimestamp added in v0.4.1

func (e *TestSuiteRunStartedEventV0_1_0) SetTimestamp(timestamp time.Time)

type TestSuiteRunStartedEventV0_2_0 added in v0.4.1

type TestSuiteRunStartedEventV0_2_0 struct {
	Context ContextV04                       `json:"context"`
	Subject TestSuiteRunStartedSubjectV0_2_0 `json:"subject"`
	CDEventCustomData
}

func NewTestSuiteRunStartedEventV0_2_0 added in v0.4.1

func NewTestSuiteRunStartedEventV0_2_0(specVersion string) (*TestSuiteRunStartedEventV0_2_0, error)

New creates a new TestSuiteRunStartedEventV0_2_0

func (TestSuiteRunStartedEventV0_2_0) GetChainId added in v0.4.1

func (e TestSuiteRunStartedEventV0_2_0) GetChainId() string

func (TestSuiteRunStartedEventV0_2_0) GetCustomData added in v0.4.1

func (e TestSuiteRunStartedEventV0_2_0) GetCustomData() (interface{}, error)

func (TestSuiteRunStartedEventV0_2_0) GetCustomDataAs added in v0.4.1

func (e TestSuiteRunStartedEventV0_2_0) GetCustomDataAs(receiver interface{}) error

func (TestSuiteRunStartedEventV0_2_0) GetCustomDataContentType added in v0.4.1

func (e TestSuiteRunStartedEventV0_2_0) GetCustomDataContentType() string

func (TestSuiteRunStartedEventV0_2_0) GetCustomDataRaw added in v0.4.1

func (e TestSuiteRunStartedEventV0_2_0) GetCustomDataRaw() ([]byte, error)

func (TestSuiteRunStartedEventV0_2_0) GetCustomSchema added in v0.4.1

func (e TestSuiteRunStartedEventV0_2_0) GetCustomSchema() (*jsonschema.Schema, error)

GetCustomSchema looks up the SchemaUri, if any is defined. If none is defined, it returns nil. If it's defined and cannot be found, it returns an error.

func (TestSuiteRunStartedEventV0_2_0) GetId added in v0.4.1

func (TestSuiteRunStartedEventV0_2_0) GetSchema added in v0.4.1

func (TestSuiteRunStartedEventV0_2_0) GetSchemaUri added in v0.4.1

func (e TestSuiteRunStartedEventV0_2_0) GetSchemaUri() string

func (TestSuiteRunStartedEventV0_2_0) GetSource added in v0.4.1

func (e TestSuiteRunStartedEventV0_2_0) GetSource() string

func (TestSuiteRunStartedEventV0_2_0) GetSubject added in v0.4.1

func (e TestSuiteRunStartedEventV0_2_0) GetSubject() Subject

func (TestSuiteRunStartedEventV0_2_0) GetSubjectContent added in v0.4.1

func (e TestSuiteRunStartedEventV0_2_0) GetSubjectContent() interface{}

func (TestSuiteRunStartedEventV0_2_0) GetSubjectId added in v0.4.1

func (e TestSuiteRunStartedEventV0_2_0) GetSubjectId() string

func (TestSuiteRunStartedEventV0_2_0) GetSubjectSource added in v0.4.1

func (e TestSuiteRunStartedEventV0_2_0) GetSubjectSource() string

func (TestSuiteRunStartedEventV0_2_0) GetTimestamp added in v0.4.1

func (e TestSuiteRunStartedEventV0_2_0) GetTimestamp() time.Time

func (TestSuiteRunStartedEventV0_2_0) GetType added in v0.4.1

func (TestSuiteRunStartedEventV0_2_0) GetVersion added in v0.4.1

func (e TestSuiteRunStartedEventV0_2_0) GetVersion() string

func (*TestSuiteRunStartedEventV0_2_0) SetChainId added in v0.4.1

func (e *TestSuiteRunStartedEventV0_2_0) SetChainId(chainId string)

func (*TestSuiteRunStartedEventV0_2_0) SetCustomData added in v0.4.1

func (e *TestSuiteRunStartedEventV0_2_0) SetCustomData(contentType string, data interface{}) error

func (*TestSuiteRunStartedEventV0_2_0) SetId added in v0.4.1

func (*TestSuiteRunStartedEventV0_2_0) SetSchemaUri added in v0.4.1

func (e *TestSuiteRunStartedEventV0_2_0) SetSchemaUri(schema string)

func (*TestSuiteRunStartedEventV0_2_0) SetSource added in v0.4.1

func (e *TestSuiteRunStartedEventV0_2_0) SetSource(source string)

func (*TestSuiteRunStartedEventV0_2_0) SetSubjectEnvironment added in v0.4.1

func (e *TestSuiteRunStartedEventV0_2_0) SetSubjectEnvironment(environment *Reference)

func (*TestSuiteRunStartedEventV0_2_0) SetSubjectId added in v0.4.1

func (e *TestSuiteRunStartedEventV0_2_0) SetSubjectId(subjectId string)

func (*TestSuiteRunStartedEventV0_2_0) SetSubjectSource added in v0.4.1

func (e *TestSuiteRunStartedEventV0_2_0) SetSubjectSource(subjectSource string)

func (*TestSuiteRunStartedEventV0_2_0) SetSubjectTestSuite added in v0.4.1

func (*TestSuiteRunStartedEventV0_2_0) SetSubjectTrigger added in v0.4.1

func (*TestSuiteRunStartedEventV0_2_0) SetTimestamp added in v0.4.1

func (e *TestSuiteRunStartedEventV0_2_0) SetTimestamp(timestamp time.Time)

type TestSuiteRunStartedSubjectContentTestSuiteV0_1_0 added in v0.4.1

type TestSuiteRunStartedSubjectContentTestSuiteV0_1_0 struct {
	Id string `json:"id"`

	Name string `json:"name,omitempty"`

	Uri string `json:"uri,omitempty"`

	Version string `json:"version,omitempty"`
}

TestSuiteRunStartedSubjectContentTestSuiteV0_1_0 holds the content of a TestSuite field in the content

type TestSuiteRunStartedSubjectContentTestSuiteV0_2_0 added in v0.4.1

type TestSuiteRunStartedSubjectContentTestSuiteV0_2_0 struct {
	Id string `json:"id"`

	Name string `json:"name,omitempty"`

	Uri string `json:"uri,omitempty"`

	Version string `json:"version,omitempty"`
}

TestSuiteRunStartedSubjectContentTestSuiteV0_2_0 holds the content of a TestSuite field in the content

type TestSuiteRunStartedSubjectContentTriggerV0_1_0 added in v0.4.1

type TestSuiteRunStartedSubjectContentTriggerV0_1_0 struct {
	Type string `json:"type,omitempty"`

	Uri string `json:"uri,omitempty"`
}

TestSuiteRunStartedSubjectContentTriggerV0_1_0 holds the content of a Trigger field in the content

type TestSuiteRunStartedSubjectContentTriggerV0_2_0 added in v0.4.1

type TestSuiteRunStartedSubjectContentTriggerV0_2_0 struct {
	Type string `json:"type,omitempty"`

	Uri string `json:"uri,omitempty"`
}

TestSuiteRunStartedSubjectContentTriggerV0_2_0 holds the content of a Trigger field in the content

type TestSuiteRunStartedSubjectContentV0_1_0 added in v0.4.1

type TestSuiteRunStartedSubjectContentV0_1_0 struct {
	Environment *Reference `json:"environment"`

	TestSuite *TestSuiteRunStartedSubjectContentTestSuiteV0_1_0 `json:"testSuite,omitempty"`

	Trigger *TestSuiteRunStartedSubjectContentTriggerV0_1_0 `json:"trigger,omitempty"`
}

type TestSuiteRunStartedSubjectContentV0_2_0 added in v0.4.1

type TestSuiteRunStartedSubjectContentV0_2_0 struct {
	Environment *Reference `json:"environment"`

	TestSuite *TestSuiteRunStartedSubjectContentTestSuiteV0_2_0 `json:"testSuite,omitempty"`

	Trigger *TestSuiteRunStartedSubjectContentTriggerV0_2_0 `json:"trigger,omitempty"`
}

type TestSuiteRunStartedSubjectV0_1_0 added in v0.4.1

type TestSuiteRunStartedSubjectV0_1_0 struct {
	SubjectBase
	Content TestSuiteRunStartedSubjectContentV0_1_0 `json:"content"`
}

func (TestSuiteRunStartedSubjectV0_1_0) GetSubjectType added in v0.4.1

func (sc TestSuiteRunStartedSubjectV0_1_0) GetSubjectType() SubjectType

type TestSuiteRunStartedSubjectV0_2_0 added in v0.4.1

type TestSuiteRunStartedSubjectV0_2_0 struct {
	SubjectBase
	Content TestSuiteRunStartedSubjectContentV0_2_0 `json:"content"`
}

func (TestSuiteRunStartedSubjectV0_2_0) GetSubjectType added in v0.4.1

func (sc TestSuiteRunStartedSubjectV0_2_0) GetSubjectType() SubjectType

type TicketClosedEventV0_1_0 added in v0.4.1

type TicketClosedEventV0_1_0 struct {
	Context ContextV04                `json:"context"`
	Subject TicketClosedSubjectV0_1_0 `json:"subject"`
	CDEventCustomData
}

func NewTicketClosedEventV0_1_0 added in v0.4.1

func NewTicketClosedEventV0_1_0(specVersion string) (*TicketClosedEventV0_1_0, error)

New creates a new TicketClosedEventV0_1_0

func (TicketClosedEventV0_1_0) GetChainId added in v0.4.1

func (e TicketClosedEventV0_1_0) GetChainId() string

func (TicketClosedEventV0_1_0) GetCustomData added in v0.4.1

func (e TicketClosedEventV0_1_0) GetCustomData() (interface{}, error)

func (TicketClosedEventV0_1_0) GetCustomDataAs added in v0.4.1

func (e TicketClosedEventV0_1_0) GetCustomDataAs(receiver interface{}) error

func (TicketClosedEventV0_1_0) GetCustomDataContentType added in v0.4.1

func (e TicketClosedEventV0_1_0) GetCustomDataContentType() string

func (TicketClosedEventV0_1_0) GetCustomDataRaw added in v0.4.1

func (e TicketClosedEventV0_1_0) GetCustomDataRaw() ([]byte, error)

func (TicketClosedEventV0_1_0) GetCustomSchema added in v0.4.1

func (e TicketClosedEventV0_1_0) GetCustomSchema() (*jsonschema.Schema, error)

GetCustomSchema looks up the SchemaUri, if any is defined. If none is defined, it returns nil. If it's defined and cannot be found, it returns an error.

func (TicketClosedEventV0_1_0) GetId added in v0.4.1

func (e TicketClosedEventV0_1_0) GetId() string

func (TicketClosedEventV0_1_0) GetSchema added in v0.4.1

func (TicketClosedEventV0_1_0) GetSchemaUri added in v0.4.1

func (e TicketClosedEventV0_1_0) GetSchemaUri() string

func (TicketClosedEventV0_1_0) GetSource added in v0.4.1

func (e TicketClosedEventV0_1_0) GetSource() string

func (TicketClosedEventV0_1_0) GetSubject added in v0.4.1

func (e TicketClosedEventV0_1_0) GetSubject() Subject

func (TicketClosedEventV0_1_0) GetSubjectContent added in v0.4.1

func (e TicketClosedEventV0_1_0) GetSubjectContent() interface{}

func (TicketClosedEventV0_1_0) GetSubjectId added in v0.4.1

func (e TicketClosedEventV0_1_0) GetSubjectId() string

func (TicketClosedEventV0_1_0) GetSubjectSource added in v0.4.1

func (e TicketClosedEventV0_1_0) GetSubjectSource() string

func (TicketClosedEventV0_1_0) GetTimestamp added in v0.4.1

func (e TicketClosedEventV0_1_0) GetTimestamp() time.Time

func (TicketClosedEventV0_1_0) GetType added in v0.4.1

func (TicketClosedEventV0_1_0) GetVersion added in v0.4.1

func (e TicketClosedEventV0_1_0) GetVersion() string

func (*TicketClosedEventV0_1_0) SetChainId added in v0.4.1

func (e *TicketClosedEventV0_1_0) SetChainId(chainId string)

func (*TicketClosedEventV0_1_0) SetCustomData added in v0.4.1

func (e *TicketClosedEventV0_1_0) SetCustomData(contentType string, data interface{}) error

func (*TicketClosedEventV0_1_0) SetId added in v0.4.1

func (e *TicketClosedEventV0_1_0) SetId(id string)
func (e *TicketClosedEventV0_1_0) SetLinks(links EmbeddedLinksArray)

func (*TicketClosedEventV0_1_0) SetSchemaUri added in v0.4.1

func (e *TicketClosedEventV0_1_0) SetSchemaUri(schema string)

func (*TicketClosedEventV0_1_0) SetSource added in v0.4.1

func (e *TicketClosedEventV0_1_0) SetSource(source string)

func (*TicketClosedEventV0_1_0) SetSubjectAssignees added in v0.4.1

func (e *TicketClosedEventV0_1_0) SetSubjectAssignees(assignees []string)

func (*TicketClosedEventV0_1_0) SetSubjectCreator added in v0.4.1

func (e *TicketClosedEventV0_1_0) SetSubjectCreator(creator string)

func (*TicketClosedEventV0_1_0) SetSubjectGroup added in v0.4.1

func (e *TicketClosedEventV0_1_0) SetSubjectGroup(group string)

func (*TicketClosedEventV0_1_0) SetSubjectId added in v0.4.1

func (e *TicketClosedEventV0_1_0) SetSubjectId(subjectId string)

func (*TicketClosedEventV0_1_0) SetSubjectLabels added in v0.4.1

func (e *TicketClosedEventV0_1_0) SetSubjectLabels(labels []string)

func (*TicketClosedEventV0_1_0) SetSubjectMilestone added in v0.4.1

func (e *TicketClosedEventV0_1_0) SetSubjectMilestone(milestone string)

func (*TicketClosedEventV0_1_0) SetSubjectPriority added in v0.4.1

func (e *TicketClosedEventV0_1_0) SetSubjectPriority(priority string)

func (*TicketClosedEventV0_1_0) SetSubjectResolution added in v0.4.1

func (e *TicketClosedEventV0_1_0) SetSubjectResolution(resolution string)

func (*TicketClosedEventV0_1_0) SetSubjectSource added in v0.4.1

func (e *TicketClosedEventV0_1_0) SetSubjectSource(subjectSource string)

func (*TicketClosedEventV0_1_0) SetSubjectSummary added in v0.4.1

func (e *TicketClosedEventV0_1_0) SetSubjectSummary(summary string)

func (*TicketClosedEventV0_1_0) SetSubjectTicketType added in v0.4.1

func (e *TicketClosedEventV0_1_0) SetSubjectTicketType(ticketType string)

func (*TicketClosedEventV0_1_0) SetSubjectUpdatedBy added in v0.4.1

func (e *TicketClosedEventV0_1_0) SetSubjectUpdatedBy(updatedBy string)

func (*TicketClosedEventV0_1_0) SetSubjectUri added in v0.4.1

func (e *TicketClosedEventV0_1_0) SetSubjectUri(uri string)

func (*TicketClosedEventV0_1_0) SetTimestamp added in v0.4.1

func (e *TicketClosedEventV0_1_0) SetTimestamp(timestamp time.Time)

type TicketClosedSubjectContentV0_1_0 added in v0.4.1

type TicketClosedSubjectContentV0_1_0 struct {
	Assignees []string `json:"assignees,omitempty"`

	Creator string `json:"creator,omitempty"`

	Group string `json:"group,omitempty"`

	Labels []string `json:"labels,omitempty"`

	Milestone string `json:"milestone,omitempty"`

	Priority string `json:"priority,omitempty"`

	Resolution string `json:"resolution"`

	Summary string `json:"summary,omitempty"`

	TicketType string `json:"ticketType,omitempty"`

	UpdatedBy string `json:"updatedBy,omitempty"`

	Uri string `json:"uri"`
}

type TicketClosedSubjectV0_1_0 added in v0.4.1

type TicketClosedSubjectV0_1_0 struct {
	SubjectBase
	Content TicketClosedSubjectContentV0_1_0 `json:"content"`
}

func (TicketClosedSubjectV0_1_0) GetSubjectType added in v0.4.1

func (sc TicketClosedSubjectV0_1_0) GetSubjectType() SubjectType

type TicketCreatedEventV0_1_0 added in v0.4.1

type TicketCreatedEventV0_1_0 struct {
	Context ContextV04                 `json:"context"`
	Subject TicketCreatedSubjectV0_1_0 `json:"subject"`
	CDEventCustomData
}

func NewTicketCreatedEventV0_1_0 added in v0.4.1

func NewTicketCreatedEventV0_1_0(specVersion string) (*TicketCreatedEventV0_1_0, error)

New creates a new TicketCreatedEventV0_1_0

func (TicketCreatedEventV0_1_0) GetChainId added in v0.4.1

func (e TicketCreatedEventV0_1_0) GetChainId() string

func (TicketCreatedEventV0_1_0) GetCustomData added in v0.4.1

func (e TicketCreatedEventV0_1_0) GetCustomData() (interface{}, error)

func (TicketCreatedEventV0_1_0) GetCustomDataAs added in v0.4.1

func (e TicketCreatedEventV0_1_0) GetCustomDataAs(receiver interface{}) error

func (TicketCreatedEventV0_1_0) GetCustomDataContentType added in v0.4.1

func (e TicketCreatedEventV0_1_0) GetCustomDataContentType() string

func (TicketCreatedEventV0_1_0) GetCustomDataRaw added in v0.4.1

func (e TicketCreatedEventV0_1_0) GetCustomDataRaw() ([]byte, error)

func (TicketCreatedEventV0_1_0) GetCustomSchema added in v0.4.1

func (e TicketCreatedEventV0_1_0) GetCustomSchema() (*jsonschema.Schema, error)

GetCustomSchema looks up the SchemaUri, if any is defined. If none is defined, it returns nil. If it's defined and cannot be found, it returns an error.

func (TicketCreatedEventV0_1_0) GetId added in v0.4.1

func (e TicketCreatedEventV0_1_0) GetId() string

func (TicketCreatedEventV0_1_0) GetSchema added in v0.4.1

func (TicketCreatedEventV0_1_0) GetSchemaUri added in v0.4.1

func (e TicketCreatedEventV0_1_0) GetSchemaUri() string

func (TicketCreatedEventV0_1_0) GetSource added in v0.4.1

func (e TicketCreatedEventV0_1_0) GetSource() string

func (TicketCreatedEventV0_1_0) GetSubject added in v0.4.1

func (e TicketCreatedEventV0_1_0) GetSubject() Subject

func (TicketCreatedEventV0_1_0) GetSubjectContent added in v0.4.1

func (e TicketCreatedEventV0_1_0) GetSubjectContent() interface{}

func (TicketCreatedEventV0_1_0) GetSubjectId added in v0.4.1

func (e TicketCreatedEventV0_1_0) GetSubjectId() string

func (TicketCreatedEventV0_1_0) GetSubjectSource added in v0.4.1

func (e TicketCreatedEventV0_1_0) GetSubjectSource() string

func (TicketCreatedEventV0_1_0) GetTimestamp added in v0.4.1

func (e TicketCreatedEventV0_1_0) GetTimestamp() time.Time

func (TicketCreatedEventV0_1_0) GetType added in v0.4.1

func (TicketCreatedEventV0_1_0) GetVersion added in v0.4.1

func (e TicketCreatedEventV0_1_0) GetVersion() string

func (*TicketCreatedEventV0_1_0) SetChainId added in v0.4.1

func (e *TicketCreatedEventV0_1_0) SetChainId(chainId string)

func (*TicketCreatedEventV0_1_0) SetCustomData added in v0.4.1

func (e *TicketCreatedEventV0_1_0) SetCustomData(contentType string, data interface{}) error

func (*TicketCreatedEventV0_1_0) SetId added in v0.4.1

func (e *TicketCreatedEventV0_1_0) SetId(id string)
func (e *TicketCreatedEventV0_1_0) SetLinks(links EmbeddedLinksArray)

func (*TicketCreatedEventV0_1_0) SetSchemaUri added in v0.4.1

func (e *TicketCreatedEventV0_1_0) SetSchemaUri(schema string)

func (*TicketCreatedEventV0_1_0) SetSource added in v0.4.1

func (e *TicketCreatedEventV0_1_0) SetSource(source string)

func (*TicketCreatedEventV0_1_0) SetSubjectAssignees added in v0.4.1

func (e *TicketCreatedEventV0_1_0) SetSubjectAssignees(assignees []string)

func (*TicketCreatedEventV0_1_0) SetSubjectCreator added in v0.4.1

func (e *TicketCreatedEventV0_1_0) SetSubjectCreator(creator string)

func (*TicketCreatedEventV0_1_0) SetSubjectGroup added in v0.4.1

func (e *TicketCreatedEventV0_1_0) SetSubjectGroup(group string)

func (*TicketCreatedEventV0_1_0) SetSubjectId added in v0.4.1

func (e *TicketCreatedEventV0_1_0) SetSubjectId(subjectId string)

func (*TicketCreatedEventV0_1_0) SetSubjectLabels added in v0.4.1

func (e *TicketCreatedEventV0_1_0) SetSubjectLabels(labels []string)

func (*TicketCreatedEventV0_1_0) SetSubjectMilestone added in v0.4.1

func (e *TicketCreatedEventV0_1_0) SetSubjectMilestone(milestone string)

func (*TicketCreatedEventV0_1_0) SetSubjectPriority added in v0.4.1

func (e *TicketCreatedEventV0_1_0) SetSubjectPriority(priority string)

func (*TicketCreatedEventV0_1_0) SetSubjectSource added in v0.4.1

func (e *TicketCreatedEventV0_1_0) SetSubjectSource(subjectSource string)

func (*TicketCreatedEventV0_1_0) SetSubjectSummary added in v0.4.1

func (e *TicketCreatedEventV0_1_0) SetSubjectSummary(summary string)

func (*TicketCreatedEventV0_1_0) SetSubjectTicketType added in v0.4.1

func (e *TicketCreatedEventV0_1_0) SetSubjectTicketType(ticketType string)

func (*TicketCreatedEventV0_1_0) SetSubjectUri added in v0.4.1

func (e *TicketCreatedEventV0_1_0) SetSubjectUri(uri string)

func (*TicketCreatedEventV0_1_0) SetTimestamp added in v0.4.1

func (e *TicketCreatedEventV0_1_0) SetTimestamp(timestamp time.Time)

type TicketCreatedSubjectContentV0_1_0 added in v0.4.1

type TicketCreatedSubjectContentV0_1_0 struct {
	Assignees []string `json:"assignees,omitempty"`

	Creator string `json:"creator"`

	Group string `json:"group,omitempty"`

	Labels []string `json:"labels,omitempty"`

	Milestone string `json:"milestone,omitempty"`

	Priority string `json:"priority,omitempty"`

	Summary string `json:"summary"`

	TicketType string `json:"ticketType,omitempty"`

	Uri string `json:"uri"`
}

type TicketCreatedSubjectV0_1_0 added in v0.4.1

type TicketCreatedSubjectV0_1_0 struct {
	SubjectBase
	Content TicketCreatedSubjectContentV0_1_0 `json:"content"`
}

func (TicketCreatedSubjectV0_1_0) GetSubjectType added in v0.4.1

func (sc TicketCreatedSubjectV0_1_0) GetSubjectType() SubjectType

type TicketUpdatedEventV0_1_0 added in v0.4.1

type TicketUpdatedEventV0_1_0 struct {
	Context ContextV04                 `json:"context"`
	Subject TicketUpdatedSubjectV0_1_0 `json:"subject"`
	CDEventCustomData
}

func NewTicketUpdatedEventV0_1_0 added in v0.4.1

func NewTicketUpdatedEventV0_1_0(specVersion string) (*TicketUpdatedEventV0_1_0, error)

New creates a new TicketUpdatedEventV0_1_0

func (TicketUpdatedEventV0_1_0) GetChainId added in v0.4.1

func (e TicketUpdatedEventV0_1_0) GetChainId() string

func (TicketUpdatedEventV0_1_0) GetCustomData added in v0.4.1

func (e TicketUpdatedEventV0_1_0) GetCustomData() (interface{}, error)

func (TicketUpdatedEventV0_1_0) GetCustomDataAs added in v0.4.1

func (e TicketUpdatedEventV0_1_0) GetCustomDataAs(receiver interface{}) error

func (TicketUpdatedEventV0_1_0) GetCustomDataContentType added in v0.4.1

func (e TicketUpdatedEventV0_1_0) GetCustomDataContentType() string

func (TicketUpdatedEventV0_1_0) GetCustomDataRaw added in v0.4.1

func (e TicketUpdatedEventV0_1_0) GetCustomDataRaw() ([]byte, error)

func (TicketUpdatedEventV0_1_0) GetCustomSchema added in v0.4.1

func (e TicketUpdatedEventV0_1_0) GetCustomSchema() (*jsonschema.Schema, error)

GetCustomSchema looks up the SchemaUri, if any is defined. If none is defined, it returns nil. If it's defined and cannot be found, it returns an error.

func (TicketUpdatedEventV0_1_0) GetId added in v0.4.1

func (e TicketUpdatedEventV0_1_0) GetId() string

func (TicketUpdatedEventV0_1_0) GetSchema added in v0.4.1

func (TicketUpdatedEventV0_1_0) GetSchemaUri added in v0.4.1

func (e TicketUpdatedEventV0_1_0) GetSchemaUri() string

func (TicketUpdatedEventV0_1_0) GetSource added in v0.4.1

func (e TicketUpdatedEventV0_1_0) GetSource() string

func (TicketUpdatedEventV0_1_0) GetSubject added in v0.4.1

func (e TicketUpdatedEventV0_1_0) GetSubject() Subject

func (TicketUpdatedEventV0_1_0) GetSubjectContent added in v0.4.1

func (e TicketUpdatedEventV0_1_0) GetSubjectContent() interface{}

func (TicketUpdatedEventV0_1_0) GetSubjectId added in v0.4.1

func (e TicketUpdatedEventV0_1_0) GetSubjectId() string

func (TicketUpdatedEventV0_1_0) GetSubjectSource added in v0.4.1

func (e TicketUpdatedEventV0_1_0) GetSubjectSource() string

func (TicketUpdatedEventV0_1_0) GetTimestamp added in v0.4.1

func (e TicketUpdatedEventV0_1_0) GetTimestamp() time.Time

func (TicketUpdatedEventV0_1_0) GetType added in v0.4.1

func (TicketUpdatedEventV0_1_0) GetVersion added in v0.4.1

func (e TicketUpdatedEventV0_1_0) GetVersion() string

func (*TicketUpdatedEventV0_1_0) SetChainId added in v0.4.1

func (e *TicketUpdatedEventV0_1_0) SetChainId(chainId string)

func (*TicketUpdatedEventV0_1_0) SetCustomData added in v0.4.1

func (e *TicketUpdatedEventV0_1_0) SetCustomData(contentType string, data interface{}) error

func (*TicketUpdatedEventV0_1_0) SetId added in v0.4.1

func (e *TicketUpdatedEventV0_1_0) SetId(id string)
func (e *TicketUpdatedEventV0_1_0) SetLinks(links EmbeddedLinksArray)

func (*TicketUpdatedEventV0_1_0) SetSchemaUri added in v0.4.1

func (e *TicketUpdatedEventV0_1_0) SetSchemaUri(schema string)

func (*TicketUpdatedEventV0_1_0) SetSource added in v0.4.1

func (e *TicketUpdatedEventV0_1_0) SetSource(source string)

func (*TicketUpdatedEventV0_1_0) SetSubjectAssignees added in v0.4.1

func (e *TicketUpdatedEventV0_1_0) SetSubjectAssignees(assignees []string)

func (*TicketUpdatedEventV0_1_0) SetSubjectCreator added in v0.4.1

func (e *TicketUpdatedEventV0_1_0) SetSubjectCreator(creator string)

func (*TicketUpdatedEventV0_1_0) SetSubjectGroup added in v0.4.1

func (e *TicketUpdatedEventV0_1_0) SetSubjectGroup(group string)

func (*TicketUpdatedEventV0_1_0) SetSubjectId added in v0.4.1

func (e *TicketUpdatedEventV0_1_0) SetSubjectId(subjectId string)

func (*TicketUpdatedEventV0_1_0) SetSubjectLabels added in v0.4.1

func (e *TicketUpdatedEventV0_1_0) SetSubjectLabels(labels []string)

func (*TicketUpdatedEventV0_1_0) SetSubjectMilestone added in v0.4.1

func (e *TicketUpdatedEventV0_1_0) SetSubjectMilestone(milestone string)

func (*TicketUpdatedEventV0_1_0) SetSubjectPriority added in v0.4.1

func (e *TicketUpdatedEventV0_1_0) SetSubjectPriority(priority string)

func (*TicketUpdatedEventV0_1_0) SetSubjectSource added in v0.4.1

func (e *TicketUpdatedEventV0_1_0) SetSubjectSource(subjectSource string)

func (*TicketUpdatedEventV0_1_0) SetSubjectSummary added in v0.4.1

func (e *TicketUpdatedEventV0_1_0) SetSubjectSummary(summary string)

func (*TicketUpdatedEventV0_1_0) SetSubjectTicketType added in v0.4.1

func (e *TicketUpdatedEventV0_1_0) SetSubjectTicketType(ticketType string)

func (*TicketUpdatedEventV0_1_0) SetSubjectUpdatedBy added in v0.4.1

func (e *TicketUpdatedEventV0_1_0) SetSubjectUpdatedBy(updatedBy string)

func (*TicketUpdatedEventV0_1_0) SetSubjectUri added in v0.4.1

func (e *TicketUpdatedEventV0_1_0) SetSubjectUri(uri string)

func (*TicketUpdatedEventV0_1_0) SetTimestamp added in v0.4.1

func (e *TicketUpdatedEventV0_1_0) SetTimestamp(timestamp time.Time)

type TicketUpdatedSubjectContentV0_1_0 added in v0.4.1

type TicketUpdatedSubjectContentV0_1_0 struct {
	Assignees []string `json:"assignees,omitempty"`

	Creator string `json:"creator,omitempty"`

	Group string `json:"group,omitempty"`

	Labels []string `json:"labels,omitempty"`

	Milestone string `json:"milestone,omitempty"`

	Priority string `json:"priority,omitempty"`

	Summary string `json:"summary,omitempty"`

	TicketType string `json:"ticketType,omitempty"`

	UpdatedBy string `json:"updatedBy,omitempty"`

	Uri string `json:"uri"`
}

type TicketUpdatedSubjectV0_1_0 added in v0.4.1

type TicketUpdatedSubjectV0_1_0 struct {
	SubjectBase
	Content TicketUpdatedSubjectContentV0_1_0 `json:"content"`
}

func (TicketUpdatedSubjectV0_1_0) GetSubjectType added in v0.4.1

func (sc TicketUpdatedSubjectV0_1_0) GetSubjectType() SubjectType

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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