githuborganizationmember

package
v0.0.0-...-5435fe0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the githuborganizationmember type in the database.
	Label = "github_organization_member"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldRole holds the string denoting the role field in the database.
	FieldRole = "role"
	// EdgeOrganization holds the string denoting the organization edge name in mutations.
	EdgeOrganization = "organization"
	// EdgeAccount holds the string denoting the account edge name in mutations.
	EdgeAccount = "account"
	// Table holds the table name of the githuborganizationmember in the database.
	Table = "github_organization_members"
	// OrganizationTable is the table that holds the organization relation/edge.
	OrganizationTable = "github_organization_members"
	// OrganizationInverseTable is the table name for the GithubOrganization entity.
	// It exists in this package in order to avoid circular dependency with the "githuborganization" package.
	OrganizationInverseTable = "github_organizations"
	// OrganizationColumn is the table column denoting the organization relation/edge.
	OrganizationColumn = "github_organization_members"
	// AccountTable is the table that holds the account relation/edge.
	AccountTable = "github_organization_members"
	// AccountInverseTable is the table name for the GithubAccount entity.
	// It exists in this package in order to avoid circular dependency with the "githubaccount" package.
	AccountInverseTable = "github_accounts"
	// AccountColumn is the table column denoting the account relation/edge.
	AccountColumn = "github_account_organization_memberships"
)
View Source
const DefaultRole = RoleMember

RoleMember is the default value of the Role enum.

Variables

View Source
var (
	Hooks  [1]ent.Hook
	Policy ent.Policy
)

Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:

import _ "github.com/fogo-sh/grackdb/ent/runtime"
View Source
var Columns = []string{
	FieldID,
	FieldRole,
}

Columns holds all SQL columns for githuborganizationmember fields.

View Source
var ForeignKeys = []string{
	"github_account_organization_memberships",
	"github_organization_members",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "github_organization_members" table and are not defined as standalone fields in the schema.

Functions

func And

And groups predicates with the AND operator between them.

func HasAccount

HasAccount applies the HasEdge predicate on the "account" edge.

func HasAccountWith

HasAccountWith applies the HasEdge predicate on the "account" edge with a given conditions (other predicates).

func HasOrganization

func HasOrganization() predicate.GithubOrganizationMember

HasOrganization applies the HasEdge predicate on the "organization" edge.

func HasOrganizationWith

func HasOrganizationWith(preds ...predicate.GithubOrganization) predicate.GithubOrganizationMember

HasOrganizationWith applies the HasEdge predicate on the "organization" edge with a given conditions (other predicates).

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

IDGTE applies the GTE predicate on the ID field.

func IDIn

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.GithubOrganizationMember

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func RoleEQ

RoleEQ applies the EQ predicate on the "role" field.

func RoleIn

RoleIn applies the In predicate on the "role" field.

func RoleNEQ

RoleNEQ applies the NEQ predicate on the "role" field.

func RoleNotIn

func RoleNotIn(vs ...Role) predicate.GithubOrganizationMember

RoleNotIn applies the NotIn predicate on the "role" field.

func RoleValidator

func RoleValidator(r Role) error

RoleValidator is a validator for the "role" field enum values. It is called by the builders before save.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type Role

type Role string

Role defines the type for the "role" enum field.

const (
	RoleAdmin  Role = "ADMIN"
	RoleMember Role = "MEMBER"
)

Role values.

func (Role) MarshalGQL

func (e Role) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (Role) String

func (r Role) String() string

func (*Role) UnmarshalGQL

func (e *Role) UnmarshalGQL(val interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

Jump to

Keyboard shortcuts

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