forked from go-fed/activity
-
Notifications
You must be signed in to change notification settings - Fork 1
/
gen_pkg_forgefed_extendedby.go
55 lines (47 loc) · 2.42 KB
/
gen_pkg_forgefed_extendedby.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// Code generated by astool. DO NOT EDIT.
package streams
import (
typebranch "github.com/superseriousbusiness/activity/streams/impl/forgefed/type_branch"
typecommit "github.com/superseriousbusiness/activity/streams/impl/forgefed/type_commit"
typepush "github.com/superseriousbusiness/activity/streams/impl/forgefed/type_push"
typerepository "github.com/superseriousbusiness/activity/streams/impl/forgefed/type_repository"
typeticket "github.com/superseriousbusiness/activity/streams/impl/forgefed/type_ticket"
typeticketdependency "github.com/superseriousbusiness/activity/streams/impl/forgefed/type_ticketdependency"
vocab "github.com/superseriousbusiness/activity/streams/vocab"
)
// ForgeFedBranchIsExtendedBy returns true if the other's type extends from
// Branch. Note that it returns false if the types are the same; see the
// "IsOrExtends" variant instead.
func ForgeFedBranchIsExtendedBy(other vocab.Type) bool {
return typebranch.BranchIsExtendedBy(other)
}
// ForgeFedCommitIsExtendedBy returns true if the other's type extends from
// Commit. Note that it returns false if the types are the same; see the
// "IsOrExtends" variant instead.
func ForgeFedCommitIsExtendedBy(other vocab.Type) bool {
return typecommit.CommitIsExtendedBy(other)
}
// ForgeFedPushIsExtendedBy returns true if the other's type extends from Push.
// Note that it returns false if the types are the same; see the "IsOrExtends"
// variant instead.
func ForgeFedPushIsExtendedBy(other vocab.Type) bool {
return typepush.PushIsExtendedBy(other)
}
// ForgeFedRepositoryIsExtendedBy returns true if the other's type extends from
// Repository. Note that it returns false if the types are the same; see the
// "IsOrExtends" variant instead.
func ForgeFedRepositoryIsExtendedBy(other vocab.Type) bool {
return typerepository.RepositoryIsExtendedBy(other)
}
// ForgeFedTicketIsExtendedBy returns true if the other's type extends from
// Ticket. Note that it returns false if the types are the same; see the
// "IsOrExtends" variant instead.
func ForgeFedTicketIsExtendedBy(other vocab.Type) bool {
return typeticket.TicketIsExtendedBy(other)
}
// ForgeFedTicketDependencyIsExtendedBy returns true if the other's type extends
// from TicketDependency. Note that it returns false if the types are the
// same; see the "IsOrExtends" variant instead.
func ForgeFedTicketDependencyIsExtendedBy(other vocab.Type) bool {
return typeticketdependency.TicketDependencyIsExtendedBy(other)
}