Documentation ¶
Index ¶
- type ContextAccountAuth
- type CurrentAccount
- func (v *CurrentAccount) ValidateProjectPerm(ctx context.Context, prjID types.SFID) (*models.Project, error)
- func (v *CurrentAccount) ValidateProjectPermByPrjName(ctx context.Context, projectName string) (*models.Project, error)
- func (v *CurrentAccount) WithAppletContext(ctx context.Context, appletID types.SFID) (context.Context, error)
- func (v *CurrentAccount) WithInstanceContext(ctx context.Context, instanceID types.SFID) (context.Context, error)
- func (v *CurrentAccount) WithProjectContextByID(ctx context.Context, prjID types.SFID) (context.Context, error)
- func (v *CurrentAccount) WithProjectContextByName(ctx context.Context, prjName string) (context.Context, error)
- func (v *CurrentAccount) WithResourceContext(ctx context.Context, resID types.SFID) (context.Context, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContextAccountAuth ¶
func (*ContextAccountAuth) ContextKey ¶
func (r *ContextAccountAuth) ContextKey() string
type CurrentAccount ¶
func CurrentAccountFromContext ¶
func CurrentAccountFromContext(ctx context.Context) *CurrentAccount
func (*CurrentAccount) ValidateProjectPerm ¶
func (v *CurrentAccount) ValidateProjectPerm(ctx context.Context, prjID types.SFID) (*models.Project, error)
ValidateProjectPerm Deprecated: Use WithProjectContextByID instead
func (*CurrentAccount) ValidateProjectPermByPrjName ¶
func (v *CurrentAccount) ValidateProjectPermByPrjName(ctx context.Context, projectName string) (*models.Project, error)
ValidateProjectPermByPrjName Deprecated: Use WithProjectContextByName instead
func (*CurrentAccount) WithAppletContext ¶
func (*CurrentAccount) WithInstanceContext ¶
func (*CurrentAccount) WithProjectContextByID ¶
func (*CurrentAccount) WithProjectContextByName ¶
func (*CurrentAccount) WithResourceContext ¶ added in v1.0.0
Click to show internal directories.
Click to hide internal directories.