MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/scion / SetCodeHash

Method SetCodeHash

pkg/ent/invitecode_create.go:868–872  ·  view source on GitHub ↗

SetCodeHash sets the "code_hash" field.

(v string)

Source from the content-addressed store, hash-verified

866
867// SetCodeHash sets the "code_hash" field.
868func (u *InviteCodeUpsertBulk) SetCodeHash(v string) *InviteCodeUpsertBulk {
869 return u.Update(func(s *InviteCodeUpsert) {
870 s.SetCodeHash(v)
871 })
872}
873
874// UpdateCodeHash sets the "code_hash" field to the value that was provided on create.
875func (u *InviteCodeUpsertBulk) UpdateCodeHash() *InviteCodeUpsertBulk {

Callers

nothing calls this directly

Calls 1

UpdateMethod · 0.95

Tested by

no test coverage detected