mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-19 17:17:28 -06:00
[chore] upstep activity to v1.7.0-gts (#3074)
This commit is contained in:
parent
49009fbd8f
commit
1a66ea8998
96 changed files with 8362 additions and 4 deletions
130
vendor/github.com/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_always_interface.go
generated
vendored
Normal file
130
vendor/github.com/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_always_interface.go
generated
vendored
Normal file
|
|
@ -0,0 +1,130 @@
|
|||
// Code generated by astool. DO NOT EDIT.
|
||||
|
||||
package vocab
|
||||
|
||||
import "net/url"
|
||||
|
||||
// GoToSocialAlwaysPropertyIterator represents a single value for the "always"
|
||||
// property.
|
||||
type GoToSocialAlwaysPropertyIterator interface {
|
||||
// Get returns the value of this property. When IsXMLSchemaAnyURI returns
|
||||
// false, Get will return any arbitrary value.
|
||||
Get() *url.URL
|
||||
// GetIRI returns the IRI of this property. When IsIRI returns false,
|
||||
// GetIRI will return any arbitrary value.
|
||||
GetIRI() *url.URL
|
||||
// HasAny returns true if the value or IRI is set.
|
||||
HasAny() bool
|
||||
// IsIRI returns true if this property is an IRI.
|
||||
IsIRI() bool
|
||||
// IsXMLSchemaAnyURI returns true if this property is set and not an IRI.
|
||||
IsXMLSchemaAnyURI() bool
|
||||
// JSONLDContext returns the JSONLD URIs required in the context string
|
||||
// for this property and the specific values that are set. The value
|
||||
// in the map is the alias used to import the property's value or
|
||||
// values.
|
||||
JSONLDContext() map[string]string
|
||||
// KindIndex computes an arbitrary value for indexing this kind of value.
|
||||
// This is a leaky API detail only for folks looking to replace the
|
||||
// go-fed implementation. Applications should not use this method.
|
||||
KindIndex() int
|
||||
// LessThan compares two instances of this property with an arbitrary but
|
||||
// stable comparison. Applications should not use this because it is
|
||||
// only meant to help alternative implementations to go-fed to be able
|
||||
// to normalize nonfunctional properties.
|
||||
LessThan(o GoToSocialAlwaysPropertyIterator) bool
|
||||
// Name returns the name of this property: "GoToSocialAlways".
|
||||
Name() string
|
||||
// Next returns the next iterator, or nil if there is no next iterator.
|
||||
Next() GoToSocialAlwaysPropertyIterator
|
||||
// Prev returns the previous iterator, or nil if there is no previous
|
||||
// iterator.
|
||||
Prev() GoToSocialAlwaysPropertyIterator
|
||||
// Set sets the value of this property. Calling IsXMLSchemaAnyURI
|
||||
// afterwards will return true.
|
||||
Set(v *url.URL)
|
||||
// SetIRI sets the value of this property. Calling IsIRI afterwards will
|
||||
// return true.
|
||||
SetIRI(v *url.URL)
|
||||
}
|
||||
|
||||
// Indicates zero or more URI/IDs that can perform an interaction without
|
||||
// requiring approval by the Object AttributedTo Actor.
|
||||
type GoToSocialAlwaysProperty interface {
|
||||
// AppendIRI appends an IRI value to the back of a list of the property
|
||||
// "always"
|
||||
AppendIRI(v *url.URL)
|
||||
// AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of
|
||||
// the property "always". Invalidates iterators that are traversing
|
||||
// using Prev.
|
||||
AppendXMLSchemaAnyURI(v *url.URL)
|
||||
// At returns the property value for the specified index. Panics if the
|
||||
// index is out of bounds.
|
||||
At(index int) GoToSocialAlwaysPropertyIterator
|
||||
// Begin returns the first iterator, or nil if empty. Can be used with the
|
||||
// iterator's Next method and this property's End method to iterate
|
||||
// from front to back through all values.
|
||||
Begin() GoToSocialAlwaysPropertyIterator
|
||||
// Empty returns returns true if there are no elements.
|
||||
Empty() bool
|
||||
// End returns beyond-the-last iterator, which is nil. Can be used with
|
||||
// the iterator's Next method and this property's Begin method to
|
||||
// iterate from front to back through all values.
|
||||
End() GoToSocialAlwaysPropertyIterator
|
||||
// Insert inserts an IRI value at the specified index for a property
|
||||
// "always". Existing elements at that index and higher are shifted
|
||||
// back once. Invalidates all iterators.
|
||||
InsertIRI(idx int, v *url.URL)
|
||||
// InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for
|
||||
// a property "always". Existing elements at that index and higher are
|
||||
// shifted back once. Invalidates all iterators.
|
||||
InsertXMLSchemaAnyURI(idx int, v *url.URL)
|
||||
// JSONLDContext returns the JSONLD URIs required in the context string
|
||||
// for this property and the specific values that are set. The value
|
||||
// in the map is the alias used to import the property's value or
|
||||
// values.
|
||||
JSONLDContext() map[string]string
|
||||
// KindIndex computes an arbitrary value for indexing this kind of value.
|
||||
// This is a leaky API method specifically needed only for alternate
|
||||
// implementations for go-fed. Applications should not use this
|
||||
// method. Panics if the index is out of bounds.
|
||||
KindIndex(idx int) int
|
||||
// Len returns the number of values that exist for the "always" property.
|
||||
Len() (length int)
|
||||
// Less computes whether another property is less than this one. Mixing
|
||||
// types results in a consistent but arbitrary ordering
|
||||
Less(i, j int) bool
|
||||
// LessThan compares two instances of this property with an arbitrary but
|
||||
// stable comparison. Applications should not use this because it is
|
||||
// only meant to help alternative implementations to go-fed to be able
|
||||
// to normalize nonfunctional properties.
|
||||
LessThan(o GoToSocialAlwaysProperty) bool
|
||||
// Name returns the name of this property ("always") with any alias.
|
||||
Name() string
|
||||
// PrependIRI prepends an IRI value to the front of a list of the property
|
||||
// "always".
|
||||
PrependIRI(v *url.URL)
|
||||
// PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list
|
||||
// of the property "always". Invalidates all iterators.
|
||||
PrependXMLSchemaAnyURI(v *url.URL)
|
||||
// Remove deletes an element at the specified index from a list of the
|
||||
// property "always", regardless of its type. Panics if the index is
|
||||
// out of bounds. Invalidates all iterators.
|
||||
Remove(idx int)
|
||||
// Serialize converts this into an interface representation suitable for
|
||||
// marshalling into a text or binary format. Applications should not
|
||||
// need this function as most typical use cases serialize types
|
||||
// instead of individual properties. It is exposed for alternatives to
|
||||
// go-fed implementations to use.
|
||||
Serialize() (interface{}, error)
|
||||
// Set sets a anyURI value to be at the specified index for the property
|
||||
// "always". Panics if the index is out of bounds. Invalidates all
|
||||
// iterators.
|
||||
Set(idx int, v *url.URL)
|
||||
// SetIRI sets an IRI value to be at the specified index for the property
|
||||
// "always". Panics if the index is out of bounds.
|
||||
SetIRI(idx int, v *url.URL)
|
||||
// Swap swaps the location of values at two indices for the "always"
|
||||
// property.
|
||||
Swap(i, j int)
|
||||
}
|
||||
132
vendor/github.com/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_approvalRequired_interface.go
generated
vendored
Normal file
132
vendor/github.com/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_approvalRequired_interface.go
generated
vendored
Normal file
|
|
@ -0,0 +1,132 @@
|
|||
// Code generated by astool. DO NOT EDIT.
|
||||
|
||||
package vocab
|
||||
|
||||
import "net/url"
|
||||
|
||||
// GoToSocialApprovalRequiredPropertyIterator represents a single value for the
|
||||
// "approvalRequired" property.
|
||||
type GoToSocialApprovalRequiredPropertyIterator interface {
|
||||
// Get returns the value of this property. When IsXMLSchemaAnyURI returns
|
||||
// false, Get will return any arbitrary value.
|
||||
Get() *url.URL
|
||||
// GetIRI returns the IRI of this property. When IsIRI returns false,
|
||||
// GetIRI will return any arbitrary value.
|
||||
GetIRI() *url.URL
|
||||
// HasAny returns true if the value or IRI is set.
|
||||
HasAny() bool
|
||||
// IsIRI returns true if this property is an IRI.
|
||||
IsIRI() bool
|
||||
// IsXMLSchemaAnyURI returns true if this property is set and not an IRI.
|
||||
IsXMLSchemaAnyURI() bool
|
||||
// JSONLDContext returns the JSONLD URIs required in the context string
|
||||
// for this property and the specific values that are set. The value
|
||||
// in the map is the alias used to import the property's value or
|
||||
// values.
|
||||
JSONLDContext() map[string]string
|
||||
// KindIndex computes an arbitrary value for indexing this kind of value.
|
||||
// This is a leaky API detail only for folks looking to replace the
|
||||
// go-fed implementation. Applications should not use this method.
|
||||
KindIndex() int
|
||||
// LessThan compares two instances of this property with an arbitrary but
|
||||
// stable comparison. Applications should not use this because it is
|
||||
// only meant to help alternative implementations to go-fed to be able
|
||||
// to normalize nonfunctional properties.
|
||||
LessThan(o GoToSocialApprovalRequiredPropertyIterator) bool
|
||||
// Name returns the name of this property: "GoToSocialApprovalRequired".
|
||||
Name() string
|
||||
// Next returns the next iterator, or nil if there is no next iterator.
|
||||
Next() GoToSocialApprovalRequiredPropertyIterator
|
||||
// Prev returns the previous iterator, or nil if there is no previous
|
||||
// iterator.
|
||||
Prev() GoToSocialApprovalRequiredPropertyIterator
|
||||
// Set sets the value of this property. Calling IsXMLSchemaAnyURI
|
||||
// afterwards will return true.
|
||||
Set(v *url.URL)
|
||||
// SetIRI sets the value of this property. Calling IsIRI afterwards will
|
||||
// return true.
|
||||
SetIRI(v *url.URL)
|
||||
}
|
||||
|
||||
// Indicates zero or more URI/IDs that require approval by the Object AttributedTo
|
||||
// Actor in order to perform an interaction.
|
||||
type GoToSocialApprovalRequiredProperty interface {
|
||||
// AppendIRI appends an IRI value to the back of a list of the property
|
||||
// "approvalRequired"
|
||||
AppendIRI(v *url.URL)
|
||||
// AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of
|
||||
// the property "approvalRequired". Invalidates iterators that are
|
||||
// traversing using Prev.
|
||||
AppendXMLSchemaAnyURI(v *url.URL)
|
||||
// At returns the property value for the specified index. Panics if the
|
||||
// index is out of bounds.
|
||||
At(index int) GoToSocialApprovalRequiredPropertyIterator
|
||||
// Begin returns the first iterator, or nil if empty. Can be used with the
|
||||
// iterator's Next method and this property's End method to iterate
|
||||
// from front to back through all values.
|
||||
Begin() GoToSocialApprovalRequiredPropertyIterator
|
||||
// Empty returns returns true if there are no elements.
|
||||
Empty() bool
|
||||
// End returns beyond-the-last iterator, which is nil. Can be used with
|
||||
// the iterator's Next method and this property's Begin method to
|
||||
// iterate from front to back through all values.
|
||||
End() GoToSocialApprovalRequiredPropertyIterator
|
||||
// Insert inserts an IRI value at the specified index for a property
|
||||
// "approvalRequired". Existing elements at that index and higher are
|
||||
// shifted back once. Invalidates all iterators.
|
||||
InsertIRI(idx int, v *url.URL)
|
||||
// InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for
|
||||
// a property "approvalRequired". Existing elements at that index and
|
||||
// higher are shifted back once. Invalidates all iterators.
|
||||
InsertXMLSchemaAnyURI(idx int, v *url.URL)
|
||||
// JSONLDContext returns the JSONLD URIs required in the context string
|
||||
// for this property and the specific values that are set. The value
|
||||
// in the map is the alias used to import the property's value or
|
||||
// values.
|
||||
JSONLDContext() map[string]string
|
||||
// KindIndex computes an arbitrary value for indexing this kind of value.
|
||||
// This is a leaky API method specifically needed only for alternate
|
||||
// implementations for go-fed. Applications should not use this
|
||||
// method. Panics if the index is out of bounds.
|
||||
KindIndex(idx int) int
|
||||
// Len returns the number of values that exist for the "approvalRequired"
|
||||
// property.
|
||||
Len() (length int)
|
||||
// Less computes whether another property is less than this one. Mixing
|
||||
// types results in a consistent but arbitrary ordering
|
||||
Less(i, j int) bool
|
||||
// LessThan compares two instances of this property with an arbitrary but
|
||||
// stable comparison. Applications should not use this because it is
|
||||
// only meant to help alternative implementations to go-fed to be able
|
||||
// to normalize nonfunctional properties.
|
||||
LessThan(o GoToSocialApprovalRequiredProperty) bool
|
||||
// Name returns the name of this property ("approvalRequired") with any
|
||||
// alias.
|
||||
Name() string
|
||||
// PrependIRI prepends an IRI value to the front of a list of the property
|
||||
// "approvalRequired".
|
||||
PrependIRI(v *url.URL)
|
||||
// PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list
|
||||
// of the property "approvalRequired". Invalidates all iterators.
|
||||
PrependXMLSchemaAnyURI(v *url.URL)
|
||||
// Remove deletes an element at the specified index from a list of the
|
||||
// property "approvalRequired", regardless of its type. Panics if the
|
||||
// index is out of bounds. Invalidates all iterators.
|
||||
Remove(idx int)
|
||||
// Serialize converts this into an interface representation suitable for
|
||||
// marshalling into a text or binary format. Applications should not
|
||||
// need this function as most typical use cases serialize types
|
||||
// instead of individual properties. It is exposed for alternatives to
|
||||
// go-fed implementations to use.
|
||||
Serialize() (interface{}, error)
|
||||
// Set sets a anyURI value to be at the specified index for the property
|
||||
// "approvalRequired". Panics if the index is out of bounds.
|
||||
// Invalidates all iterators.
|
||||
Set(idx int, v *url.URL)
|
||||
// SetIRI sets an IRI value to be at the specified index for the property
|
||||
// "approvalRequired". Panics if the index is out of bounds.
|
||||
SetIRI(idx int, v *url.URL)
|
||||
// Swap swaps the location of values at two indices for the
|
||||
// "approvalRequired" property.
|
||||
Swap(i, j int)
|
||||
}
|
||||
55
vendor/github.com/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_approvedBy_interface.go
generated
vendored
Normal file
55
vendor/github.com/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_approvedBy_interface.go
generated
vendored
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
// Code generated by astool. DO NOT EDIT.
|
||||
|
||||
package vocab
|
||||
|
||||
import "net/url"
|
||||
|
||||
// URI/ID of an Approve Activity, which itself points towards the ID of the
|
||||
// Activity or Object to which this property is attached. The presence of this
|
||||
// property on an Activity or Object indicates that an interaction has been
|
||||
// Approve'd by the Actor whose Object this Activity or Object interacts with.
|
||||
type GoToSocialApprovedByProperty interface {
|
||||
// Clear ensures no value of this property is set. Calling
|
||||
// IsXMLSchemaAnyURI afterwards will return false.
|
||||
Clear()
|
||||
// Get returns the value of this property. When IsXMLSchemaAnyURI returns
|
||||
// false, Get will return any arbitrary value.
|
||||
Get() *url.URL
|
||||
// GetIRI returns the IRI of this property. When IsIRI returns false,
|
||||
// GetIRI will return any arbitrary value.
|
||||
GetIRI() *url.URL
|
||||
// HasAny returns true if the value or IRI is set.
|
||||
HasAny() bool
|
||||
// IsIRI returns true if this property is an IRI.
|
||||
IsIRI() bool
|
||||
// IsXMLSchemaAnyURI returns true if this property is set and not an IRI.
|
||||
IsXMLSchemaAnyURI() bool
|
||||
// JSONLDContext returns the JSONLD URIs required in the context string
|
||||
// for this property and the specific values that are set. The value
|
||||
// in the map is the alias used to import the property's value or
|
||||
// values.
|
||||
JSONLDContext() map[string]string
|
||||
// KindIndex computes an arbitrary value for indexing this kind of value.
|
||||
// This is a leaky API detail only for folks looking to replace the
|
||||
// go-fed implementation. Applications should not use this method.
|
||||
KindIndex() int
|
||||
// LessThan compares two instances of this property with an arbitrary but
|
||||
// stable comparison. Applications should not use this because it is
|
||||
// only meant to help alternative implementations to go-fed to be able
|
||||
// to normalize nonfunctional properties.
|
||||
LessThan(o GoToSocialApprovedByProperty) bool
|
||||
// Name returns the name of this property: "approvedBy".
|
||||
Name() string
|
||||
// Serialize converts this into an interface representation suitable for
|
||||
// marshalling into a text or binary format. Applications should not
|
||||
// need this function as most typical use cases serialize types
|
||||
// instead of individual properties. It is exposed for alternatives to
|
||||
// go-fed implementations to use.
|
||||
Serialize() (interface{}, error)
|
||||
// Set sets the value of this property. Calling IsXMLSchemaAnyURI
|
||||
// afterwards will return true.
|
||||
Set(v *url.URL)
|
||||
// SetIRI sets the value of this property. Calling IsIRI afterwards will
|
||||
// return true.
|
||||
SetIRI(v *url.URL)
|
||||
}
|
||||
158
vendor/github.com/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_canAnnounce_interface.go
generated
vendored
Normal file
158
vendor/github.com/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_canAnnounce_interface.go
generated
vendored
Normal file
|
|
@ -0,0 +1,158 @@
|
|||
// Code generated by astool. DO NOT EDIT.
|
||||
|
||||
package vocab
|
||||
|
||||
import "net/url"
|
||||
|
||||
// GoToSocialCanAnnouncePropertyIterator represents a single value for the
|
||||
// "canAnnounce" property.
|
||||
type GoToSocialCanAnnouncePropertyIterator interface {
|
||||
// Get returns the value of this property. When IsGoToSocialCanAnnounce
|
||||
// returns false, Get will return any arbitrary value.
|
||||
Get() GoToSocialCanAnnounce
|
||||
// GetIRI returns the IRI of this property. When IsIRI returns false,
|
||||
// GetIRI will return any arbitrary value.
|
||||
GetIRI() *url.URL
|
||||
// GetType returns the value in this property as a Type. Returns nil if
|
||||
// the value is not an ActivityStreams type, such as an IRI or another
|
||||
// value.
|
||||
GetType() Type
|
||||
// HasAny returns true if the value or IRI is set.
|
||||
HasAny() bool
|
||||
// IsGoToSocialCanAnnounce returns true if this property is set and not an
|
||||
// IRI.
|
||||
IsGoToSocialCanAnnounce() bool
|
||||
// IsIRI returns true if this property is an IRI.
|
||||
IsIRI() bool
|
||||
// JSONLDContext returns the JSONLD URIs required in the context string
|
||||
// for this property and the specific values that are set. The value
|
||||
// in the map is the alias used to import the property's value or
|
||||
// values.
|
||||
JSONLDContext() map[string]string
|
||||
// KindIndex computes an arbitrary value for indexing this kind of value.
|
||||
// This is a leaky API detail only for folks looking to replace the
|
||||
// go-fed implementation. Applications should not use this method.
|
||||
KindIndex() int
|
||||
// LessThan compares two instances of this property with an arbitrary but
|
||||
// stable comparison. Applications should not use this because it is
|
||||
// only meant to help alternative implementations to go-fed to be able
|
||||
// to normalize nonfunctional properties.
|
||||
LessThan(o GoToSocialCanAnnouncePropertyIterator) bool
|
||||
// Name returns the name of this property: "GoToSocialCanAnnounce".
|
||||
Name() string
|
||||
// Next returns the next iterator, or nil if there is no next iterator.
|
||||
Next() GoToSocialCanAnnouncePropertyIterator
|
||||
// Prev returns the previous iterator, or nil if there is no previous
|
||||
// iterator.
|
||||
Prev() GoToSocialCanAnnouncePropertyIterator
|
||||
// Set sets the value of this property. Calling IsGoToSocialCanAnnounce
|
||||
// afterwards will return true.
|
||||
Set(v GoToSocialCanAnnounce)
|
||||
// SetIRI sets the value of this property. Calling IsIRI afterwards will
|
||||
// return true.
|
||||
SetIRI(v *url.URL)
|
||||
// SetType attempts to set the property for the arbitrary type. Returns an
|
||||
// error if it is not a valid type to set on this property.
|
||||
SetType(t Type) error
|
||||
}
|
||||
|
||||
// Defines who can Announce with an object property set to the URI/ID of the
|
||||
// Object to which this interactionPolicy is attached.
|
||||
type GoToSocialCanAnnounceProperty interface {
|
||||
// AppendGoToSocialCanAnnounce appends a CanAnnounce value to the back of
|
||||
// a list of the property "canAnnounce". Invalidates iterators that
|
||||
// are traversing using Prev.
|
||||
AppendGoToSocialCanAnnounce(v GoToSocialCanAnnounce)
|
||||
// AppendIRI appends an IRI value to the back of a list of the property
|
||||
// "canAnnounce"
|
||||
AppendIRI(v *url.URL)
|
||||
// PrependType prepends an arbitrary type value to the front of a list of
|
||||
// the property "canAnnounce". Invalidates iterators that are
|
||||
// traversing using Prev. Returns an error if the type is not a valid
|
||||
// one to set for this property.
|
||||
AppendType(t Type) error
|
||||
// At returns the property value for the specified index. Panics if the
|
||||
// index is out of bounds.
|
||||
At(index int) GoToSocialCanAnnouncePropertyIterator
|
||||
// Begin returns the first iterator, or nil if empty. Can be used with the
|
||||
// iterator's Next method and this property's End method to iterate
|
||||
// from front to back through all values.
|
||||
Begin() GoToSocialCanAnnouncePropertyIterator
|
||||
// Empty returns returns true if there are no elements.
|
||||
Empty() bool
|
||||
// End returns beyond-the-last iterator, which is nil. Can be used with
|
||||
// the iterator's Next method and this property's Begin method to
|
||||
// iterate from front to back through all values.
|
||||
End() GoToSocialCanAnnouncePropertyIterator
|
||||
// InsertGoToSocialCanAnnounce inserts a CanAnnounce value at the
|
||||
// specified index for a property "canAnnounce". Existing elements at
|
||||
// that index and higher are shifted back once. Invalidates all
|
||||
// iterators.
|
||||
InsertGoToSocialCanAnnounce(idx int, v GoToSocialCanAnnounce)
|
||||
// Insert inserts an IRI value at the specified index for a property
|
||||
// "canAnnounce". Existing elements at that index and higher are
|
||||
// shifted back once. Invalidates all iterators.
|
||||
InsertIRI(idx int, v *url.URL)
|
||||
// PrependType prepends an arbitrary type value to the front of a list of
|
||||
// the property "canAnnounce". Invalidates all iterators. Returns an
|
||||
// error if the type is not a valid one to set for this property.
|
||||
InsertType(idx int, t Type) error
|
||||
// JSONLDContext returns the JSONLD URIs required in the context string
|
||||
// for this property and the specific values that are set. The value
|
||||
// in the map is the alias used to import the property's value or
|
||||
// values.
|
||||
JSONLDContext() map[string]string
|
||||
// KindIndex computes an arbitrary value for indexing this kind of value.
|
||||
// This is a leaky API method specifically needed only for alternate
|
||||
// implementations for go-fed. Applications should not use this
|
||||
// method. Panics if the index is out of bounds.
|
||||
KindIndex(idx int) int
|
||||
// Len returns the number of values that exist for the "canAnnounce"
|
||||
// property.
|
||||
Len() (length int)
|
||||
// Less computes whether another property is less than this one. Mixing
|
||||
// types results in a consistent but arbitrary ordering
|
||||
Less(i, j int) bool
|
||||
// LessThan compares two instances of this property with an arbitrary but
|
||||
// stable comparison. Applications should not use this because it is
|
||||
// only meant to help alternative implementations to go-fed to be able
|
||||
// to normalize nonfunctional properties.
|
||||
LessThan(o GoToSocialCanAnnounceProperty) bool
|
||||
// Name returns the name of this property ("canAnnounce") with any alias.
|
||||
Name() string
|
||||
// PrependGoToSocialCanAnnounce prepends a CanAnnounce value to the front
|
||||
// of a list of the property "canAnnounce". Invalidates all iterators.
|
||||
PrependGoToSocialCanAnnounce(v GoToSocialCanAnnounce)
|
||||
// PrependIRI prepends an IRI value to the front of a list of the property
|
||||
// "canAnnounce".
|
||||
PrependIRI(v *url.URL)
|
||||
// PrependType prepends an arbitrary type value to the front of a list of
|
||||
// the property "canAnnounce". Invalidates all iterators. Returns an
|
||||
// error if the type is not a valid one to set for this property.
|
||||
PrependType(t Type) error
|
||||
// Remove deletes an element at the specified index from a list of the
|
||||
// property "canAnnounce", regardless of its type. Panics if the index
|
||||
// is out of bounds. Invalidates all iterators.
|
||||
Remove(idx int)
|
||||
// Serialize converts this into an interface representation suitable for
|
||||
// marshalling into a text or binary format. Applications should not
|
||||
// need this function as most typical use cases serialize types
|
||||
// instead of individual properties. It is exposed for alternatives to
|
||||
// go-fed implementations to use.
|
||||
Serialize() (interface{}, error)
|
||||
// Set sets a CanAnnounce value to be at the specified index for the
|
||||
// property "canAnnounce". Panics if the index is out of bounds.
|
||||
// Invalidates all iterators.
|
||||
Set(idx int, v GoToSocialCanAnnounce)
|
||||
// SetIRI sets an IRI value to be at the specified index for the property
|
||||
// "canAnnounce". Panics if the index is out of bounds.
|
||||
SetIRI(idx int, v *url.URL)
|
||||
// SetType sets an arbitrary type value to the specified index of the
|
||||
// property "canAnnounce". Invalidates all iterators. Returns an error
|
||||
// if the type is not a valid one to set for this property. Panics if
|
||||
// the index is out of bounds.
|
||||
SetType(idx int, t Type) error
|
||||
// Swap swaps the location of values at two indices for the "canAnnounce"
|
||||
// property.
|
||||
Swap(i, j int)
|
||||
}
|
||||
155
vendor/github.com/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_canLike_interface.go
generated
vendored
Normal file
155
vendor/github.com/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_canLike_interface.go
generated
vendored
Normal file
|
|
@ -0,0 +1,155 @@
|
|||
// Code generated by astool. DO NOT EDIT.
|
||||
|
||||
package vocab
|
||||
|
||||
import "net/url"
|
||||
|
||||
// GoToSocialCanLikePropertyIterator represents a single value for the "canLike"
|
||||
// property.
|
||||
type GoToSocialCanLikePropertyIterator interface {
|
||||
// Get returns the value of this property. When IsGoToSocialCanLike
|
||||
// returns false, Get will return any arbitrary value.
|
||||
Get() GoToSocialCanLike
|
||||
// GetIRI returns the IRI of this property. When IsIRI returns false,
|
||||
// GetIRI will return any arbitrary value.
|
||||
GetIRI() *url.URL
|
||||
// GetType returns the value in this property as a Type. Returns nil if
|
||||
// the value is not an ActivityStreams type, such as an IRI or another
|
||||
// value.
|
||||
GetType() Type
|
||||
// HasAny returns true if the value or IRI is set.
|
||||
HasAny() bool
|
||||
// IsGoToSocialCanLike returns true if this property is set and not an IRI.
|
||||
IsGoToSocialCanLike() bool
|
||||
// IsIRI returns true if this property is an IRI.
|
||||
IsIRI() bool
|
||||
// JSONLDContext returns the JSONLD URIs required in the context string
|
||||
// for this property and the specific values that are set. The value
|
||||
// in the map is the alias used to import the property's value or
|
||||
// values.
|
||||
JSONLDContext() map[string]string
|
||||
// KindIndex computes an arbitrary value for indexing this kind of value.
|
||||
// This is a leaky API detail only for folks looking to replace the
|
||||
// go-fed implementation. Applications should not use this method.
|
||||
KindIndex() int
|
||||
// LessThan compares two instances of this property with an arbitrary but
|
||||
// stable comparison. Applications should not use this because it is
|
||||
// only meant to help alternative implementations to go-fed to be able
|
||||
// to normalize nonfunctional properties.
|
||||
LessThan(o GoToSocialCanLikePropertyIterator) bool
|
||||
// Name returns the name of this property: "GoToSocialCanLike".
|
||||
Name() string
|
||||
// Next returns the next iterator, or nil if there is no next iterator.
|
||||
Next() GoToSocialCanLikePropertyIterator
|
||||
// Prev returns the previous iterator, or nil if there is no previous
|
||||
// iterator.
|
||||
Prev() GoToSocialCanLikePropertyIterator
|
||||
// Set sets the value of this property. Calling IsGoToSocialCanLike
|
||||
// afterwards will return true.
|
||||
Set(v GoToSocialCanLike)
|
||||
// SetIRI sets the value of this property. Calling IsIRI afterwards will
|
||||
// return true.
|
||||
SetIRI(v *url.URL)
|
||||
// SetType attempts to set the property for the arbitrary type. Returns an
|
||||
// error if it is not a valid type to set on this property.
|
||||
SetType(t Type) error
|
||||
}
|
||||
|
||||
// Defines who can Like with an object property set to the URI/ID of the Object to
|
||||
// which this interactionPolicy is attached.
|
||||
type GoToSocialCanLikeProperty interface {
|
||||
// AppendGoToSocialCanLike appends a CanLike value to the back of a list
|
||||
// of the property "canLike". Invalidates iterators that are
|
||||
// traversing using Prev.
|
||||
AppendGoToSocialCanLike(v GoToSocialCanLike)
|
||||
// AppendIRI appends an IRI value to the back of a list of the property
|
||||
// "canLike"
|
||||
AppendIRI(v *url.URL)
|
||||
// PrependType prepends an arbitrary type value to the front of a list of
|
||||
// the property "canLike". Invalidates iterators that are traversing
|
||||
// using Prev. Returns an error if the type is not a valid one to set
|
||||
// for this property.
|
||||
AppendType(t Type) error
|
||||
// At returns the property value for the specified index. Panics if the
|
||||
// index is out of bounds.
|
||||
At(index int) GoToSocialCanLikePropertyIterator
|
||||
// Begin returns the first iterator, or nil if empty. Can be used with the
|
||||
// iterator's Next method and this property's End method to iterate
|
||||
// from front to back through all values.
|
||||
Begin() GoToSocialCanLikePropertyIterator
|
||||
// Empty returns returns true if there are no elements.
|
||||
Empty() bool
|
||||
// End returns beyond-the-last iterator, which is nil. Can be used with
|
||||
// the iterator's Next method and this property's Begin method to
|
||||
// iterate from front to back through all values.
|
||||
End() GoToSocialCanLikePropertyIterator
|
||||
// InsertGoToSocialCanLike inserts a CanLike value at the specified index
|
||||
// for a property "canLike". Existing elements at that index and
|
||||
// higher are shifted back once. Invalidates all iterators.
|
||||
InsertGoToSocialCanLike(idx int, v GoToSocialCanLike)
|
||||
// Insert inserts an IRI value at the specified index for a property
|
||||
// "canLike". Existing elements at that index and higher are shifted
|
||||
// back once. Invalidates all iterators.
|
||||
InsertIRI(idx int, v *url.URL)
|
||||
// PrependType prepends an arbitrary type value to the front of a list of
|
||||
// the property "canLike". Invalidates all iterators. Returns an error
|
||||
// if the type is not a valid one to set for this property.
|
||||
InsertType(idx int, t Type) error
|
||||
// JSONLDContext returns the JSONLD URIs required in the context string
|
||||
// for this property and the specific values that are set. The value
|
||||
// in the map is the alias used to import the property's value or
|
||||
// values.
|
||||
JSONLDContext() map[string]string
|
||||
// KindIndex computes an arbitrary value for indexing this kind of value.
|
||||
// This is a leaky API method specifically needed only for alternate
|
||||
// implementations for go-fed. Applications should not use this
|
||||
// method. Panics if the index is out of bounds.
|
||||
KindIndex(idx int) int
|
||||
// Len returns the number of values that exist for the "canLike" property.
|
||||
Len() (length int)
|
||||
// Less computes whether another property is less than this one. Mixing
|
||||
// types results in a consistent but arbitrary ordering
|
||||
Less(i, j int) bool
|
||||
// LessThan compares two instances of this property with an arbitrary but
|
||||
// stable comparison. Applications should not use this because it is
|
||||
// only meant to help alternative implementations to go-fed to be able
|
||||
// to normalize nonfunctional properties.
|
||||
LessThan(o GoToSocialCanLikeProperty) bool
|
||||
// Name returns the name of this property ("canLike") with any alias.
|
||||
Name() string
|
||||
// PrependGoToSocialCanLike prepends a CanLike value to the front of a
|
||||
// list of the property "canLike". Invalidates all iterators.
|
||||
PrependGoToSocialCanLike(v GoToSocialCanLike)
|
||||
// PrependIRI prepends an IRI value to the front of a list of the property
|
||||
// "canLike".
|
||||
PrependIRI(v *url.URL)
|
||||
// PrependType prepends an arbitrary type value to the front of a list of
|
||||
// the property "canLike". Invalidates all iterators. Returns an error
|
||||
// if the type is not a valid one to set for this property.
|
||||
PrependType(t Type) error
|
||||
// Remove deletes an element at the specified index from a list of the
|
||||
// property "canLike", regardless of its type. Panics if the index is
|
||||
// out of bounds. Invalidates all iterators.
|
||||
Remove(idx int)
|
||||
// Serialize converts this into an interface representation suitable for
|
||||
// marshalling into a text or binary format. Applications should not
|
||||
// need this function as most typical use cases serialize types
|
||||
// instead of individual properties. It is exposed for alternatives to
|
||||
// go-fed implementations to use.
|
||||
Serialize() (interface{}, error)
|
||||
// Set sets a CanLike value to be at the specified index for the property
|
||||
// "canLike". Panics if the index is out of bounds. Invalidates all
|
||||
// iterators.
|
||||
Set(idx int, v GoToSocialCanLike)
|
||||
// SetIRI sets an IRI value to be at the specified index for the property
|
||||
// "canLike". Panics if the index is out of bounds.
|
||||
SetIRI(idx int, v *url.URL)
|
||||
// SetType sets an arbitrary type value to the specified index of the
|
||||
// property "canLike". Invalidates all iterators. Returns an error if
|
||||
// the type is not a valid one to set for this property. Panics if the
|
||||
// index is out of bounds.
|
||||
SetType(idx int, t Type) error
|
||||
// Swap swaps the location of values at two indices for the "canLike"
|
||||
// property.
|
||||
Swap(i, j int)
|
||||
}
|
||||
156
vendor/github.com/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_canReply_interface.go
generated
vendored
Normal file
156
vendor/github.com/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_canReply_interface.go
generated
vendored
Normal file
|
|
@ -0,0 +1,156 @@
|
|||
// Code generated by astool. DO NOT EDIT.
|
||||
|
||||
package vocab
|
||||
|
||||
import "net/url"
|
||||
|
||||
// GoToSocialCanReplyPropertyIterator represents a single value for the "canReply"
|
||||
// property.
|
||||
type GoToSocialCanReplyPropertyIterator interface {
|
||||
// Get returns the value of this property. When IsGoToSocialCanReply
|
||||
// returns false, Get will return any arbitrary value.
|
||||
Get() GoToSocialCanReply
|
||||
// GetIRI returns the IRI of this property. When IsIRI returns false,
|
||||
// GetIRI will return any arbitrary value.
|
||||
GetIRI() *url.URL
|
||||
// GetType returns the value in this property as a Type. Returns nil if
|
||||
// the value is not an ActivityStreams type, such as an IRI or another
|
||||
// value.
|
||||
GetType() Type
|
||||
// HasAny returns true if the value or IRI is set.
|
||||
HasAny() bool
|
||||
// IsGoToSocialCanReply returns true if this property is set and not an
|
||||
// IRI.
|
||||
IsGoToSocialCanReply() bool
|
||||
// IsIRI returns true if this property is an IRI.
|
||||
IsIRI() bool
|
||||
// JSONLDContext returns the JSONLD URIs required in the context string
|
||||
// for this property and the specific values that are set. The value
|
||||
// in the map is the alias used to import the property's value or
|
||||
// values.
|
||||
JSONLDContext() map[string]string
|
||||
// KindIndex computes an arbitrary value for indexing this kind of value.
|
||||
// This is a leaky API detail only for folks looking to replace the
|
||||
// go-fed implementation. Applications should not use this method.
|
||||
KindIndex() int
|
||||
// LessThan compares two instances of this property with an arbitrary but
|
||||
// stable comparison. Applications should not use this because it is
|
||||
// only meant to help alternative implementations to go-fed to be able
|
||||
// to normalize nonfunctional properties.
|
||||
LessThan(o GoToSocialCanReplyPropertyIterator) bool
|
||||
// Name returns the name of this property: "GoToSocialCanReply".
|
||||
Name() string
|
||||
// Next returns the next iterator, or nil if there is no next iterator.
|
||||
Next() GoToSocialCanReplyPropertyIterator
|
||||
// Prev returns the previous iterator, or nil if there is no previous
|
||||
// iterator.
|
||||
Prev() GoToSocialCanReplyPropertyIterator
|
||||
// Set sets the value of this property. Calling IsGoToSocialCanReply
|
||||
// afterwards will return true.
|
||||
Set(v GoToSocialCanReply)
|
||||
// SetIRI sets the value of this property. Calling IsIRI afterwards will
|
||||
// return true.
|
||||
SetIRI(v *url.URL)
|
||||
// SetType attempts to set the property for the arbitrary type. Returns an
|
||||
// error if it is not a valid type to set on this property.
|
||||
SetType(t Type) error
|
||||
}
|
||||
|
||||
// Defines who can Create a new Object with an inReplyTo property set to the
|
||||
// URI/ID of the Object to which this interactionPolicy is attached.
|
||||
type GoToSocialCanReplyProperty interface {
|
||||
// AppendGoToSocialCanReply appends a CanReply value to the back of a list
|
||||
// of the property "canReply". Invalidates iterators that are
|
||||
// traversing using Prev.
|
||||
AppendGoToSocialCanReply(v GoToSocialCanReply)
|
||||
// AppendIRI appends an IRI value to the back of a list of the property
|
||||
// "canReply"
|
||||
AppendIRI(v *url.URL)
|
||||
// PrependType prepends an arbitrary type value to the front of a list of
|
||||
// the property "canReply". Invalidates iterators that are traversing
|
||||
// using Prev. Returns an error if the type is not a valid one to set
|
||||
// for this property.
|
||||
AppendType(t Type) error
|
||||
// At returns the property value for the specified index. Panics if the
|
||||
// index is out of bounds.
|
||||
At(index int) GoToSocialCanReplyPropertyIterator
|
||||
// Begin returns the first iterator, or nil if empty. Can be used with the
|
||||
// iterator's Next method and this property's End method to iterate
|
||||
// from front to back through all values.
|
||||
Begin() GoToSocialCanReplyPropertyIterator
|
||||
// Empty returns returns true if there are no elements.
|
||||
Empty() bool
|
||||
// End returns beyond-the-last iterator, which is nil. Can be used with
|
||||
// the iterator's Next method and this property's Begin method to
|
||||
// iterate from front to back through all values.
|
||||
End() GoToSocialCanReplyPropertyIterator
|
||||
// InsertGoToSocialCanReply inserts a CanReply value at the specified
|
||||
// index for a property "canReply". Existing elements at that index
|
||||
// and higher are shifted back once. Invalidates all iterators.
|
||||
InsertGoToSocialCanReply(idx int, v GoToSocialCanReply)
|
||||
// Insert inserts an IRI value at the specified index for a property
|
||||
// "canReply". Existing elements at that index and higher are shifted
|
||||
// back once. Invalidates all iterators.
|
||||
InsertIRI(idx int, v *url.URL)
|
||||
// PrependType prepends an arbitrary type value to the front of a list of
|
||||
// the property "canReply". Invalidates all iterators. Returns an
|
||||
// error if the type is not a valid one to set for this property.
|
||||
InsertType(idx int, t Type) error
|
||||
// JSONLDContext returns the JSONLD URIs required in the context string
|
||||
// for this property and the specific values that are set. The value
|
||||
// in the map is the alias used to import the property's value or
|
||||
// values.
|
||||
JSONLDContext() map[string]string
|
||||
// KindIndex computes an arbitrary value for indexing this kind of value.
|
||||
// This is a leaky API method specifically needed only for alternate
|
||||
// implementations for go-fed. Applications should not use this
|
||||
// method. Panics if the index is out of bounds.
|
||||
KindIndex(idx int) int
|
||||
// Len returns the number of values that exist for the "canReply" property.
|
||||
Len() (length int)
|
||||
// Less computes whether another property is less than this one. Mixing
|
||||
// types results in a consistent but arbitrary ordering
|
||||
Less(i, j int) bool
|
||||
// LessThan compares two instances of this property with an arbitrary but
|
||||
// stable comparison. Applications should not use this because it is
|
||||
// only meant to help alternative implementations to go-fed to be able
|
||||
// to normalize nonfunctional properties.
|
||||
LessThan(o GoToSocialCanReplyProperty) bool
|
||||
// Name returns the name of this property ("canReply") with any alias.
|
||||
Name() string
|
||||
// PrependGoToSocialCanReply prepends a CanReply value to the front of a
|
||||
// list of the property "canReply". Invalidates all iterators.
|
||||
PrependGoToSocialCanReply(v GoToSocialCanReply)
|
||||
// PrependIRI prepends an IRI value to the front of a list of the property
|
||||
// "canReply".
|
||||
PrependIRI(v *url.URL)
|
||||
// PrependType prepends an arbitrary type value to the front of a list of
|
||||
// the property "canReply". Invalidates all iterators. Returns an
|
||||
// error if the type is not a valid one to set for this property.
|
||||
PrependType(t Type) error
|
||||
// Remove deletes an element at the specified index from a list of the
|
||||
// property "canReply", regardless of its type. Panics if the index is
|
||||
// out of bounds. Invalidates all iterators.
|
||||
Remove(idx int)
|
||||
// Serialize converts this into an interface representation suitable for
|
||||
// marshalling into a text or binary format. Applications should not
|
||||
// need this function as most typical use cases serialize types
|
||||
// instead of individual properties. It is exposed for alternatives to
|
||||
// go-fed implementations to use.
|
||||
Serialize() (interface{}, error)
|
||||
// Set sets a CanReply value to be at the specified index for the property
|
||||
// "canReply". Panics if the index is out of bounds. Invalidates all
|
||||
// iterators.
|
||||
Set(idx int, v GoToSocialCanReply)
|
||||
// SetIRI sets an IRI value to be at the specified index for the property
|
||||
// "canReply". Panics if the index is out of bounds.
|
||||
SetIRI(idx int, v *url.URL)
|
||||
// SetType sets an arbitrary type value to the specified index of the
|
||||
// property "canReply". Invalidates all iterators. Returns an error if
|
||||
// the type is not a valid one to set for this property. Panics if the
|
||||
// index is out of bounds.
|
||||
SetType(idx int, t Type) error
|
||||
// Swap swaps the location of values at two indices for the "canReply"
|
||||
// property.
|
||||
Swap(i, j int)
|
||||
}
|
||||
164
vendor/github.com/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_interactionPolicy_interface.go
generated
vendored
Normal file
164
vendor/github.com/superseriousbusiness/activity/streams/vocab/gen_property_gotosocial_interactionPolicy_interface.go
generated
vendored
Normal file
|
|
@ -0,0 +1,164 @@
|
|||
// Code generated by astool. DO NOT EDIT.
|
||||
|
||||
package vocab
|
||||
|
||||
import "net/url"
|
||||
|
||||
// GoToSocialInteractionPolicyPropertyIterator represents a single value for the
|
||||
// "interactionPolicy" property.
|
||||
type GoToSocialInteractionPolicyPropertyIterator interface {
|
||||
// Get returns the value of this property. When
|
||||
// IsGoToSocialInteractionPolicy returns false, Get will return any
|
||||
// arbitrary value.
|
||||
Get() GoToSocialInteractionPolicy
|
||||
// GetIRI returns the IRI of this property. When IsIRI returns false,
|
||||
// GetIRI will return any arbitrary value.
|
||||
GetIRI() *url.URL
|
||||
// GetType returns the value in this property as a Type. Returns nil if
|
||||
// the value is not an ActivityStreams type, such as an IRI or another
|
||||
// value.
|
||||
GetType() Type
|
||||
// HasAny returns true if the value or IRI is set.
|
||||
HasAny() bool
|
||||
// IsGoToSocialInteractionPolicy returns true if this property is set and
|
||||
// not an IRI.
|
||||
IsGoToSocialInteractionPolicy() bool
|
||||
// IsIRI returns true if this property is an IRI.
|
||||
IsIRI() bool
|
||||
// JSONLDContext returns the JSONLD URIs required in the context string
|
||||
// for this property and the specific values that are set. The value
|
||||
// in the map is the alias used to import the property's value or
|
||||
// values.
|
||||
JSONLDContext() map[string]string
|
||||
// KindIndex computes an arbitrary value for indexing this kind of value.
|
||||
// This is a leaky API detail only for folks looking to replace the
|
||||
// go-fed implementation. Applications should not use this method.
|
||||
KindIndex() int
|
||||
// LessThan compares two instances of this property with an arbitrary but
|
||||
// stable comparison. Applications should not use this because it is
|
||||
// only meant to help alternative implementations to go-fed to be able
|
||||
// to normalize nonfunctional properties.
|
||||
LessThan(o GoToSocialInteractionPolicyPropertyIterator) bool
|
||||
// Name returns the name of this property: "GoToSocialInteractionPolicy".
|
||||
Name() string
|
||||
// Next returns the next iterator, or nil if there is no next iterator.
|
||||
Next() GoToSocialInteractionPolicyPropertyIterator
|
||||
// Prev returns the previous iterator, or nil if there is no previous
|
||||
// iterator.
|
||||
Prev() GoToSocialInteractionPolicyPropertyIterator
|
||||
// Set sets the value of this property. Calling
|
||||
// IsGoToSocialInteractionPolicy afterwards will return true.
|
||||
Set(v GoToSocialInteractionPolicy)
|
||||
// SetIRI sets the value of this property. Calling IsIRI afterwards will
|
||||
// return true.
|
||||
SetIRI(v *url.URL)
|
||||
// SetType attempts to set the property for the arbitrary type. Returns an
|
||||
// error if it is not a valid type to set on this property.
|
||||
SetType(t Type) error
|
||||
}
|
||||
|
||||
// InteractionPolicy for an ActivityStreams Object.
|
||||
//
|
||||
// null
|
||||
type GoToSocialInteractionPolicyProperty interface {
|
||||
// AppendGoToSocialInteractionPolicy appends a InteractionPolicy value to
|
||||
// the back of a list of the property "interactionPolicy". Invalidates
|
||||
// iterators that are traversing using Prev.
|
||||
AppendGoToSocialInteractionPolicy(v GoToSocialInteractionPolicy)
|
||||
// AppendIRI appends an IRI value to the back of a list of the property
|
||||
// "interactionPolicy"
|
||||
AppendIRI(v *url.URL)
|
||||
// PrependType prepends an arbitrary type value to the front of a list of
|
||||
// the property "interactionPolicy". Invalidates iterators that are
|
||||
// traversing using Prev. Returns an error if the type is not a valid
|
||||
// one to set for this property.
|
||||
AppendType(t Type) error
|
||||
// At returns the property value for the specified index. Panics if the
|
||||
// index is out of bounds.
|
||||
At(index int) GoToSocialInteractionPolicyPropertyIterator
|
||||
// Begin returns the first iterator, or nil if empty. Can be used with the
|
||||
// iterator's Next method and this property's End method to iterate
|
||||
// from front to back through all values.
|
||||
Begin() GoToSocialInteractionPolicyPropertyIterator
|
||||
// Empty returns returns true if there are no elements.
|
||||
Empty() bool
|
||||
// End returns beyond-the-last iterator, which is nil. Can be used with
|
||||
// the iterator's Next method and this property's Begin method to
|
||||
// iterate from front to back through all values.
|
||||
End() GoToSocialInteractionPolicyPropertyIterator
|
||||
// InsertGoToSocialInteractionPolicy inserts a InteractionPolicy value at
|
||||
// the specified index for a property "interactionPolicy". Existing
|
||||
// elements at that index and higher are shifted back once.
|
||||
// Invalidates all iterators.
|
||||
InsertGoToSocialInteractionPolicy(idx int, v GoToSocialInteractionPolicy)
|
||||
// Insert inserts an IRI value at the specified index for a property
|
||||
// "interactionPolicy". Existing elements at that index and higher are
|
||||
// shifted back once. Invalidates all iterators.
|
||||
InsertIRI(idx int, v *url.URL)
|
||||
// PrependType prepends an arbitrary type value to the front of a list of
|
||||
// the property "interactionPolicy". Invalidates all iterators.
|
||||
// Returns an error if the type is not a valid one to set for this
|
||||
// property.
|
||||
InsertType(idx int, t Type) error
|
||||
// JSONLDContext returns the JSONLD URIs required in the context string
|
||||
// for this property and the specific values that are set. The value
|
||||
// in the map is the alias used to import the property's value or
|
||||
// values.
|
||||
JSONLDContext() map[string]string
|
||||
// KindIndex computes an arbitrary value for indexing this kind of value.
|
||||
// This is a leaky API method specifically needed only for alternate
|
||||
// implementations for go-fed. Applications should not use this
|
||||
// method. Panics if the index is out of bounds.
|
||||
KindIndex(idx int) int
|
||||
// Len returns the number of values that exist for the "interactionPolicy"
|
||||
// property.
|
||||
Len() (length int)
|
||||
// Less computes whether another property is less than this one. Mixing
|
||||
// types results in a consistent but arbitrary ordering
|
||||
Less(i, j int) bool
|
||||
// LessThan compares two instances of this property with an arbitrary but
|
||||
// stable comparison. Applications should not use this because it is
|
||||
// only meant to help alternative implementations to go-fed to be able
|
||||
// to normalize nonfunctional properties.
|
||||
LessThan(o GoToSocialInteractionPolicyProperty) bool
|
||||
// Name returns the name of this property ("interactionPolicy") with any
|
||||
// alias.
|
||||
Name() string
|
||||
// PrependGoToSocialInteractionPolicy prepends a InteractionPolicy value
|
||||
// to the front of a list of the property "interactionPolicy".
|
||||
// Invalidates all iterators.
|
||||
PrependGoToSocialInteractionPolicy(v GoToSocialInteractionPolicy)
|
||||
// PrependIRI prepends an IRI value to the front of a list of the property
|
||||
// "interactionPolicy".
|
||||
PrependIRI(v *url.URL)
|
||||
// PrependType prepends an arbitrary type value to the front of a list of
|
||||
// the property "interactionPolicy". Invalidates all iterators.
|
||||
// Returns an error if the type is not a valid one to set for this
|
||||
// property.
|
||||
PrependType(t Type) error
|
||||
// Remove deletes an element at the specified index from a list of the
|
||||
// property "interactionPolicy", regardless of its type. Panics if the
|
||||
// index is out of bounds. Invalidates all iterators.
|
||||
Remove(idx int)
|
||||
// Serialize converts this into an interface representation suitable for
|
||||
// marshalling into a text or binary format. Applications should not
|
||||
// need this function as most typical use cases serialize types
|
||||
// instead of individual properties. It is exposed for alternatives to
|
||||
// go-fed implementations to use.
|
||||
Serialize() (interface{}, error)
|
||||
// Set sets a InteractionPolicy value to be at the specified index for the
|
||||
// property "interactionPolicy". Panics if the index is out of bounds.
|
||||
// Invalidates all iterators.
|
||||
Set(idx int, v GoToSocialInteractionPolicy)
|
||||
// SetIRI sets an IRI value to be at the specified index for the property
|
||||
// "interactionPolicy". Panics if the index is out of bounds.
|
||||
SetIRI(idx int, v *url.URL)
|
||||
// SetType sets an arbitrary type value to the specified index of the
|
||||
// property "interactionPolicy". Invalidates all iterators. Returns an
|
||||
// error if the type is not a valid one to set for this property.
|
||||
// Panics if the index is out of bounds.
|
||||
SetType(idx int, t Type) error
|
||||
// Swap swaps the location of values at two indices for the
|
||||
// "interactionPolicy" property.
|
||||
Swap(i, j int)
|
||||
}
|
||||
|
|
@ -109,6 +109,12 @@ type ActivityStreamsArticle interface {
|
|||
// GetActivityStreamsUrl returns the "url" property if it exists, and nil
|
||||
// otherwise.
|
||||
GetActivityStreamsUrl() ActivityStreamsUrlProperty
|
||||
// GetGoToSocialApprovedBy returns the "approvedBy" property if it exists,
|
||||
// and nil otherwise.
|
||||
GetGoToSocialApprovedBy() GoToSocialApprovedByProperty
|
||||
// GetGoToSocialInteractionPolicy returns the "interactionPolicy" property
|
||||
// if it exists, and nil otherwise.
|
||||
GetGoToSocialInteractionPolicy() GoToSocialInteractionPolicyProperty
|
||||
// GetJSONLDId returns the "id" property if it exists, and nil otherwise.
|
||||
GetJSONLDId() JSONLDIdProperty
|
||||
// GetJSONLDType returns the "type" property if it exists, and nil
|
||||
|
|
@ -201,6 +207,10 @@ type ActivityStreamsArticle interface {
|
|||
SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty)
|
||||
// SetActivityStreamsUrl sets the "url" property.
|
||||
SetActivityStreamsUrl(i ActivityStreamsUrlProperty)
|
||||
// SetGoToSocialApprovedBy sets the "approvedBy" property.
|
||||
SetGoToSocialApprovedBy(i GoToSocialApprovedByProperty)
|
||||
// SetGoToSocialInteractionPolicy sets the "interactionPolicy" property.
|
||||
SetGoToSocialInteractionPolicy(i GoToSocialInteractionPolicyProperty)
|
||||
// SetJSONLDId sets the "id" property.
|
||||
SetJSONLDId(i JSONLDIdProperty)
|
||||
// SetJSONLDType sets the "type" property.
|
||||
|
|
|
|||
|
|
@ -111,6 +111,12 @@ type ActivityStreamsAudio interface {
|
|||
// GetActivityStreamsUrl returns the "url" property if it exists, and nil
|
||||
// otherwise.
|
||||
GetActivityStreamsUrl() ActivityStreamsUrlProperty
|
||||
// GetGoToSocialApprovedBy returns the "approvedBy" property if it exists,
|
||||
// and nil otherwise.
|
||||
GetGoToSocialApprovedBy() GoToSocialApprovedByProperty
|
||||
// GetGoToSocialInteractionPolicy returns the "interactionPolicy" property
|
||||
// if it exists, and nil otherwise.
|
||||
GetGoToSocialInteractionPolicy() GoToSocialInteractionPolicyProperty
|
||||
// GetJSONLDId returns the "id" property if it exists, and nil otherwise.
|
||||
GetJSONLDId() JSONLDIdProperty
|
||||
// GetJSONLDType returns the "type" property if it exists, and nil
|
||||
|
|
@ -205,6 +211,10 @@ type ActivityStreamsAudio interface {
|
|||
SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty)
|
||||
// SetActivityStreamsUrl sets the "url" property.
|
||||
SetActivityStreamsUrl(i ActivityStreamsUrlProperty)
|
||||
// SetGoToSocialApprovedBy sets the "approvedBy" property.
|
||||
SetGoToSocialApprovedBy(i GoToSocialApprovedByProperty)
|
||||
// SetGoToSocialInteractionPolicy sets the "interactionPolicy" property.
|
||||
SetGoToSocialInteractionPolicy(i GoToSocialInteractionPolicyProperty)
|
||||
// SetJSONLDId sets the "id" property.
|
||||
SetJSONLDId(i JSONLDIdProperty)
|
||||
// SetJSONLDType sets the "type" property.
|
||||
|
|
|
|||
|
|
@ -107,6 +107,12 @@ type ActivityStreamsDocument interface {
|
|||
// GetActivityStreamsUrl returns the "url" property if it exists, and nil
|
||||
// otherwise.
|
||||
GetActivityStreamsUrl() ActivityStreamsUrlProperty
|
||||
// GetGoToSocialApprovedBy returns the "approvedBy" property if it exists,
|
||||
// and nil otherwise.
|
||||
GetGoToSocialApprovedBy() GoToSocialApprovedByProperty
|
||||
// GetGoToSocialInteractionPolicy returns the "interactionPolicy" property
|
||||
// if it exists, and nil otherwise.
|
||||
GetGoToSocialInteractionPolicy() GoToSocialInteractionPolicyProperty
|
||||
// GetJSONLDId returns the "id" property if it exists, and nil otherwise.
|
||||
GetJSONLDId() JSONLDIdProperty
|
||||
// GetJSONLDType returns the "type" property if it exists, and nil
|
||||
|
|
@ -202,6 +208,10 @@ type ActivityStreamsDocument interface {
|
|||
SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty)
|
||||
// SetActivityStreamsUrl sets the "url" property.
|
||||
SetActivityStreamsUrl(i ActivityStreamsUrlProperty)
|
||||
// SetGoToSocialApprovedBy sets the "approvedBy" property.
|
||||
SetGoToSocialApprovedBy(i GoToSocialApprovedByProperty)
|
||||
// SetGoToSocialInteractionPolicy sets the "interactionPolicy" property.
|
||||
SetGoToSocialInteractionPolicy(i GoToSocialInteractionPolicyProperty)
|
||||
// SetJSONLDId sets the "id" property.
|
||||
SetJSONLDId(i JSONLDIdProperty)
|
||||
// SetJSONLDType sets the "type" property.
|
||||
|
|
|
|||
|
|
@ -108,6 +108,12 @@ type ActivityStreamsEvent interface {
|
|||
// GetActivityStreamsUrl returns the "url" property if it exists, and nil
|
||||
// otherwise.
|
||||
GetActivityStreamsUrl() ActivityStreamsUrlProperty
|
||||
// GetGoToSocialApprovedBy returns the "approvedBy" property if it exists,
|
||||
// and nil otherwise.
|
||||
GetGoToSocialApprovedBy() GoToSocialApprovedByProperty
|
||||
// GetGoToSocialInteractionPolicy returns the "interactionPolicy" property
|
||||
// if it exists, and nil otherwise.
|
||||
GetGoToSocialInteractionPolicy() GoToSocialInteractionPolicyProperty
|
||||
// GetJSONLDId returns the "id" property if it exists, and nil otherwise.
|
||||
GetJSONLDId() JSONLDIdProperty
|
||||
// GetJSONLDType returns the "type" property if it exists, and nil
|
||||
|
|
@ -199,6 +205,10 @@ type ActivityStreamsEvent interface {
|
|||
SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty)
|
||||
// SetActivityStreamsUrl sets the "url" property.
|
||||
SetActivityStreamsUrl(i ActivityStreamsUrlProperty)
|
||||
// SetGoToSocialApprovedBy sets the "approvedBy" property.
|
||||
SetGoToSocialApprovedBy(i GoToSocialApprovedByProperty)
|
||||
// SetGoToSocialInteractionPolicy sets the "interactionPolicy" property.
|
||||
SetGoToSocialInteractionPolicy(i GoToSocialInteractionPolicyProperty)
|
||||
// SetJSONLDId sets the "id" property.
|
||||
SetJSONLDId(i JSONLDIdProperty)
|
||||
// SetJSONLDType sets the "type" property.
|
||||
|
|
|
|||
|
|
@ -124,6 +124,12 @@ type ActivityStreamsImage interface {
|
|||
// GetActivityStreamsWidth returns the "width" property if it exists, and
|
||||
// nil otherwise.
|
||||
GetActivityStreamsWidth() ActivityStreamsWidthProperty
|
||||
// GetGoToSocialApprovedBy returns the "approvedBy" property if it exists,
|
||||
// and nil otherwise.
|
||||
GetGoToSocialApprovedBy() GoToSocialApprovedByProperty
|
||||
// GetGoToSocialInteractionPolicy returns the "interactionPolicy" property
|
||||
// if it exists, and nil otherwise.
|
||||
GetGoToSocialInteractionPolicy() GoToSocialInteractionPolicyProperty
|
||||
// GetJSONLDId returns the "id" property if it exists, and nil otherwise.
|
||||
GetJSONLDId() JSONLDIdProperty
|
||||
// GetJSONLDType returns the "type" property if it exists, and nil
|
||||
|
|
@ -222,6 +228,10 @@ type ActivityStreamsImage interface {
|
|||
SetActivityStreamsUrl(i ActivityStreamsUrlProperty)
|
||||
// SetActivityStreamsWidth sets the "width" property.
|
||||
SetActivityStreamsWidth(i ActivityStreamsWidthProperty)
|
||||
// SetGoToSocialApprovedBy sets the "approvedBy" property.
|
||||
SetGoToSocialApprovedBy(i GoToSocialApprovedByProperty)
|
||||
// SetGoToSocialInteractionPolicy sets the "interactionPolicy" property.
|
||||
SetGoToSocialInteractionPolicy(i GoToSocialInteractionPolicyProperty)
|
||||
// SetJSONLDId sets the "id" property.
|
||||
SetJSONLDId(i JSONLDIdProperty)
|
||||
// SetJSONLDType sets the "type" property.
|
||||
|
|
|
|||
|
|
@ -127,6 +127,9 @@ type ActivityStreamsLike interface {
|
|||
// GetActivityStreamsUrl returns the "url" property if it exists, and nil
|
||||
// otherwise.
|
||||
GetActivityStreamsUrl() ActivityStreamsUrlProperty
|
||||
// GetGoToSocialApprovedBy returns the "approvedBy" property if it exists,
|
||||
// and nil otherwise.
|
||||
GetGoToSocialApprovedBy() GoToSocialApprovedByProperty
|
||||
// GetJSONLDId returns the "id" property if it exists, and nil otherwise.
|
||||
GetJSONLDId() JSONLDIdProperty
|
||||
// GetJSONLDType returns the "type" property if it exists, and nil
|
||||
|
|
@ -228,6 +231,8 @@ type ActivityStreamsLike interface {
|
|||
SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty)
|
||||
// SetActivityStreamsUrl sets the "url" property.
|
||||
SetActivityStreamsUrl(i ActivityStreamsUrlProperty)
|
||||
// SetGoToSocialApprovedBy sets the "approvedBy" property.
|
||||
SetGoToSocialApprovedBy(i GoToSocialApprovedByProperty)
|
||||
// SetJSONLDId sets the "id" property.
|
||||
SetJSONLDId(i JSONLDIdProperty)
|
||||
// SetJSONLDType sets the "type" property.
|
||||
|
|
|
|||
|
|
@ -108,6 +108,12 @@ type ActivityStreamsNote interface {
|
|||
// GetActivityStreamsUrl returns the "url" property if it exists, and nil
|
||||
// otherwise.
|
||||
GetActivityStreamsUrl() ActivityStreamsUrlProperty
|
||||
// GetGoToSocialApprovedBy returns the "approvedBy" property if it exists,
|
||||
// and nil otherwise.
|
||||
GetGoToSocialApprovedBy() GoToSocialApprovedByProperty
|
||||
// GetGoToSocialInteractionPolicy returns the "interactionPolicy" property
|
||||
// if it exists, and nil otherwise.
|
||||
GetGoToSocialInteractionPolicy() GoToSocialInteractionPolicyProperty
|
||||
// GetJSONLDId returns the "id" property if it exists, and nil otherwise.
|
||||
GetJSONLDId() JSONLDIdProperty
|
||||
// GetJSONLDType returns the "type" property if it exists, and nil
|
||||
|
|
@ -199,6 +205,10 @@ type ActivityStreamsNote interface {
|
|||
SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty)
|
||||
// SetActivityStreamsUrl sets the "url" property.
|
||||
SetActivityStreamsUrl(i ActivityStreamsUrlProperty)
|
||||
// SetGoToSocialApprovedBy sets the "approvedBy" property.
|
||||
SetGoToSocialApprovedBy(i GoToSocialApprovedByProperty)
|
||||
// SetGoToSocialInteractionPolicy sets the "interactionPolicy" property.
|
||||
SetGoToSocialInteractionPolicy(i GoToSocialInteractionPolicyProperty)
|
||||
// SetJSONLDId sets the "id" property.
|
||||
SetJSONLDId(i JSONLDIdProperty)
|
||||
// SetJSONLDType sets the "type" property.
|
||||
|
|
|
|||
|
|
@ -107,6 +107,12 @@ type ActivityStreamsPage interface {
|
|||
// GetActivityStreamsUrl returns the "url" property if it exists, and nil
|
||||
// otherwise.
|
||||
GetActivityStreamsUrl() ActivityStreamsUrlProperty
|
||||
// GetGoToSocialApprovedBy returns the "approvedBy" property if it exists,
|
||||
// and nil otherwise.
|
||||
GetGoToSocialApprovedBy() GoToSocialApprovedByProperty
|
||||
// GetGoToSocialInteractionPolicy returns the "interactionPolicy" property
|
||||
// if it exists, and nil otherwise.
|
||||
GetGoToSocialInteractionPolicy() GoToSocialInteractionPolicyProperty
|
||||
// GetJSONLDId returns the "id" property if it exists, and nil otherwise.
|
||||
GetJSONLDId() JSONLDIdProperty
|
||||
// GetJSONLDType returns the "type" property if it exists, and nil
|
||||
|
|
@ -201,6 +207,10 @@ type ActivityStreamsPage interface {
|
|||
SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty)
|
||||
// SetActivityStreamsUrl sets the "url" property.
|
||||
SetActivityStreamsUrl(i ActivityStreamsUrlProperty)
|
||||
// SetGoToSocialApprovedBy sets the "approvedBy" property.
|
||||
SetGoToSocialApprovedBy(i GoToSocialApprovedByProperty)
|
||||
// SetGoToSocialInteractionPolicy sets the "interactionPolicy" property.
|
||||
SetGoToSocialInteractionPolicy(i GoToSocialInteractionPolicyProperty)
|
||||
// SetJSONLDId sets the "id" property.
|
||||
SetJSONLDId(i JSONLDIdProperty)
|
||||
// SetJSONLDType sets the "type" property.
|
||||
|
|
|
|||
|
|
@ -132,6 +132,12 @@ type ActivityStreamsPlace interface {
|
|||
// GetActivityStreamsUrl returns the "url" property if it exists, and nil
|
||||
// otherwise.
|
||||
GetActivityStreamsUrl() ActivityStreamsUrlProperty
|
||||
// GetGoToSocialApprovedBy returns the "approvedBy" property if it exists,
|
||||
// and nil otherwise.
|
||||
GetGoToSocialApprovedBy() GoToSocialApprovedByProperty
|
||||
// GetGoToSocialInteractionPolicy returns the "interactionPolicy" property
|
||||
// if it exists, and nil otherwise.
|
||||
GetGoToSocialInteractionPolicy() GoToSocialInteractionPolicyProperty
|
||||
// GetJSONLDId returns the "id" property if it exists, and nil otherwise.
|
||||
GetJSONLDId() JSONLDIdProperty
|
||||
// GetJSONLDType returns the "type" property if it exists, and nil
|
||||
|
|
@ -233,6 +239,10 @@ type ActivityStreamsPlace interface {
|
|||
SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty)
|
||||
// SetActivityStreamsUrl sets the "url" property.
|
||||
SetActivityStreamsUrl(i ActivityStreamsUrlProperty)
|
||||
// SetGoToSocialApprovedBy sets the "approvedBy" property.
|
||||
SetGoToSocialApprovedBy(i GoToSocialApprovedByProperty)
|
||||
// SetGoToSocialInteractionPolicy sets the "interactionPolicy" property.
|
||||
SetGoToSocialInteractionPolicy(i GoToSocialInteractionPolicyProperty)
|
||||
// SetJSONLDId sets the "id" property.
|
||||
SetJSONLDId(i JSONLDIdProperty)
|
||||
// SetJSONLDType sets the "type" property.
|
||||
|
|
|
|||
|
|
@ -115,6 +115,12 @@ type ActivityStreamsProfile interface {
|
|||
// GetActivityStreamsUrl returns the "url" property if it exists, and nil
|
||||
// otherwise.
|
||||
GetActivityStreamsUrl() ActivityStreamsUrlProperty
|
||||
// GetGoToSocialApprovedBy returns the "approvedBy" property if it exists,
|
||||
// and nil otherwise.
|
||||
GetGoToSocialApprovedBy() GoToSocialApprovedByProperty
|
||||
// GetGoToSocialInteractionPolicy returns the "interactionPolicy" property
|
||||
// if it exists, and nil otherwise.
|
||||
GetGoToSocialInteractionPolicy() GoToSocialInteractionPolicyProperty
|
||||
// GetJSONLDId returns the "id" property if it exists, and nil otherwise.
|
||||
GetJSONLDId() JSONLDIdProperty
|
||||
// GetJSONLDType returns the "type" property if it exists, and nil
|
||||
|
|
@ -209,6 +215,10 @@ type ActivityStreamsProfile interface {
|
|||
SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty)
|
||||
// SetActivityStreamsUrl sets the "url" property.
|
||||
SetActivityStreamsUrl(i ActivityStreamsUrlProperty)
|
||||
// SetGoToSocialApprovedBy sets the "approvedBy" property.
|
||||
SetGoToSocialApprovedBy(i GoToSocialApprovedByProperty)
|
||||
// SetGoToSocialInteractionPolicy sets the "interactionPolicy" property.
|
||||
SetGoToSocialInteractionPolicy(i GoToSocialInteractionPolicyProperty)
|
||||
// SetJSONLDId sets the "id" property.
|
||||
SetJSONLDId(i JSONLDIdProperty)
|
||||
// SetJSONLDType sets the "type" property.
|
||||
|
|
|
|||
|
|
@ -149,6 +149,12 @@ type ActivityStreamsQuestion interface {
|
|||
// GetActivityStreamsUrl returns the "url" property if it exists, and nil
|
||||
// otherwise.
|
||||
GetActivityStreamsUrl() ActivityStreamsUrlProperty
|
||||
// GetGoToSocialApprovedBy returns the "approvedBy" property if it exists,
|
||||
// and nil otherwise.
|
||||
GetGoToSocialApprovedBy() GoToSocialApprovedByProperty
|
||||
// GetGoToSocialInteractionPolicy returns the "interactionPolicy" property
|
||||
// if it exists, and nil otherwise.
|
||||
GetGoToSocialInteractionPolicy() GoToSocialInteractionPolicyProperty
|
||||
// GetJSONLDId returns the "id" property if it exists, and nil otherwise.
|
||||
GetJSONLDId() JSONLDIdProperty
|
||||
// GetJSONLDType returns the "type" property if it exists, and nil
|
||||
|
|
@ -258,6 +264,10 @@ type ActivityStreamsQuestion interface {
|
|||
SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty)
|
||||
// SetActivityStreamsUrl sets the "url" property.
|
||||
SetActivityStreamsUrl(i ActivityStreamsUrlProperty)
|
||||
// SetGoToSocialApprovedBy sets the "approvedBy" property.
|
||||
SetGoToSocialApprovedBy(i GoToSocialApprovedByProperty)
|
||||
// SetGoToSocialInteractionPolicy sets the "interactionPolicy" property.
|
||||
SetGoToSocialInteractionPolicy(i GoToSocialInteractionPolicyProperty)
|
||||
// SetJSONLDId sets the "id" property.
|
||||
SetJSONLDId(i JSONLDIdProperty)
|
||||
// SetJSONLDType sets the "type" property.
|
||||
|
|
|
|||
|
|
@ -108,6 +108,12 @@ type ActivityStreamsVideo interface {
|
|||
// GetActivityStreamsUrl returns the "url" property if it exists, and nil
|
||||
// otherwise.
|
||||
GetActivityStreamsUrl() ActivityStreamsUrlProperty
|
||||
// GetGoToSocialApprovedBy returns the "approvedBy" property if it exists,
|
||||
// and nil otherwise.
|
||||
GetGoToSocialApprovedBy() GoToSocialApprovedByProperty
|
||||
// GetGoToSocialInteractionPolicy returns the "interactionPolicy" property
|
||||
// if it exists, and nil otherwise.
|
||||
GetGoToSocialInteractionPolicy() GoToSocialInteractionPolicyProperty
|
||||
// GetJSONLDId returns the "id" property if it exists, and nil otherwise.
|
||||
GetJSONLDId() JSONLDIdProperty
|
||||
// GetJSONLDType returns the "type" property if it exists, and nil
|
||||
|
|
@ -202,6 +208,10 @@ type ActivityStreamsVideo interface {
|
|||
SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty)
|
||||
// SetActivityStreamsUrl sets the "url" property.
|
||||
SetActivityStreamsUrl(i ActivityStreamsUrlProperty)
|
||||
// SetGoToSocialApprovedBy sets the "approvedBy" property.
|
||||
SetGoToSocialApprovedBy(i GoToSocialApprovedByProperty)
|
||||
// SetGoToSocialInteractionPolicy sets the "interactionPolicy" property.
|
||||
SetGoToSocialInteractionPolicy(i GoToSocialInteractionPolicyProperty)
|
||||
// SetJSONLDId sets the "id" property.
|
||||
SetJSONLDId(i JSONLDIdProperty)
|
||||
// SetJSONLDType sets the "type" property.
|
||||
|
|
|
|||
45
vendor/github.com/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_canannounce_interface.go
generated
vendored
Normal file
45
vendor/github.com/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_canannounce_interface.go
generated
vendored
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
// Code generated by astool. DO NOT EDIT.
|
||||
|
||||
package vocab
|
||||
|
||||
type GoToSocialCanAnnounce interface {
|
||||
// GetGoToSocialAlways returns the "always" property if it exists, and nil
|
||||
// otherwise.
|
||||
GetGoToSocialAlways() GoToSocialAlwaysProperty
|
||||
// GetGoToSocialApprovalRequired returns the "approvalRequired" property
|
||||
// if it exists, and nil otherwise.
|
||||
GetGoToSocialApprovalRequired() GoToSocialApprovalRequiredProperty
|
||||
// GetJSONLDId returns the "id" property if it exists, and nil otherwise.
|
||||
GetJSONLDId() JSONLDIdProperty
|
||||
// GetTypeName returns the name of this type.
|
||||
GetTypeName() string
|
||||
// GetUnknownProperties returns the unknown properties for the CanAnnounce
|
||||
// type. Note that this should not be used by app developers. It is
|
||||
// only used to help determine which implementation is LessThan the
|
||||
// other. Developers who are creating a different implementation of
|
||||
// this type's interface can use this method in their LessThan
|
||||
// implementation, but routine ActivityPub applications should not use
|
||||
// this to bypass the code generation tool.
|
||||
GetUnknownProperties() map[string]interface{}
|
||||
// IsExtending returns true if the CanAnnounce type extends from the other
|
||||
// type.
|
||||
IsExtending(other Type) bool
|
||||
// JSONLDContext returns the JSONLD URIs required in the context string
|
||||
// for this type and the specific properties that are set. The value
|
||||
// in the map is the alias used to import the type and its properties.
|
||||
JSONLDContext() map[string]string
|
||||
// LessThan computes if this CanAnnounce is lesser, with an arbitrary but
|
||||
// stable determination.
|
||||
LessThan(o GoToSocialCanAnnounce) bool
|
||||
// Serialize converts this into an interface representation suitable for
|
||||
// marshalling into a text or binary format.
|
||||
Serialize() (map[string]interface{}, error)
|
||||
// SetGoToSocialAlways sets the "always" property.
|
||||
SetGoToSocialAlways(i GoToSocialAlwaysProperty)
|
||||
// SetGoToSocialApprovalRequired sets the "approvalRequired" property.
|
||||
SetGoToSocialApprovalRequired(i GoToSocialApprovalRequiredProperty)
|
||||
// SetJSONLDId sets the "id" property.
|
||||
SetJSONLDId(i JSONLDIdProperty)
|
||||
// VocabularyURI returns the vocabulary's URI as a string.
|
||||
VocabularyURI() string
|
||||
}
|
||||
45
vendor/github.com/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_canlike_interface.go
generated
vendored
Normal file
45
vendor/github.com/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_canlike_interface.go
generated
vendored
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
// Code generated by astool. DO NOT EDIT.
|
||||
|
||||
package vocab
|
||||
|
||||
type GoToSocialCanLike interface {
|
||||
// GetGoToSocialAlways returns the "always" property if it exists, and nil
|
||||
// otherwise.
|
||||
GetGoToSocialAlways() GoToSocialAlwaysProperty
|
||||
// GetGoToSocialApprovalRequired returns the "approvalRequired" property
|
||||
// if it exists, and nil otherwise.
|
||||
GetGoToSocialApprovalRequired() GoToSocialApprovalRequiredProperty
|
||||
// GetJSONLDId returns the "id" property if it exists, and nil otherwise.
|
||||
GetJSONLDId() JSONLDIdProperty
|
||||
// GetTypeName returns the name of this type.
|
||||
GetTypeName() string
|
||||
// GetUnknownProperties returns the unknown properties for the CanLike
|
||||
// type. Note that this should not be used by app developers. It is
|
||||
// only used to help determine which implementation is LessThan the
|
||||
// other. Developers who are creating a different implementation of
|
||||
// this type's interface can use this method in their LessThan
|
||||
// implementation, but routine ActivityPub applications should not use
|
||||
// this to bypass the code generation tool.
|
||||
GetUnknownProperties() map[string]interface{}
|
||||
// IsExtending returns true if the CanLike type extends from the other
|
||||
// type.
|
||||
IsExtending(other Type) bool
|
||||
// JSONLDContext returns the JSONLD URIs required in the context string
|
||||
// for this type and the specific properties that are set. The value
|
||||
// in the map is the alias used to import the type and its properties.
|
||||
JSONLDContext() map[string]string
|
||||
// LessThan computes if this CanLike is lesser, with an arbitrary but
|
||||
// stable determination.
|
||||
LessThan(o GoToSocialCanLike) bool
|
||||
// Serialize converts this into an interface representation suitable for
|
||||
// marshalling into a text or binary format.
|
||||
Serialize() (map[string]interface{}, error)
|
||||
// SetGoToSocialAlways sets the "always" property.
|
||||
SetGoToSocialAlways(i GoToSocialAlwaysProperty)
|
||||
// SetGoToSocialApprovalRequired sets the "approvalRequired" property.
|
||||
SetGoToSocialApprovalRequired(i GoToSocialApprovalRequiredProperty)
|
||||
// SetJSONLDId sets the "id" property.
|
||||
SetJSONLDId(i JSONLDIdProperty)
|
||||
// VocabularyURI returns the vocabulary's URI as a string.
|
||||
VocabularyURI() string
|
||||
}
|
||||
45
vendor/github.com/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_canreply_interface.go
generated
vendored
Normal file
45
vendor/github.com/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_canreply_interface.go
generated
vendored
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
// Code generated by astool. DO NOT EDIT.
|
||||
|
||||
package vocab
|
||||
|
||||
type GoToSocialCanReply interface {
|
||||
// GetGoToSocialAlways returns the "always" property if it exists, and nil
|
||||
// otherwise.
|
||||
GetGoToSocialAlways() GoToSocialAlwaysProperty
|
||||
// GetGoToSocialApprovalRequired returns the "approvalRequired" property
|
||||
// if it exists, and nil otherwise.
|
||||
GetGoToSocialApprovalRequired() GoToSocialApprovalRequiredProperty
|
||||
// GetJSONLDId returns the "id" property if it exists, and nil otherwise.
|
||||
GetJSONLDId() JSONLDIdProperty
|
||||
// GetTypeName returns the name of this type.
|
||||
GetTypeName() string
|
||||
// GetUnknownProperties returns the unknown properties for the CanReply
|
||||
// type. Note that this should not be used by app developers. It is
|
||||
// only used to help determine which implementation is LessThan the
|
||||
// other. Developers who are creating a different implementation of
|
||||
// this type's interface can use this method in their LessThan
|
||||
// implementation, but routine ActivityPub applications should not use
|
||||
// this to bypass the code generation tool.
|
||||
GetUnknownProperties() map[string]interface{}
|
||||
// IsExtending returns true if the CanReply type extends from the other
|
||||
// type.
|
||||
IsExtending(other Type) bool
|
||||
// JSONLDContext returns the JSONLD URIs required in the context string
|
||||
// for this type and the specific properties that are set. The value
|
||||
// in the map is the alias used to import the type and its properties.
|
||||
JSONLDContext() map[string]string
|
||||
// LessThan computes if this CanReply is lesser, with an arbitrary but
|
||||
// stable determination.
|
||||
LessThan(o GoToSocialCanReply) bool
|
||||
// Serialize converts this into an interface representation suitable for
|
||||
// marshalling into a text or binary format.
|
||||
Serialize() (map[string]interface{}, error)
|
||||
// SetGoToSocialAlways sets the "always" property.
|
||||
SetGoToSocialAlways(i GoToSocialAlwaysProperty)
|
||||
// SetGoToSocialApprovalRequired sets the "approvalRequired" property.
|
||||
SetGoToSocialApprovalRequired(i GoToSocialApprovalRequiredProperty)
|
||||
// SetJSONLDId sets the "id" property.
|
||||
SetJSONLDId(i JSONLDIdProperty)
|
||||
// VocabularyURI returns the vocabulary's URI as a string.
|
||||
VocabularyURI() string
|
||||
}
|
||||
51
vendor/github.com/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_interactionpolicy_interface.go
generated
vendored
Normal file
51
vendor/github.com/superseriousbusiness/activity/streams/vocab/gen_type_gotosocial_interactionpolicy_interface.go
generated
vendored
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
// Code generated by astool. DO NOT EDIT.
|
||||
|
||||
package vocab
|
||||
|
||||
// InteractionPolicy for an ActivityStreams Object.
|
||||
type GoToSocialInteractionPolicy interface {
|
||||
// GetGoToSocialCanAnnounce returns the "canAnnounce" property if it
|
||||
// exists, and nil otherwise.
|
||||
GetGoToSocialCanAnnounce() GoToSocialCanAnnounceProperty
|
||||
// GetGoToSocialCanLike returns the "canLike" property if it exists, and
|
||||
// nil otherwise.
|
||||
GetGoToSocialCanLike() GoToSocialCanLikeProperty
|
||||
// GetGoToSocialCanReply returns the "canReply" property if it exists, and
|
||||
// nil otherwise.
|
||||
GetGoToSocialCanReply() GoToSocialCanReplyProperty
|
||||
// GetJSONLDId returns the "id" property if it exists, and nil otherwise.
|
||||
GetJSONLDId() JSONLDIdProperty
|
||||
// GetTypeName returns the name of this type.
|
||||
GetTypeName() string
|
||||
// GetUnknownProperties returns the unknown properties for the
|
||||
// InteractionPolicy type. Note that this should not be used by app
|
||||
// developers. It is only used to help determine which implementation
|
||||
// is LessThan the other. Developers who are creating a different
|
||||
// implementation of this type's interface can use this method in
|
||||
// their LessThan implementation, but routine ActivityPub applications
|
||||
// should not use this to bypass the code generation tool.
|
||||
GetUnknownProperties() map[string]interface{}
|
||||
// IsExtending returns true if the InteractionPolicy type extends from the
|
||||
// other type.
|
||||
IsExtending(other Type) bool
|
||||
// JSONLDContext returns the JSONLD URIs required in the context string
|
||||
// for this type and the specific properties that are set. The value
|
||||
// in the map is the alias used to import the type and its properties.
|
||||
JSONLDContext() map[string]string
|
||||
// LessThan computes if this InteractionPolicy is lesser, with an
|
||||
// arbitrary but stable determination.
|
||||
LessThan(o GoToSocialInteractionPolicy) bool
|
||||
// Serialize converts this into an interface representation suitable for
|
||||
// marshalling into a text or binary format.
|
||||
Serialize() (map[string]interface{}, error)
|
||||
// SetGoToSocialCanAnnounce sets the "canAnnounce" property.
|
||||
SetGoToSocialCanAnnounce(i GoToSocialCanAnnounceProperty)
|
||||
// SetGoToSocialCanLike sets the "canLike" property.
|
||||
SetGoToSocialCanLike(i GoToSocialCanLikeProperty)
|
||||
// SetGoToSocialCanReply sets the "canReply" property.
|
||||
SetGoToSocialCanReply(i GoToSocialCanReplyProperty)
|
||||
// SetJSONLDId sets the "id" property.
|
||||
SetJSONLDId(i JSONLDIdProperty)
|
||||
// VocabularyURI returns the vocabulary's URI as a string.
|
||||
VocabularyURI() string
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue