Documentation ¶
Index ¶
- func TeamTypeChoices() []string
- type AccountInviteOut
- type AccountTeamGetOut
- type AccountTeamHandler
- func (h *AccountTeamHandler) AccountTeamDelete(ctx context.Context, accountId string, teamId string) error
- func (h *AccountTeamHandler) AccountTeamGet(ctx context.Context, accountId string, teamId string) (*AccountTeamGetOut, error)
- func (h *AccountTeamHandler) AccountTeamInvitesList(ctx context.Context, accountId string, teamId string) ([]AccountInviteOut, error)
- func (h *AccountTeamHandler) AccountTeamList(ctx context.Context, accountId string) ([]TeamOut, error)
- func (h *AccountTeamHandler) AccountTeamProjectAssociate(ctx context.Context, accountId string, teamId string, project string, ...) error
- func (h *AccountTeamHandler) AccountTeamProjectDisassociate(ctx context.Context, accountId string, teamId string, project string) error
- func (h *AccountTeamHandler) AccountTeamProjectList(ctx context.Context, accountId string, teamId string) ([]ProjectOut, error)
- func (h *AccountTeamHandler) AccountTeamUpdate(ctx context.Context, accountId string, teamId string, in *AccountTeamUpdateIn) (*AccountTeamUpdateOut, error)
- type AccountTeamProjectAssociateIn
- type AccountTeamUpdateIn
- type AccountTeamUpdateOut
- type Handler
- type ProjectOut
- type TeamOut
- type TeamType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TeamTypeChoices ¶
func TeamTypeChoices() []string
Types ¶
type AccountInviteOut ¶
type AccountInviteOut struct { AccountId string `json:"account_id"` // Account ID AccountName string `json:"account_name"` // Account name CreateTime time.Time `json:"create_time"` // Timestamp in ISO 8601 format, always in UTC InvitedByUserEmail string `json:"invited_by_user_email"` // User email address TeamId string `json:"team_id"` // Team ID TeamName string `json:"team_name"` // Team name UserEmail string `json:"user_email"` // User email address }
type AccountTeamGetOut ¶
type AccountTeamGetOut struct { AccountId *string `json:"account_id,omitempty"` // Account ID CreateTime *time.Time `json:"create_time,omitempty"` // Timestamp in ISO 8601 format, always in UTC TeamId string `json:"team_id"` // Team ID TeamName string `json:"team_name"` // Team name UpdateTime *time.Time `json:"update_time,omitempty"` // Timestamp in ISO 8601 format, always in UTC }
AccountTeamGetOut Account Team details
type AccountTeamHandler ¶
type AccountTeamHandler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(doer doer) AccountTeamHandler
func (*AccountTeamHandler) AccountTeamDelete ¶
func (*AccountTeamHandler) AccountTeamGet ¶
func (h *AccountTeamHandler) AccountTeamGet(ctx context.Context, accountId string, teamId string) (*AccountTeamGetOut, error)
func (*AccountTeamHandler) AccountTeamInvitesList ¶
func (h *AccountTeamHandler) AccountTeamInvitesList(ctx context.Context, accountId string, teamId string) ([]AccountInviteOut, error)
func (*AccountTeamHandler) AccountTeamList ¶
func (*AccountTeamHandler) AccountTeamProjectAssociate ¶
func (h *AccountTeamHandler) AccountTeamProjectAssociate(ctx context.Context, accountId string, teamId string, project string, in *AccountTeamProjectAssociateIn) error
func (*AccountTeamHandler) AccountTeamProjectDisassociate ¶
func (*AccountTeamHandler) AccountTeamProjectList ¶ added in v0.8.0
func (h *AccountTeamHandler) AccountTeamProjectList(ctx context.Context, accountId string, teamId string) ([]ProjectOut, error)
func (*AccountTeamHandler) AccountTeamUpdate ¶
func (h *AccountTeamHandler) AccountTeamUpdate(ctx context.Context, accountId string, teamId string, in *AccountTeamUpdateIn) (*AccountTeamUpdateOut, error)
type AccountTeamProjectAssociateIn ¶
type AccountTeamProjectAssociateIn struct {
TeamType TeamType `json:"team_type"` // Team type (permission level)
}
AccountTeamProjectAssociateIn AccountTeamProjectAssociateRequestBody
type AccountTeamUpdateIn ¶
type AccountTeamUpdateIn struct {
TeamName string `json:"team_name"` // Team name
}
AccountTeamUpdateIn AccountTeamUpdateRequestBody
type AccountTeamUpdateOut ¶
type AccountTeamUpdateOut struct { AccountId *string `json:"account_id,omitempty"` // Account ID CreateTime *time.Time `json:"create_time,omitempty"` // Timestamp in ISO 8601 format, always in UTC TeamId string `json:"team_id"` // Team ID TeamName string `json:"team_name"` // Team name UpdateTime *time.Time `json:"update_time,omitempty"` // Timestamp in ISO 8601 format, always in UTC }
AccountTeamUpdateOut Account Team details
type Handler ¶
type Handler interface { // AccountTeamDelete delete a team // DELETE /v1/account/{account_id}/team/{team_id} // https://api.aiven.io/doc/#tag/Account/operation/AccountTeamDelete AccountTeamDelete(ctx context.Context, accountId string, teamId string) error // AccountTeamGet get details for a single team // GET /v1/account/{account_id}/team/{team_id} // https://api.aiven.io/doc/#tag/Account/operation/AccountTeamGet AccountTeamGet(ctx context.Context, accountId string, teamId string) (*AccountTeamGetOut, error) // AccountTeamInvitesList list pending invites // GET /v1/account/{account_id}/team/{team_id}/invites // https://api.aiven.io/doc/#tag/Account/operation/AccountTeamInvitesList AccountTeamInvitesList(ctx context.Context, accountId string, teamId string) ([]AccountInviteOut, error) // AccountTeamList list teams belonging to an account // GET /v1/account/{account_id}/teams // https://api.aiven.io/doc/#tag/Account/operation/AccountTeamList AccountTeamList(ctx context.Context, accountId string) ([]TeamOut, error) // AccountTeamProjectAssociate associate team to a project // POST /v1/account/{account_id}/team/{team_id}/project/{project} // https://api.aiven.io/doc/#tag/Account/operation/AccountTeamProjectAssociate AccountTeamProjectAssociate(ctx context.Context, accountId string, teamId string, project string, in *AccountTeamProjectAssociateIn) error // AccountTeamProjectDisassociate disassociate team from a project // DELETE /v1/account/{account_id}/team/{team_id}/project/{project} // https://api.aiven.io/doc/#tag/Account/operation/AccountTeamProjectDisassociate AccountTeamProjectDisassociate(ctx context.Context, accountId string, teamId string, project string) error // AccountTeamProjectList list projects associated to a team // GET /v1/account/{account_id}/team/{team_id}/projects // https://api.aiven.io/doc/#tag/Account/operation/AccountTeamProjectList AccountTeamProjectList(ctx context.Context, accountId string, teamId string) ([]ProjectOut, error) // AccountTeamUpdate update team details // PUT /v1/account/{account_id}/team/{team_id} // https://api.aiven.io/doc/#tag/Account/operation/AccountTeamUpdate AccountTeamUpdate(ctx context.Context, accountId string, teamId string, in *AccountTeamUpdateIn) (*AccountTeamUpdateOut, error) }
type ProjectOut ¶ added in v0.8.0
type TeamOut ¶
type TeamOut struct { AccountId *string `json:"account_id,omitempty"` // Account ID CreateTime *time.Time `json:"create_time,omitempty"` // Timestamp in ISO 8601 format, always in UTC TeamId string `json:"team_id"` // Team ID TeamName string `json:"team_name"` // Team name UpdateTime *time.Time `json:"update_time,omitempty"` // Timestamp in ISO 8601 format, always in UTC }
Click to show internal directories.
Click to hide internal directories.