Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type OVN ¶
type OVN string
OVN models an opaque version number.
func NewOVNFromTime ¶
NewOVNFromTime encodes t as an OVN.
type Operation ¶
type Operation struct { ID ID Version Version OVN OVN Owner dssmodels.Owner StartTime *time.Time EndTime *time.Time AltitudeLower *float32 AltitudeUpper *float32 USSBaseURL string State OperationState Cells s2.CellUnion SubscriptionID ID }
Operation models an operation.
func (*Operation) ToProto ¶
func (o *Operation) ToProto() (*scdpb.OperationReference, error)
ToProto converts the Operation to its proto API format
func (*Operation) ValidateTimeRange ¶
ValidateTimeRange validates the time range of o.
type OperationState ¶
type OperationState string
OperationState models the state of an operation.
const ( OperationStateUnknown OperationState = "" OperationStateAccepted OperationState = "Accepted" OperationStateActivated OperationState = "Activated" OperationStateNonConforming OperationState = "NonConforming" OperationStateContingent OperationState = "Contingent" OperationStateEnded OperationState = "Ended" )
Aggregates constants for operations.
type Subscription ¶
type Subscription struct { ID ID Version Version NotificationIndex int Owner dssmodels.Owner StartTime *time.Time EndTime *time.Time AltitudeHi *float32 AltitudeLo *float32 BaseURL string NotifyForOperations bool NotifyForConstraints bool ImplicitSubscription bool DependentOperations []ID Cells s2.CellUnion }
Subscription represents an SCD subscription
func (*Subscription) AdjustTimeRange ¶
func (s *Subscription) AdjustTimeRange(now time.Time, old *Subscription) error
AdjustTimeRange adjusts the time range to the max allowed ranges on a subscription.
func (*Subscription) ToProto ¶
func (s *Subscription) ToProto() (*scdpb.Subscription, error)
ToProto converts the Subscription to its proto API format
Click to show internal directories.
Click to hide internal directories.