Documentation
¶
Index ¶
- Constants
- Variables
- func Asc(fields ...string) func(*sql.Selector)
- func Desc(fields ...string) func(*sql.Selector)
- func IsConstraintError(err error) bool
- func IsNotFound(err error) bool
- func IsNotLoaded(err error) bool
- func IsNotSingular(err error) bool
- func IsValidationError(err error) bool
- func MaskNotFound(err error) error
- func NewContext(parent context.Context, c *Client) context.Context
- func NewTxContext(parent context.Context, tx *Tx) context.Context
- type AWSIamClient
- func (c *AWSIamClient) Create() *AWSIamCreate
- func (c *AWSIamClient) CreateBulk(builders ...*AWSIamCreate) *AWSIamCreateBulk
- func (c *AWSIamClient) Delete() *AWSIamDelete
- func (c *AWSIamClient) DeleteOne(ai *Aws_iam) *AWSIamDeleteOne
- func (c *AWSIamClient) DeleteOneID(id int) *AWSIamDeleteOne
- func (c *AWSIamClient) Get(ctx context.Context, id int) (*Aws_iam, error)
- func (c *AWSIamClient) GetX(ctx context.Context, id int) *Aws_iam
- func (c *AWSIamClient) Hooks() []Hook
- func (c *AWSIamClient) Intercept(interceptors ...Interceptor)
- func (c *AWSIamClient) Interceptors() []Interceptor
- func (c *AWSIamClient) MapCreateBulk(slice any, setFunc func(*AWSIamCreate, int)) *AWSIamCreateBulk
- func (c *AWSIamClient) Query() *AWSIamQuery
- func (c *AWSIamClient) Update() *AWSIamUpdate
- func (c *AWSIamClient) UpdateOne(ai *Aws_iam) *AWSIamUpdateOne
- func (c *AWSIamClient) UpdateOneID(id int) *AWSIamUpdateOne
- func (c *AWSIamClient) Use(hooks ...Hook)
- type AWSIamCreate
- func (aic *AWSIamCreate) Exec(ctx context.Context) error
- func (aic *AWSIamCreate) ExecX(ctx context.Context)
- func (aic *AWSIamCreate) Mutation() *AWSIamMutation
- func (aic *AWSIamCreate) Save(ctx context.Context) (*Aws_iam, error)
- func (aic *AWSIamCreate) SaveX(ctx context.Context) *Aws_iam
- func (aic *AWSIamCreate) SetAccessKey(s string) *AWSIamCreate
- func (aic *AWSIamCreate) SetAccountID(s string) *AWSIamCreate
- func (aic *AWSIamCreate) SetCreatedAt(t time.Time) *AWSIamCreate
- func (aic *AWSIamCreate) SetIamName(s string) *AWSIamCreate
- func (aic *AWSIamCreate) SetNillableCreatedAt(t *time.Time) *AWSIamCreate
- func (aic *AWSIamCreate) SetNillableUpdatedAt(t *time.Time) *AWSIamCreate
- func (aic *AWSIamCreate) SetSecretKey(s string) *AWSIamCreate
- func (aic *AWSIamCreate) SetUID(s string) *AWSIamCreate
- func (aic *AWSIamCreate) SetUpdatedAt(t time.Time) *AWSIamCreate
- type AWSIamCreateBulk
- type AWSIamDelete
- type AWSIamDeleteOne
- type AWSIamGroupBy
- func (aigb *AWSIamGroupBy) Aggregate(fns ...AggregateFunc) *AWSIamGroupBy
- func (s *AWSIamGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *AWSIamGroupBy) BoolX(ctx context.Context) bool
- func (s *AWSIamGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *AWSIamGroupBy) BoolsX(ctx context.Context) []bool
- func (s *AWSIamGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *AWSIamGroupBy) Float64X(ctx context.Context) float64
- func (s *AWSIamGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *AWSIamGroupBy) Float64sX(ctx context.Context) []float64
- func (s *AWSIamGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *AWSIamGroupBy) IntX(ctx context.Context) int
- func (s *AWSIamGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *AWSIamGroupBy) IntsX(ctx context.Context) []int
- func (aigb *AWSIamGroupBy) Scan(ctx context.Context, v any) error
- func (s *AWSIamGroupBy) ScanX(ctx context.Context, v any)
- func (s *AWSIamGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *AWSIamGroupBy) StringX(ctx context.Context) string
- func (s *AWSIamGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *AWSIamGroupBy) StringsX(ctx context.Context) []string
- type AWSIamMutation
- func (m *AWSIamMutation) AccessKey() (r string, exists bool)
- func (m *AWSIamMutation) AccountID() (r string, exists bool)
- func (m *AWSIamMutation) AddField(name string, value ent.Value) error
- func (m *AWSIamMutation) AddedEdges() []string
- func (m *AWSIamMutation) AddedField(name string) (ent.Value, bool)
- func (m *AWSIamMutation) AddedFields() []string
- func (m *AWSIamMutation) AddedIDs(name string) []ent.Value
- func (m *AWSIamMutation) ClearEdge(name string) error
- func (m *AWSIamMutation) ClearField(name string) error
- func (m *AWSIamMutation) ClearedEdges() []string
- func (m *AWSIamMutation) ClearedFields() []string
- func (m AWSIamMutation) Client() *Client
- func (m *AWSIamMutation) CreatedAt() (r time.Time, exists bool)
- func (m *AWSIamMutation) EdgeCleared(name string) bool
- func (m *AWSIamMutation) Field(name string) (ent.Value, bool)
- func (m *AWSIamMutation) FieldCleared(name string) bool
- func (m *AWSIamMutation) Fields() []string
- func (m *AWSIamMutation) ID() (id int, exists bool)
- func (m *AWSIamMutation) IDs(ctx context.Context) ([]int, error)
- func (m *AWSIamMutation) IamName() (r string, exists bool)
- func (m *AWSIamMutation) OldAccessKey(ctx context.Context) (v string, err error)
- func (m *AWSIamMutation) OldAccountID(ctx context.Context) (v string, err error)
- func (m *AWSIamMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *AWSIamMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *AWSIamMutation) OldIamName(ctx context.Context) (v string, err error)
- func (m *AWSIamMutation) OldSecretKey(ctx context.Context) (v string, err error)
- func (m *AWSIamMutation) OldUID(ctx context.Context) (v string, err error)
- func (m *AWSIamMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *AWSIamMutation) Op() Op
- func (m *AWSIamMutation) RemovedEdges() []string
- func (m *AWSIamMutation) RemovedIDs(name string) []ent.Value
- func (m *AWSIamMutation) ResetAccessKey()
- func (m *AWSIamMutation) ResetAccountID()
- func (m *AWSIamMutation) ResetCreatedAt()
- func (m *AWSIamMutation) ResetEdge(name string) error
- func (m *AWSIamMutation) ResetField(name string) error
- func (m *AWSIamMutation) ResetIamName()
- func (m *AWSIamMutation) ResetSecretKey()
- func (m *AWSIamMutation) ResetUID()
- func (m *AWSIamMutation) ResetUpdatedAt()
- func (m *AWSIamMutation) SecretKey() (r string, exists bool)
- func (m *AWSIamMutation) SetAccessKey(s string)
- func (m *AWSIamMutation) SetAccountID(s string)
- func (m *AWSIamMutation) SetCreatedAt(t time.Time)
- func (m *AWSIamMutation) SetField(name string, value ent.Value) error
- func (m *AWSIamMutation) SetIamName(s string)
- func (m *AWSIamMutation) SetOp(op Op)
- func (m *AWSIamMutation) SetSecretKey(s string)
- func (m *AWSIamMutation) SetUID(s string)
- func (m *AWSIamMutation) SetUpdatedAt(t time.Time)
- func (m AWSIamMutation) Tx() (*Tx, error)
- func (m *AWSIamMutation) Type() string
- func (m *AWSIamMutation) UID() (r string, exists bool)
- func (m *AWSIamMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *AWSIamMutation) Where(ps ...predicate.Aws_iam)
- func (m *AWSIamMutation) WhereP(ps ...func(*sql.Selector))
- type AWSIamQuery
- func (aiq *AWSIamQuery) Aggregate(fns ...AggregateFunc) *AWSIamSelect
- func (aiq *AWSIamQuery) All(ctx context.Context) ([]*Aws_iam, error)
- func (aiq *AWSIamQuery) AllX(ctx context.Context) []*Aws_iam
- func (aiq *AWSIamQuery) Clone() *AWSIamQuery
- func (aiq *AWSIamQuery) Count(ctx context.Context) (int, error)
- func (aiq *AWSIamQuery) CountX(ctx context.Context) int
- func (aiq *AWSIamQuery) Exist(ctx context.Context) (bool, error)
- func (aiq *AWSIamQuery) ExistX(ctx context.Context) bool
- func (aiq *AWSIamQuery) First(ctx context.Context) (*Aws_iam, error)
- func (aiq *AWSIamQuery) FirstID(ctx context.Context) (id int, err error)
- func (aiq *AWSIamQuery) FirstIDX(ctx context.Context) int
- func (aiq *AWSIamQuery) FirstX(ctx context.Context) *Aws_iam
- func (aiq *AWSIamQuery) GroupBy(field string, fields ...string) *AWSIamGroupBy
- func (aiq *AWSIamQuery) IDs(ctx context.Context) (ids []int, err error)
- func (aiq *AWSIamQuery) IDsX(ctx context.Context) []int
- func (aiq *AWSIamQuery) Limit(limit int) *AWSIamQuery
- func (aiq *AWSIamQuery) Offset(offset int) *AWSIamQuery
- func (aiq *AWSIamQuery) Only(ctx context.Context) (*Aws_iam, error)
- func (aiq *AWSIamQuery) OnlyID(ctx context.Context) (id int, err error)
- func (aiq *AWSIamQuery) OnlyIDX(ctx context.Context) int
- func (aiq *AWSIamQuery) OnlyX(ctx context.Context) *Aws_iam
- func (aiq *AWSIamQuery) Order(o ...aws_iam.OrderOption) *AWSIamQuery
- func (aiq *AWSIamQuery) Select(fields ...string) *AWSIamSelect
- func (aiq *AWSIamQuery) Unique(unique bool) *AWSIamQuery
- func (aiq *AWSIamQuery) Where(ps ...predicate.Aws_iam) *AWSIamQuery
- type AWSIamSelect
- func (ais *AWSIamSelect) Aggregate(fns ...AggregateFunc) *AWSIamSelect
- func (s *AWSIamSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *AWSIamSelect) BoolX(ctx context.Context) bool
- func (s *AWSIamSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *AWSIamSelect) BoolsX(ctx context.Context) []bool
- func (s *AWSIamSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *AWSIamSelect) Float64X(ctx context.Context) float64
- func (s *AWSIamSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *AWSIamSelect) Float64sX(ctx context.Context) []float64
- func (s *AWSIamSelect) Int(ctx context.Context) (_ int, err error)
- func (s *AWSIamSelect) IntX(ctx context.Context) int
- func (s *AWSIamSelect) Ints(ctx context.Context) ([]int, error)
- func (s *AWSIamSelect) IntsX(ctx context.Context) []int
- func (ais *AWSIamSelect) Scan(ctx context.Context, v any) error
- func (s *AWSIamSelect) ScanX(ctx context.Context, v any)
- func (s *AWSIamSelect) String(ctx context.Context) (_ string, err error)
- func (s *AWSIamSelect) StringX(ctx context.Context) string
- func (s *AWSIamSelect) Strings(ctx context.Context) ([]string, error)
- func (s *AWSIamSelect) StringsX(ctx context.Context) []string
- type AWSIamUpdate
- func (aiu *AWSIamUpdate) Exec(ctx context.Context) error
- func (aiu *AWSIamUpdate) ExecX(ctx context.Context)
- func (aiu *AWSIamUpdate) Mutation() *AWSIamMutation
- func (aiu *AWSIamUpdate) Save(ctx context.Context) (int, error)
- func (aiu *AWSIamUpdate) SaveX(ctx context.Context) int
- func (aiu *AWSIamUpdate) SetAccessKey(s string) *AWSIamUpdate
- func (aiu *AWSIamUpdate) SetAccountID(s string) *AWSIamUpdate
- func (aiu *AWSIamUpdate) SetCreatedAt(t time.Time) *AWSIamUpdate
- func (aiu *AWSIamUpdate) SetIamName(s string) *AWSIamUpdate
- func (aiu *AWSIamUpdate) SetNillableAccessKey(s *string) *AWSIamUpdate
- func (aiu *AWSIamUpdate) SetNillableAccountID(s *string) *AWSIamUpdate
- func (aiu *AWSIamUpdate) SetNillableCreatedAt(t *time.Time) *AWSIamUpdate
- func (aiu *AWSIamUpdate) SetNillableIamName(s *string) *AWSIamUpdate
- func (aiu *AWSIamUpdate) SetNillableSecretKey(s *string) *AWSIamUpdate
- func (aiu *AWSIamUpdate) SetNillableUID(s *string) *AWSIamUpdate
- func (aiu *AWSIamUpdate) SetNillableUpdatedAt(t *time.Time) *AWSIamUpdate
- func (aiu *AWSIamUpdate) SetSecretKey(s string) *AWSIamUpdate
- func (aiu *AWSIamUpdate) SetUID(s string) *AWSIamUpdate
- func (aiu *AWSIamUpdate) SetUpdatedAt(t time.Time) *AWSIamUpdate
- func (aiu *AWSIamUpdate) Where(ps ...predicate.Aws_iam) *AWSIamUpdate
- type AWSIamUpdateOne
- func (aiuo *AWSIamUpdateOne) Exec(ctx context.Context) error
- func (aiuo *AWSIamUpdateOne) ExecX(ctx context.Context)
- func (aiuo *AWSIamUpdateOne) Mutation() *AWSIamMutation
- func (aiuo *AWSIamUpdateOne) Save(ctx context.Context) (*Aws_iam, error)
- func (aiuo *AWSIamUpdateOne) SaveX(ctx context.Context) *Aws_iam
- func (aiuo *AWSIamUpdateOne) Select(field string, fields ...string) *AWSIamUpdateOne
- func (aiuo *AWSIamUpdateOne) SetAccessKey(s string) *AWSIamUpdateOne
- func (aiuo *AWSIamUpdateOne) SetAccountID(s string) *AWSIamUpdateOne
- func (aiuo *AWSIamUpdateOne) SetCreatedAt(t time.Time) *AWSIamUpdateOne
- func (aiuo *AWSIamUpdateOne) SetIamName(s string) *AWSIamUpdateOne
- func (aiuo *AWSIamUpdateOne) SetNillableAccessKey(s *string) *AWSIamUpdateOne
- func (aiuo *AWSIamUpdateOne) SetNillableAccountID(s *string) *AWSIamUpdateOne
- func (aiuo *AWSIamUpdateOne) SetNillableCreatedAt(t *time.Time) *AWSIamUpdateOne
- func (aiuo *AWSIamUpdateOne) SetNillableIamName(s *string) *AWSIamUpdateOne
- func (aiuo *AWSIamUpdateOne) SetNillableSecretKey(s *string) *AWSIamUpdateOne
- func (aiuo *AWSIamUpdateOne) SetNillableUID(s *string) *AWSIamUpdateOne
- func (aiuo *AWSIamUpdateOne) SetNillableUpdatedAt(t *time.Time) *AWSIamUpdateOne
- func (aiuo *AWSIamUpdateOne) SetSecretKey(s string) *AWSIamUpdateOne
- func (aiuo *AWSIamUpdateOne) SetUID(s string) *AWSIamUpdateOne
- func (aiuo *AWSIamUpdateOne) SetUpdatedAt(t time.Time) *AWSIamUpdateOne
- func (aiuo *AWSIamUpdateOne) Where(ps ...predicate.Aws_iam) *AWSIamUpdateOne
- type AggregateFunc
- type Aws_iam
- type Aws_iams
- type Client
- func (c *Client) BeginTx(ctx context.Context, opts *sql.TxOptions) (*Tx, error)
- func (c *Client) Close() error
- func (c *Client) Debug() *Client
- func (c *Client) Intercept(interceptors ...Interceptor)
- func (c *Client) Mutate(ctx context.Context, m Mutation) (Value, error)
- func (c *Client) Tx(ctx context.Context) (*Tx, error)
- func (c *Client) Use(hooks ...Hook)
- type CommitFunc
- type CommitHook
- type Committer
- type ConstraintError
- type Hook
- type InterceptFunc
- type Interceptor
- type MutateFunc
- type Mutation
- type Mutator
- type NotFoundError
- type NotLoadedError
- type NotSingularError
- type Op
- type Option
- type OrderFunc
- type Policy
- type Querier
- type QuerierFunc
- type Query
- type QueryContext
- type RollbackFunc
- type RollbackHook
- type Rollbacker
- type TraverseFunc
- type Traverser
- type Tx
- type ValidationError
- type Value
Constants ¶
const ( // Operation types. OpCreate = ent.OpCreate OpDelete = ent.OpDelete OpDeleteOne = ent.OpDeleteOne OpUpdate = ent.OpUpdate OpUpdateOne = ent.OpUpdateOne // Node types. TypeAWSIam = "Aws_iam" )
Variables ¶
var ErrTxStarted = errors.New("ent: cannot start a transaction within a transaction")
ErrTxStarted is returned when trying to start a new transaction from a transactional client.
Functions ¶
func IsConstraintError ¶
IsConstraintError returns a boolean indicating whether the error is a constraint failure.
func IsNotFound ¶
IsNotFound returns a boolean indicating whether the error is a not found error.
func IsNotLoaded ¶
IsNotLoaded returns a boolean indicating whether the error is a not loaded error.
func IsNotSingular ¶
IsNotSingular returns a boolean indicating whether the error is a not singular error.
func IsValidationError ¶
IsValidationError returns a boolean indicating whether the error is a validation error.
func NewContext ¶
NewContext returns a new context with the given Client attached.
Types ¶
type AWSIamClient ¶
type AWSIamClient struct {
// contains filtered or unexported fields
}
AWSIamClient is a client for the Aws_iam schema.
func NewAWSIamClient ¶
func NewAWSIamClient(c config) *AWSIamClient
NewAWSIamClient returns a client for the Aws_iam from the given config.
func (*AWSIamClient) Create ¶
func (c *AWSIamClient) Create() *AWSIamCreate
Create returns a builder for creating a Aws_iam entity.
func (*AWSIamClient) CreateBulk ¶
func (c *AWSIamClient) CreateBulk(builders ...*AWSIamCreate) *AWSIamCreateBulk
CreateBulk returns a builder for creating a bulk of Aws_iam entities.
func (*AWSIamClient) Delete ¶
func (c *AWSIamClient) Delete() *AWSIamDelete
Delete returns a delete builder for Aws_iam.
func (*AWSIamClient) DeleteOne ¶
func (c *AWSIamClient) DeleteOne(ai *Aws_iam) *AWSIamDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*AWSIamClient) DeleteOneID ¶
func (c *AWSIamClient) DeleteOneID(id int) *AWSIamDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*AWSIamClient) GetX ¶
func (c *AWSIamClient) GetX(ctx context.Context, id int) *Aws_iam
GetX is like Get, but panics if an error occurs.
func (*AWSIamClient) Intercept ¶
func (c *AWSIamClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `aws_iam.Intercept(f(g(h())))`.
func (*AWSIamClient) Interceptors ¶
func (c *AWSIamClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*AWSIamClient) MapCreateBulk ¶
func (c *AWSIamClient) MapCreateBulk(slice any, setFunc func(*AWSIamCreate, int)) *AWSIamCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
func (*AWSIamClient) Query ¶
func (c *AWSIamClient) Query() *AWSIamQuery
Query returns a query builder for Aws_iam.
func (*AWSIamClient) Update ¶
func (c *AWSIamClient) Update() *AWSIamUpdate
Update returns an update builder for Aws_iam.
func (*AWSIamClient) UpdateOne ¶
func (c *AWSIamClient) UpdateOne(ai *Aws_iam) *AWSIamUpdateOne
UpdateOne returns an update builder for the given entity.
func (*AWSIamClient) UpdateOneID ¶
func (c *AWSIamClient) UpdateOneID(id int) *AWSIamUpdateOne
UpdateOneID returns an update builder for the given id.
func (*AWSIamClient) Use ¶
func (c *AWSIamClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `aws_iam.Hooks(f(g(h())))`.
type AWSIamCreate ¶
type AWSIamCreate struct {
// contains filtered or unexported fields
}
AWSIamCreate is the builder for creating a Aws_iam entity.
func (*AWSIamCreate) Exec ¶
func (aic *AWSIamCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*AWSIamCreate) ExecX ¶
func (aic *AWSIamCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*AWSIamCreate) Mutation ¶
func (aic *AWSIamCreate) Mutation() *AWSIamMutation
Mutation returns the AWSIamMutation object of the builder.
func (*AWSIamCreate) Save ¶
func (aic *AWSIamCreate) Save(ctx context.Context) (*Aws_iam, error)
Save creates the Aws_iam in the database.
func (*AWSIamCreate) SaveX ¶
func (aic *AWSIamCreate) SaveX(ctx context.Context) *Aws_iam
SaveX calls Save and panics if Save returns an error.
func (*AWSIamCreate) SetAccessKey ¶
func (aic *AWSIamCreate) SetAccessKey(s string) *AWSIamCreate
SetAccessKey sets the "access_key" field.
func (*AWSIamCreate) SetAccountID ¶
func (aic *AWSIamCreate) SetAccountID(s string) *AWSIamCreate
SetAccountID sets the "account_id" field.
func (*AWSIamCreate) SetCreatedAt ¶
func (aic *AWSIamCreate) SetCreatedAt(t time.Time) *AWSIamCreate
SetCreatedAt sets the "created_at" field.
func (*AWSIamCreate) SetIamName ¶
func (aic *AWSIamCreate) SetIamName(s string) *AWSIamCreate
SetIamName sets the "iam_name" field.
func (*AWSIamCreate) SetNillableCreatedAt ¶
func (aic *AWSIamCreate) SetNillableCreatedAt(t *time.Time) *AWSIamCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*AWSIamCreate) SetNillableUpdatedAt ¶
func (aic *AWSIamCreate) SetNillableUpdatedAt(t *time.Time) *AWSIamCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*AWSIamCreate) SetSecretKey ¶
func (aic *AWSIamCreate) SetSecretKey(s string) *AWSIamCreate
SetSecretKey sets the "secret_key" field.
func (*AWSIamCreate) SetUID ¶
func (aic *AWSIamCreate) SetUID(s string) *AWSIamCreate
SetUID sets the "uid" field.
func (*AWSIamCreate) SetUpdatedAt ¶
func (aic *AWSIamCreate) SetUpdatedAt(t time.Time) *AWSIamCreate
SetUpdatedAt sets the "updated_at" field.
type AWSIamCreateBulk ¶
type AWSIamCreateBulk struct {
// contains filtered or unexported fields
}
AWSIamCreateBulk is the builder for creating many Aws_iam entities in bulk.
func (*AWSIamCreateBulk) Exec ¶
func (aicb *AWSIamCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*AWSIamCreateBulk) ExecX ¶
func (aicb *AWSIamCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type AWSIamDelete ¶
type AWSIamDelete struct {
// contains filtered or unexported fields
}
AWSIamDelete is the builder for deleting a Aws_iam entity.
func (*AWSIamDelete) Exec ¶
func (aid *AWSIamDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*AWSIamDelete) ExecX ¶
func (aid *AWSIamDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*AWSIamDelete) Where ¶
func (aid *AWSIamDelete) Where(ps ...predicate.Aws_iam) *AWSIamDelete
Where appends a list predicates to the AWSIamDelete builder.
type AWSIamDeleteOne ¶
type AWSIamDeleteOne struct {
// contains filtered or unexported fields
}
AWSIamDeleteOne is the builder for deleting a single Aws_iam entity.
func (*AWSIamDeleteOne) Exec ¶
func (aido *AWSIamDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*AWSIamDeleteOne) ExecX ¶
func (aido *AWSIamDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*AWSIamDeleteOne) Where ¶
func (aido *AWSIamDeleteOne) Where(ps ...predicate.Aws_iam) *AWSIamDeleteOne
Where appends a list predicates to the AWSIamDelete builder.
type AWSIamGroupBy ¶
type AWSIamGroupBy struct {
// contains filtered or unexported fields
}
AWSIamGroupBy is the group-by builder for Aws_iam entities.
func (*AWSIamGroupBy) Aggregate ¶
func (aigb *AWSIamGroupBy) Aggregate(fns ...AggregateFunc) *AWSIamGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*AWSIamGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*AWSIamGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*AWSIamGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*AWSIamGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*AWSIamGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*AWSIamGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*AWSIamGroupBy) Scan ¶
func (aigb *AWSIamGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*AWSIamGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type AWSIamMutation ¶
type AWSIamMutation struct {
// contains filtered or unexported fields
}
AWSIamMutation represents an operation that mutates the Aws_iam nodes in the graph.
func (*AWSIamMutation) AccessKey ¶
func (m *AWSIamMutation) AccessKey() (r string, exists bool)
AccessKey returns the value of the "access_key" field in the mutation.
func (*AWSIamMutation) AccountID ¶
func (m *AWSIamMutation) AccountID() (r string, exists bool)
AccountID returns the value of the "account_id" field in the mutation.
func (*AWSIamMutation) AddField ¶
func (m *AWSIamMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*AWSIamMutation) AddedEdges ¶
func (m *AWSIamMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*AWSIamMutation) AddedField ¶
func (m *AWSIamMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*AWSIamMutation) AddedFields ¶
func (m *AWSIamMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*AWSIamMutation) AddedIDs ¶
func (m *AWSIamMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*AWSIamMutation) ClearEdge ¶
func (m *AWSIamMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*AWSIamMutation) ClearField ¶
func (m *AWSIamMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*AWSIamMutation) ClearedEdges ¶
func (m *AWSIamMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*AWSIamMutation) ClearedFields ¶
func (m *AWSIamMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (AWSIamMutation) Client ¶
func (m AWSIamMutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*AWSIamMutation) CreatedAt ¶
func (m *AWSIamMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*AWSIamMutation) EdgeCleared ¶
func (m *AWSIamMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*AWSIamMutation) Field ¶
func (m *AWSIamMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*AWSIamMutation) FieldCleared ¶
func (m *AWSIamMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*AWSIamMutation) Fields ¶
func (m *AWSIamMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*AWSIamMutation) ID ¶
func (m *AWSIamMutation) ID() (id int, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*AWSIamMutation) IDs ¶
func (m *AWSIamMutation) IDs(ctx context.Context) ([]int, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*AWSIamMutation) IamName ¶
func (m *AWSIamMutation) IamName() (r string, exists bool)
IamName returns the value of the "iam_name" field in the mutation.
func (*AWSIamMutation) OldAccessKey ¶
func (m *AWSIamMutation) OldAccessKey(ctx context.Context) (v string, err error)
OldAccessKey returns the old "access_key" field's value of the Aws_iam entity. If the Aws_iam object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*AWSIamMutation) OldAccountID ¶
func (m *AWSIamMutation) OldAccountID(ctx context.Context) (v string, err error)
OldAccountID returns the old "account_id" field's value of the Aws_iam entity. If the Aws_iam object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*AWSIamMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the Aws_iam entity. If the Aws_iam object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*AWSIamMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*AWSIamMutation) OldIamName ¶
func (m *AWSIamMutation) OldIamName(ctx context.Context) (v string, err error)
OldIamName returns the old "iam_name" field's value of the Aws_iam entity. If the Aws_iam object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*AWSIamMutation) OldSecretKey ¶
func (m *AWSIamMutation) OldSecretKey(ctx context.Context) (v string, err error)
OldSecretKey returns the old "secret_key" field's value of the Aws_iam entity. If the Aws_iam object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*AWSIamMutation) OldUID ¶
func (m *AWSIamMutation) OldUID(ctx context.Context) (v string, err error)
OldUID returns the old "uid" field's value of the Aws_iam entity. If the Aws_iam object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*AWSIamMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the Aws_iam entity. If the Aws_iam object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*AWSIamMutation) RemovedEdges ¶
func (m *AWSIamMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*AWSIamMutation) RemovedIDs ¶
func (m *AWSIamMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*AWSIamMutation) ResetAccessKey ¶
func (m *AWSIamMutation) ResetAccessKey()
ResetAccessKey resets all changes to the "access_key" field.
func (*AWSIamMutation) ResetAccountID ¶
func (m *AWSIamMutation) ResetAccountID()
ResetAccountID resets all changes to the "account_id" field.
func (*AWSIamMutation) ResetCreatedAt ¶
func (m *AWSIamMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*AWSIamMutation) ResetEdge ¶
func (m *AWSIamMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*AWSIamMutation) ResetField ¶
func (m *AWSIamMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*AWSIamMutation) ResetIamName ¶
func (m *AWSIamMutation) ResetIamName()
ResetIamName resets all changes to the "iam_name" field.
func (*AWSIamMutation) ResetSecretKey ¶
func (m *AWSIamMutation) ResetSecretKey()
ResetSecretKey resets all changes to the "secret_key" field.
func (*AWSIamMutation) ResetUID ¶
func (m *AWSIamMutation) ResetUID()
ResetUID resets all changes to the "uid" field.
func (*AWSIamMutation) ResetUpdatedAt ¶
func (m *AWSIamMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*AWSIamMutation) SecretKey ¶
func (m *AWSIamMutation) SecretKey() (r string, exists bool)
SecretKey returns the value of the "secret_key" field in the mutation.
func (*AWSIamMutation) SetAccessKey ¶
func (m *AWSIamMutation) SetAccessKey(s string)
SetAccessKey sets the "access_key" field.
func (*AWSIamMutation) SetAccountID ¶
func (m *AWSIamMutation) SetAccountID(s string)
SetAccountID sets the "account_id" field.
func (*AWSIamMutation) SetCreatedAt ¶
func (m *AWSIamMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*AWSIamMutation) SetField ¶
func (m *AWSIamMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*AWSIamMutation) SetIamName ¶
func (m *AWSIamMutation) SetIamName(s string)
SetIamName sets the "iam_name" field.
func (*AWSIamMutation) SetOp ¶
func (m *AWSIamMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*AWSIamMutation) SetSecretKey ¶
func (m *AWSIamMutation) SetSecretKey(s string)
SetSecretKey sets the "secret_key" field.
func (*AWSIamMutation) SetUID ¶
func (m *AWSIamMutation) SetUID(s string)
SetUID sets the "uid" field.
func (*AWSIamMutation) SetUpdatedAt ¶
func (m *AWSIamMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (AWSIamMutation) Tx ¶
func (m AWSIamMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*AWSIamMutation) Type ¶
func (m *AWSIamMutation) Type() string
Type returns the node type of this mutation (Aws_iam).
func (*AWSIamMutation) UID ¶
func (m *AWSIamMutation) UID() (r string, exists bool)
UID returns the value of the "uid" field in the mutation.
func (*AWSIamMutation) UpdatedAt ¶
func (m *AWSIamMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*AWSIamMutation) Where ¶
func (m *AWSIamMutation) Where(ps ...predicate.Aws_iam)
Where appends a list predicates to the AWSIamMutation builder.
func (*AWSIamMutation) WhereP ¶
func (m *AWSIamMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the AWSIamMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type AWSIamQuery ¶
type AWSIamQuery struct {
// contains filtered or unexported fields
}
AWSIamQuery is the builder for querying Aws_iam entities.
func (*AWSIamQuery) Aggregate ¶
func (aiq *AWSIamQuery) Aggregate(fns ...AggregateFunc) *AWSIamSelect
Aggregate returns a AWSIamSelect configured with the given aggregations.
func (*AWSIamQuery) All ¶
func (aiq *AWSIamQuery) All(ctx context.Context) ([]*Aws_iam, error)
All executes the query and returns a list of Aws_iams.
func (*AWSIamQuery) AllX ¶
func (aiq *AWSIamQuery) AllX(ctx context.Context) []*Aws_iam
AllX is like All, but panics if an error occurs.
func (*AWSIamQuery) Clone ¶
func (aiq *AWSIamQuery) Clone() *AWSIamQuery
Clone returns a duplicate of the AWSIamQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*AWSIamQuery) Count ¶
func (aiq *AWSIamQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*AWSIamQuery) CountX ¶
func (aiq *AWSIamQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*AWSIamQuery) Exist ¶
func (aiq *AWSIamQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*AWSIamQuery) ExistX ¶
func (aiq *AWSIamQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*AWSIamQuery) First ¶
func (aiq *AWSIamQuery) First(ctx context.Context) (*Aws_iam, error)
First returns the first Aws_iam entity from the query. Returns a *NotFoundError when no Aws_iam was found.
func (*AWSIamQuery) FirstID ¶
func (aiq *AWSIamQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first Aws_iam ID from the query. Returns a *NotFoundError when no Aws_iam ID was found.
func (*AWSIamQuery) FirstIDX ¶
func (aiq *AWSIamQuery) FirstIDX(ctx context.Context) int
FirstIDX is like FirstID, but panics if an error occurs.
func (*AWSIamQuery) FirstX ¶
func (aiq *AWSIamQuery) FirstX(ctx context.Context) *Aws_iam
FirstX is like First, but panics if an error occurs.
func (*AWSIamQuery) GroupBy ¶
func (aiq *AWSIamQuery) GroupBy(field string, fields ...string) *AWSIamGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct {
UID string `json:"uid,omitempty"`
Count int `json:"count,omitempty"`
}
client.AWSIam.Query().
GroupBy(aws_iam.FieldUID).
Aggregate(ent.Count()).
Scan(ctx, &v)
func (*AWSIamQuery) IDs ¶
func (aiq *AWSIamQuery) IDs(ctx context.Context) (ids []int, err error)
IDs executes the query and returns a list of Aws_iam IDs.
func (*AWSIamQuery) IDsX ¶
func (aiq *AWSIamQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*AWSIamQuery) Limit ¶
func (aiq *AWSIamQuery) Limit(limit int) *AWSIamQuery
Limit the number of records to be returned by this query.
func (*AWSIamQuery) Offset ¶
func (aiq *AWSIamQuery) Offset(offset int) *AWSIamQuery
Offset to start from.
func (*AWSIamQuery) Only ¶
func (aiq *AWSIamQuery) Only(ctx context.Context) (*Aws_iam, error)
Only returns a single Aws_iam entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Aws_iam entity is found. Returns a *NotFoundError when no Aws_iam entities are found.
func (*AWSIamQuery) OnlyID ¶
func (aiq *AWSIamQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID is like Only, but returns the only Aws_iam ID in the query. Returns a *NotSingularError when more than one Aws_iam ID is found. Returns a *NotFoundError when no entities are found.
func (*AWSIamQuery) OnlyIDX ¶
func (aiq *AWSIamQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*AWSIamQuery) OnlyX ¶
func (aiq *AWSIamQuery) OnlyX(ctx context.Context) *Aws_iam
OnlyX is like Only, but panics if an error occurs.
func (*AWSIamQuery) Order ¶
func (aiq *AWSIamQuery) Order(o ...aws_iam.OrderOption) *AWSIamQuery
Order specifies how the records should be ordered.
func (*AWSIamQuery) Select ¶
func (aiq *AWSIamQuery) Select(fields ...string) *AWSIamSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct {
UID string `json:"uid,omitempty"`
}
client.AWSIam.Query().
Select(aws_iam.FieldUID).
Scan(ctx, &v)
func (*AWSIamQuery) Unique ¶
func (aiq *AWSIamQuery) Unique(unique bool) *AWSIamQuery
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
func (*AWSIamQuery) Where ¶
func (aiq *AWSIamQuery) Where(ps ...predicate.Aws_iam) *AWSIamQuery
Where adds a new predicate for the AWSIamQuery builder.
type AWSIamSelect ¶
type AWSIamSelect struct {
*AWSIamQuery
// contains filtered or unexported fields
}
AWSIamSelect is the builder for selecting fields of AWSIam entities.
func (*AWSIamSelect) Aggregate ¶
func (ais *AWSIamSelect) Aggregate(fns ...AggregateFunc) *AWSIamSelect
Aggregate adds the given aggregation functions to the selector query.
func (*AWSIamSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*AWSIamSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*AWSIamSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*AWSIamSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*AWSIamSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*AWSIamSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*AWSIamSelect) Scan ¶
func (ais *AWSIamSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*AWSIamSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type AWSIamUpdate ¶
type AWSIamUpdate struct {
// contains filtered or unexported fields
}
AWSIamUpdate is the builder for updating Aws_iam entities.
func (*AWSIamUpdate) Exec ¶
func (aiu *AWSIamUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*AWSIamUpdate) ExecX ¶
func (aiu *AWSIamUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*AWSIamUpdate) Mutation ¶
func (aiu *AWSIamUpdate) Mutation() *AWSIamMutation
Mutation returns the AWSIamMutation object of the builder.
func (*AWSIamUpdate) Save ¶
func (aiu *AWSIamUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*AWSIamUpdate) SaveX ¶
func (aiu *AWSIamUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*AWSIamUpdate) SetAccessKey ¶
func (aiu *AWSIamUpdate) SetAccessKey(s string) *AWSIamUpdate
SetAccessKey sets the "access_key" field.
func (*AWSIamUpdate) SetAccountID ¶
func (aiu *AWSIamUpdate) SetAccountID(s string) *AWSIamUpdate
SetAccountID sets the "account_id" field.
func (*AWSIamUpdate) SetCreatedAt ¶
func (aiu *AWSIamUpdate) SetCreatedAt(t time.Time) *AWSIamUpdate
SetCreatedAt sets the "created_at" field.
func (*AWSIamUpdate) SetIamName ¶
func (aiu *AWSIamUpdate) SetIamName(s string) *AWSIamUpdate
SetIamName sets the "iam_name" field.
func (*AWSIamUpdate) SetNillableAccessKey ¶
func (aiu *AWSIamUpdate) SetNillableAccessKey(s *string) *AWSIamUpdate
SetNillableAccessKey sets the "access_key" field if the given value is not nil.
func (*AWSIamUpdate) SetNillableAccountID ¶
func (aiu *AWSIamUpdate) SetNillableAccountID(s *string) *AWSIamUpdate
SetNillableAccountID sets the "account_id" field if the given value is not nil.
func (*AWSIamUpdate) SetNillableCreatedAt ¶
func (aiu *AWSIamUpdate) SetNillableCreatedAt(t *time.Time) *AWSIamUpdate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*AWSIamUpdate) SetNillableIamName ¶
func (aiu *AWSIamUpdate) SetNillableIamName(s *string) *AWSIamUpdate
SetNillableIamName sets the "iam_name" field if the given value is not nil.
func (*AWSIamUpdate) SetNillableSecretKey ¶
func (aiu *AWSIamUpdate) SetNillableSecretKey(s *string) *AWSIamUpdate
SetNillableSecretKey sets the "secret_key" field if the given value is not nil.
func (*AWSIamUpdate) SetNillableUID ¶
func (aiu *AWSIamUpdate) SetNillableUID(s *string) *AWSIamUpdate
SetNillableUID sets the "uid" field if the given value is not nil.
func (*AWSIamUpdate) SetNillableUpdatedAt ¶
func (aiu *AWSIamUpdate) SetNillableUpdatedAt(t *time.Time) *AWSIamUpdate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*AWSIamUpdate) SetSecretKey ¶
func (aiu *AWSIamUpdate) SetSecretKey(s string) *AWSIamUpdate
SetSecretKey sets the "secret_key" field.
func (*AWSIamUpdate) SetUID ¶
func (aiu *AWSIamUpdate) SetUID(s string) *AWSIamUpdate
SetUID sets the "uid" field.
func (*AWSIamUpdate) SetUpdatedAt ¶
func (aiu *AWSIamUpdate) SetUpdatedAt(t time.Time) *AWSIamUpdate
SetUpdatedAt sets the "updated_at" field.
func (*AWSIamUpdate) Where ¶
func (aiu *AWSIamUpdate) Where(ps ...predicate.Aws_iam) *AWSIamUpdate
Where appends a list predicates to the AWSIamUpdate builder.
type AWSIamUpdateOne ¶
type AWSIamUpdateOne struct {
// contains filtered or unexported fields
}
AWSIamUpdateOne is the builder for updating a single Aws_iam entity.
func (*AWSIamUpdateOne) Exec ¶
func (aiuo *AWSIamUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*AWSIamUpdateOne) ExecX ¶
func (aiuo *AWSIamUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*AWSIamUpdateOne) Mutation ¶
func (aiuo *AWSIamUpdateOne) Mutation() *AWSIamMutation
Mutation returns the AWSIamMutation object of the builder.
func (*AWSIamUpdateOne) Save ¶
func (aiuo *AWSIamUpdateOne) Save(ctx context.Context) (*Aws_iam, error)
Save executes the query and returns the updated Aws_iam entity.
func (*AWSIamUpdateOne) SaveX ¶
func (aiuo *AWSIamUpdateOne) SaveX(ctx context.Context) *Aws_iam
SaveX is like Save, but panics if an error occurs.
func (*AWSIamUpdateOne) Select ¶
func (aiuo *AWSIamUpdateOne) Select(field string, fields ...string) *AWSIamUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*AWSIamUpdateOne) SetAccessKey ¶
func (aiuo *AWSIamUpdateOne) SetAccessKey(s string) *AWSIamUpdateOne
SetAccessKey sets the "access_key" field.
func (*AWSIamUpdateOne) SetAccountID ¶
func (aiuo *AWSIamUpdateOne) SetAccountID(s string) *AWSIamUpdateOne
SetAccountID sets the "account_id" field.
func (*AWSIamUpdateOne) SetCreatedAt ¶
func (aiuo *AWSIamUpdateOne) SetCreatedAt(t time.Time) *AWSIamUpdateOne
SetCreatedAt sets the "created_at" field.
func (*AWSIamUpdateOne) SetIamName ¶
func (aiuo *AWSIamUpdateOne) SetIamName(s string) *AWSIamUpdateOne
SetIamName sets the "iam_name" field.
func (*AWSIamUpdateOne) SetNillableAccessKey ¶
func (aiuo *AWSIamUpdateOne) SetNillableAccessKey(s *string) *AWSIamUpdateOne
SetNillableAccessKey sets the "access_key" field if the given value is not nil.
func (*AWSIamUpdateOne) SetNillableAccountID ¶
func (aiuo *AWSIamUpdateOne) SetNillableAccountID(s *string) *AWSIamUpdateOne
SetNillableAccountID sets the "account_id" field if the given value is not nil.
func (*AWSIamUpdateOne) SetNillableCreatedAt ¶
func (aiuo *AWSIamUpdateOne) SetNillableCreatedAt(t *time.Time) *AWSIamUpdateOne
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*AWSIamUpdateOne) SetNillableIamName ¶
func (aiuo *AWSIamUpdateOne) SetNillableIamName(s *string) *AWSIamUpdateOne
SetNillableIamName sets the "iam_name" field if the given value is not nil.
func (*AWSIamUpdateOne) SetNillableSecretKey ¶
func (aiuo *AWSIamUpdateOne) SetNillableSecretKey(s *string) *AWSIamUpdateOne
SetNillableSecretKey sets the "secret_key" field if the given value is not nil.
func (*AWSIamUpdateOne) SetNillableUID ¶
func (aiuo *AWSIamUpdateOne) SetNillableUID(s *string) *AWSIamUpdateOne
SetNillableUID sets the "uid" field if the given value is not nil.
func (*AWSIamUpdateOne) SetNillableUpdatedAt ¶
func (aiuo *AWSIamUpdateOne) SetNillableUpdatedAt(t *time.Time) *AWSIamUpdateOne
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*AWSIamUpdateOne) SetSecretKey ¶
func (aiuo *AWSIamUpdateOne) SetSecretKey(s string) *AWSIamUpdateOne
SetSecretKey sets the "secret_key" field.
func (*AWSIamUpdateOne) SetUID ¶
func (aiuo *AWSIamUpdateOne) SetUID(s string) *AWSIamUpdateOne
SetUID sets the "uid" field.
func (*AWSIamUpdateOne) SetUpdatedAt ¶
func (aiuo *AWSIamUpdateOne) SetUpdatedAt(t time.Time) *AWSIamUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*AWSIamUpdateOne) Where ¶
func (aiuo *AWSIamUpdateOne) Where(ps ...predicate.Aws_iam) *AWSIamUpdateOne
Where appends a list predicates to the AWSIamUpdate builder.
type AggregateFunc ¶
AggregateFunc applies an aggregation step on the group-by traversal/selector.
func As ¶
func As(fn AggregateFunc, end string) AggregateFunc
As is a pseudo aggregation function for renaming another other functions with custom names. For example:
GroupBy(field1, field2). Aggregate(ent.As(ent.Sum(field1), "sum_field1"), (ent.As(ent.Sum(field2), "sum_field2")). Scan(ctx, &v)
func Count ¶
func Count() AggregateFunc
Count applies the "count" aggregation function on each group.
func Max ¶
func Max(field string) AggregateFunc
Max applies the "max" aggregation function on the given field of each group.
func Mean ¶
func Mean(field string) AggregateFunc
Mean applies the "mean" aggregation function on the given field of each group.
func Min ¶
func Min(field string) AggregateFunc
Min applies the "min" aggregation function on the given field of each group.
func Sum ¶
func Sum(field string) AggregateFunc
Sum applies the "sum" aggregation function on the given field of each group.
type Aws_iam ¶
type Aws_iam struct {
// ID of the ent.
ID int `json:"id,omitempty"`
// UID holds the value of the "uid" field.
UID string `json:"uid,omitempty"`
// AccountID holds the value of the "account_id" field.
AccountID string `json:"account_id,omitempty"`
// IamName holds the value of the "iam_name" field.
IamName string `json:"iam_name,omitempty"`
// AccessKey holds the value of the "access_key" field.
AccessKey string `json:"access_key,omitempty"`
// SecretKey holds the value of the "secret_key" field.
SecretKey string `json:"secret_key,omitempty"`
// CreatedAt holds the value of the "created_at" field.
CreatedAt time.Time `json:"created_at,omitempty"`
// UpdatedAt holds the value of the "updated_at" field.
UpdatedAt time.Time `json:"updated_at,omitempty"`
// contains filtered or unexported fields
}
Aws_iam is the model entity for the Aws_iam schema.
func (*Aws_iam) Unwrap ¶
Unwrap unwraps the Aws_iam entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*Aws_iam) Update ¶
func (ai *Aws_iam) Update() *AWSIamUpdateOne
Update returns a builder for updating this Aws_iam. Note that you need to call Aws_iam.Unwrap() before calling this method if this Aws_iam was returned from a transaction, and the transaction was committed or rolled back.
type Client ¶
type Client struct {
// Schema is the client for creating, migrating and dropping schema.
Schema *migrate.Schema
// Aws_iam is the client for interacting with the Aws_iam builders.
Aws_iam *AWSIamClient
// contains filtered or unexported fields
}
Client is the client that holds all ent builders.
func FromContext ¶
FromContext returns a Client stored inside a context, or nil if there isn't one.
func Open ¶
Open opens a database/sql.DB specified by the driver name and the data source name, and returns a new client attached to it. Optional parameters can be added for configuring the client.
func (*Client) Debug ¶
Debug returns a new debug-client. It's used to get verbose logging on specific operations.
client.Debug(). Aws_iam. Query(). Count(ctx)
func (*Client) Intercept ¶
func (c *Client) Intercept(interceptors ...Interceptor)
Intercept adds the query interceptors to all the entity clients. In order to add interceptors to a specific client, call: `client.Node.Intercept(...)`.
type CommitFunc ¶
The CommitFunc type is an adapter to allow the use of ordinary function as a Committer. If f is a function with the appropriate signature, CommitFunc(f) is a Committer that calls f.
type CommitHook ¶
CommitHook defines the "commit middleware". A function that gets a Committer and returns a Committer. For example:
hook := func(next ent.Committer) ent.Committer {
return ent.CommitFunc(func(ctx context.Context, tx *ent.Tx) error {
// Do some stuff before.
if err := next.Commit(ctx, tx); err != nil {
return err
}
// Do some stuff after.
return nil
})
}
type ConstraintError ¶
type ConstraintError struct {
// contains filtered or unexported fields
}
ConstraintError returns when trying to create/update one or more entities and one or more of their constraints failed. For example, violation of edge or field uniqueness.
func (ConstraintError) Error ¶
func (e ConstraintError) Error() string
Error implements the error interface.
func (*ConstraintError) Unwrap ¶
func (e *ConstraintError) Unwrap() error
Unwrap implements the errors.Wrapper interface.
type InterceptFunc ¶
type InterceptFunc = ent.InterceptFunc
ent aliases to avoid import conflicts in user's code.
type Interceptor ¶
type Interceptor = ent.Interceptor
ent aliases to avoid import conflicts in user's code.
type MutateFunc ¶
type MutateFunc = ent.MutateFunc
ent aliases to avoid import conflicts in user's code.
type NotFoundError ¶
type NotFoundError struct {
// contains filtered or unexported fields
}
NotFoundError returns when trying to fetch a specific entity and it was not found in the database.
func (*NotFoundError) Error ¶
func (e *NotFoundError) Error() string
Error implements the error interface.
type NotLoadedError ¶
type NotLoadedError struct {
// contains filtered or unexported fields
}
NotLoadedError returns when trying to get a node that was not loaded by the query.
func (*NotLoadedError) Error ¶
func (e *NotLoadedError) Error() string
Error implements the error interface.
type NotSingularError ¶
type NotSingularError struct {
// contains filtered or unexported fields
}
NotSingularError returns when trying to fetch a singular entity and more then one was found in the database.
func (*NotSingularError) Error ¶
func (e *NotSingularError) Error() string
Error implements the error interface.
type OrderFunc ¶
OrderFunc applies an ordering on the sql selector. Deprecated: Use Asc/Desc functions or the package builders instead.
type QuerierFunc ¶
type QuerierFunc = ent.QuerierFunc
ent aliases to avoid import conflicts in user's code.
type QueryContext ¶
type QueryContext = ent.QueryContext
ent aliases to avoid import conflicts in user's code.
type RollbackFunc ¶
The RollbackFunc type is an adapter to allow the use of ordinary function as a Rollbacker. If f is a function with the appropriate signature, RollbackFunc(f) is a Rollbacker that calls f.
type RollbackHook ¶
type RollbackHook func(Rollbacker) Rollbacker
RollbackHook defines the "rollback middleware". A function that gets a Rollbacker and returns a Rollbacker. For example:
hook := func(next ent.Rollbacker) ent.Rollbacker {
return ent.RollbackFunc(func(ctx context.Context, tx *ent.Tx) error {
// Do some stuff before.
if err := next.Rollback(ctx, tx); err != nil {
return err
}
// Do some stuff after.
return nil
})
}
type Rollbacker ¶
Rollbacker is the interface that wraps the Rollback method.
type TraverseFunc ¶
type TraverseFunc = ent.TraverseFunc
ent aliases to avoid import conflicts in user's code.
type Tx ¶
type Tx struct {
// Aws_iam is the client for interacting with the Aws_iam builders.
Aws_iam *AWSIamClient
// contains filtered or unexported fields
}
Tx is a transactional client that is created by calling Client.Tx().
func TxFromContext ¶
TxFromContext returns a Tx stored inside a context, or nil if there isn't one.
func (*Tx) OnRollback ¶
func (tx *Tx) OnRollback(f RollbackHook)
OnRollback adds a hook to call on rollback.
type ValidationError ¶
type ValidationError struct {
Name string // Field or edge name.
// contains filtered or unexported fields
}
ValidationError returns when validating a field or edge fails.
func (*ValidationError) Error ¶
func (e *ValidationError) Error() string
Error implements the error interface.
func (*ValidationError) Unwrap ¶
func (e *ValidationError) Unwrap() error
Unwrap implements the errors.Wrapper interface.