Documentation
¶
Index ¶
- type Service
- type ServiceOp
- func (s *ServiceOp) CreateTeam(ctx context.Context, input *Team) (*Team, error)
- func (s *ServiceOp) CreateTeamUser(ctx context.Context, input *TeamUser) (*commons.EmptyResponse, error)
- func (s *ServiceOp) DeleteTeam(ctx context.Context, teamId string) (*commons.EmptyResponse, error)
- func (s *ServiceOp) DeleteTeamUser(ctx context.Context, input *TeamUser) (*commons.EmptyResponse, error)
- func (s *ServiceOp) ListTeamUsers(ctx context.Context, teamId string) ([]*TeamUser, error)
- func (s *ServiceOp) ListTeams(ctx context.Context, teamId *string, teamName *string) ([]*Team, error)
- func (s *ServiceOp) ReadTeam(ctx context.Context, teamId string) (*Team, error)
- func (s *ServiceOp) UpdateTeam(ctx context.Context, teamId string, input *Team) (*Team, error)
- type Team
- type TeamUser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface {
CreateTeam(context.Context, *Team) (*Team, error)
ListTeams(context.Context, *string, *string) ([]*Team, error)
ReadTeam(context.Context, string) (*Team, error)
UpdateTeam(context.Context, string, *Team) (*Team, error)
DeleteTeam(context.Context, string) (*commons.EmptyResponse, error)
ListTeamUsers(context.Context, string) ([]*TeamUser, error)
CreateTeamUser(context.Context, *TeamUser) (*commons.EmptyResponse, error)
DeleteTeamUser(context.Context, *TeamUser) (*commons.EmptyResponse, error)
}
Service provides the API operation methods for making requests to endpoints of the ControlMonkey API. See this package's package overview docs for details on the service.
type ServiceOp ¶
func (*ServiceOp) CreateTeam ¶
func (*ServiceOp) CreateTeamUser ¶
func (*ServiceOp) DeleteTeam ¶
func (*ServiceOp) DeleteTeamUser ¶
func (*ServiceOp) ListTeamUsers ¶
type Team ¶
type Team struct {
ID *string `json:"id,omitempty"` // read-only
Name *string `json:"name,omitempty"`
CustomIdpId *string `json:"customIdpId,omitempty"`
// contains filtered or unexported fields
}
func (Team) MarshalJSON ¶
func (*Team) SetCustomIdpId ¶
type TeamUser ¶
type TeamUser struct {
TeamId *string `json:"teamId,omitempty"`
UserEmail *string `json:"userEmail,omitempty"`
// contains filtered or unexported fields
}
func (TeamUser) MarshalJSON ¶
func (*TeamUser) SetUserEmail ¶
Click to show internal directories.
Click to hide internal directories.