apieventsrc

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventSource

type EventSource struct {
	// contains filtered or unexported fields
}

func EventSourceFromProto

func EventSourceFromProto(pb *pbeventsrc.EventSource) (*EventSource, error)

func NewEventSource

func NewEventSource(
	id EventSourceID,
	settings *EventSourceSettings,
	createdAt time.Time,
	updatedAt *time.Time,
) (*EventSource, error)

func (*EventSource) Clone

func (s *EventSource) Clone() *EventSource

func (*EventSource) ID

func (s *EventSource) ID() EventSourceID

func (*EventSource) MarshalJSON

func (s *EventSource) MarshalJSON() ([]byte, error)

func (*EventSource) PB

func (*EventSource) Settings

func (s *EventSource) Settings() *EventSourceSettings

func (*EventSource) UnmarshalJSON

func (s *EventSource) UnmarshalJSON(bs []byte) error

type EventSourceID

type EventSourceID string

func (EventSourceID) AccountName

func (id EventSourceID) AccountName() apiaccount.AccountName

func (EventSourceID) Empty

func (id EventSourceID) Empty() bool

func (EventSourceID) EventSourceName

func (id EventSourceID) EventSourceName() EventSourceName

func (*EventSourceID) MaybeString

func (id *EventSourceID) MaybeString() string

func (EventSourceID) Split

func (EventSourceID) String

func (id EventSourceID) String() string

type EventSourceName

type EventSourceName string

func (EventSourceName) String

func (n EventSourceName) String() string

type EventSourcePB

type EventSourcePB = pbeventsrc.EventSource

type EventSourceProjectBinding

type EventSourceProjectBinding struct {
	// contains filtered or unexported fields
}

func MustNewEventSourceProjectBinding

func MustNewEventSourceProjectBinding(
	srcid EventSourceID,
	pid apiproject.ProjectID,
	name string,
	assoc, cfg string,
	approved bool,
	settings *EventSourceProjectBindingSettings,
	createdAt time.Time,
	updatedAt *time.Time,
) *EventSourceProjectBinding

func NewEventSourceProjectBinding

func NewEventSourceProjectBinding(
	srcid EventSourceID,
	pid apiproject.ProjectID,
	name string,
	assoc, cfg string,
	approved bool,
	settings *EventSourceProjectBindingSettings,
	createdAt time.Time,
	updatedAt *time.Time,
) (*EventSourceProjectBinding, error)

func (*EventSourceProjectBinding) Approved

func (b *EventSourceProjectBinding) Approved() bool

func (*EventSourceProjectBinding) AssociationToken

func (b *EventSourceProjectBinding) AssociationToken() string

func (*EventSourceProjectBinding) Clone

func (*EventSourceProjectBinding) EventSourceID

func (b *EventSourceProjectBinding) EventSourceID() EventSourceID

func (*EventSourceProjectBinding) MarshalJSON

func (p *EventSourceProjectBinding) MarshalJSON() ([]byte, error)

func (*EventSourceProjectBinding) Name

func (*EventSourceProjectBinding) PB

func (*EventSourceProjectBinding) ProjectID

func (*EventSourceProjectBinding) Settings

func (*EventSourceProjectBinding) SourceConfig

func (b *EventSourceProjectBinding) SourceConfig() string

func (*EventSourceProjectBinding) UnmarshalJSON

func (p *EventSourceProjectBinding) UnmarshalJSON(bs []byte) error

func (*EventSourceProjectBinding) WithName added in v0.6.0

func (*EventSourceProjectBinding) WithoutTimes

type EventSourceProjectBindingPB

type EventSourceProjectBindingPB = pbeventsrc.EventSourceProjectBinding

type EventSourceProjectBindingSettings

type EventSourceProjectBindingSettings struct {
	// contains filtered or unexported fields
}

func (*EventSourceProjectBindingSettings) Clone

func (*EventSourceProjectBindingSettings) Enabled

func (*EventSourceProjectBindingSettings) MarshalJSON

func (p *EventSourceProjectBindingSettings) MarshalJSON() ([]byte, error)

func (*EventSourceProjectBindingSettings) PB

func (*EventSourceProjectBindingSettings) SetEnabled

func (*EventSourceProjectBindingSettings) UnmarshalJSON

func (p *EventSourceProjectBindingSettings) UnmarshalJSON(bs []byte) error

type EventSourceSettings

type EventSourceSettings struct {
	// contains filtered or unexported fields
}

func MustEventSourceSettingsFromProto

func MustEventSourceSettingsFromProto(pb *pbeventsrc.EventSourceSettings) *EventSourceSettings

func (*EventSourceSettings) Clone

func (*EventSourceSettings) Enabled

func (a *EventSourceSettings) Enabled() bool

func (*EventSourceSettings) MarshalJSON

func (s *EventSourceSettings) MarshalJSON() ([]byte, error)

func (*EventSourceSettings) PB

func (*EventSourceSettings) SetEnabled

func (a *EventSourceSettings) SetEnabled(e bool) *EventSourceSettings

func (*EventSourceSettings) SetTypes

func (a *EventSourceSettings) SetTypes(ts []string) *EventSourceSettings

func (*EventSourceSettings) Types

func (a *EventSourceSettings) Types() []string

func (*EventSourceSettings) UnmarshalJSON

func (s *EventSourceSettings) UnmarshalJSON(bs []byte) error

type EventSourceSettingsPB

type EventSourceSettingsPB = pbeventsrc.EventSourceSettings

Jump to

Keyboard shortcuts

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