Documentation
¶
Index ¶
- Variables
- func ExhaustiveStates(f func(State))
- func GenerateKey(id uuid.UUID, role constants.DataspaceRole) []byte
- type Direction
- type Request
- func (tr *Request) GetAgreementID() uuid.UUID
- func (tr *Request) GetCallback() *url.URL
- func (tr *Request) GetConsumerPID() uuid.UUID
- func (tr *Request) GetFormat() string
- func (tr *Request) GetProviderPID() uuid.UUID
- func (tr *Request) GetPublishInfo() *providerv1.PublishInfo
- func (tr *Request) GetRole() constants.DataspaceRole
- func (tr *Request) GetSelf() *url.URL
- func (tr *Request) GetState() State
- func (tr *Request) GetTarget() string
- func (tr *Request) GetTransferDirection() Direction
- func (tr *Request) GetTransferProcess() shared.TransferProcess
- func (tr *Request) GetTransferRequest() *Request
- func (tr *Request) Modified() bool
- func (tr *Request) ReadOnly() bool
- func (tr *Request) SetProviderPID(id uuid.UUID)
- func (tr *Request) SetPublishInfo(pi *providerv1.PublishInfo)
- func (tr *Request) SetReadOnly()
- func (tr *Request) SetState(state State) error
- func (tr *Request) StorageKey() []byte
- func (tr *Request) ToBytes() ([]byte, error)
- type State
- func (p *State) GobDecode(b []byte) error
- func (p State) GobEncode() ([]byte, error)
- func (p State) IsValid() bool
- func (p State) MarshalJSON() ([]byte, error)
- func (p *State) Scan(value any) error
- func (i State) String() string
- func (p *State) UnmarshalJSON(b []byte) error
- func (p State) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var States = statesContainer{ INITIAL: State{ // contains filtered or unexported fields }, REQUESTED: State{ // contains filtered or unexported fields }, STARTED: State{ // contains filtered or unexported fields }, SUSPENDED: State{ // contains filtered or unexported fields }, COMPLETED: State{ // contains filtered or unexported fields }, TERMINATED: State{ // contains filtered or unexported fields }, }
Functions ¶
func ExhaustiveStates ¶
func ExhaustiveStates(f func(State))
func GenerateKey ¶
func GenerateKey(id uuid.UUID, role constants.DataspaceRole) []byte
Types ¶
type Request ¶
type Request struct {
// contains filtered or unexported fields
}
Request represents a transfer request and its state.
func New ¶
func New( consumerPID uuid.UUID, agreement *odrl.Agreement, format string, callback, self *url.URL, role constants.DataspaceRole, state State, publishInfo *providerv1.PublishInfo, ) *Request
func (*Request) GetAgreementID ¶
func (*Request) GetCallback ¶
func (*Request) GetConsumerPID ¶
func (*Request) GetPublishInfo ¶
func (tr *Request) GetPublishInfo() *providerv1.PublishInfo
func (*Request) GetRole ¶
func (tr *Request) GetRole() constants.DataspaceRole
func (*Request) GetTransferDirection ¶
func (*Request) GetTransferProcess ¶
func (tr *Request) GetTransferProcess() shared.TransferProcess
func (*Request) GetTransferRequest ¶
func (*Request) SetProviderPID ¶
func (*Request) SetPublishInfo ¶
func (tr *Request) SetPublishInfo(pi *providerv1.PublishInfo)
Request setters, these will panic when the transfer is RO.
func (*Request) StorageKey ¶
type State ¶
type State struct {
// contains filtered or unexported fields
}
func ParseState ¶
func (State) MarshalJSON ¶
func (*State) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.