team

package
v1.14.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 22, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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.

func New

func New(sess *session.Session, cfgs ...*controlmonkey.Config) Service

type ServiceOp

type ServiceOp struct {
	Client *client.Client
}

func (*ServiceOp) CreateTeam

func (s *ServiceOp) CreateTeam(ctx context.Context, input *Team) (*Team, error)

func (*ServiceOp) CreateTeamUser

func (s *ServiceOp) CreateTeamUser(ctx context.Context, input *TeamUser) (*commons.EmptyResponse, error)

func (*ServiceOp) DeleteTeam

func (s *ServiceOp) DeleteTeam(ctx context.Context, teamId string) (*commons.EmptyResponse, error)

func (*ServiceOp) DeleteTeamUser

func (s *ServiceOp) DeleteTeamUser(ctx context.Context, input *TeamUser) (*commons.EmptyResponse, error)

func (*ServiceOp) ListTeamUsers

func (s *ServiceOp) ListTeamUsers(ctx context.Context, teamId string) ([]*TeamUser, error)

func (*ServiceOp) ListTeams added in v1.10.0

func (s *ServiceOp) ListTeams(ctx context.Context, teamId *string, teamName *string) ([]*Team, error)

func (*ServiceOp) ReadTeam

func (s *ServiceOp) ReadTeam(ctx context.Context, teamId string) (*Team, error)

func (*ServiceOp) UpdateTeam

func (s *ServiceOp) UpdateTeam(ctx context.Context, teamId string, input *Team) (*Team, error)

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 (o Team) MarshalJSON() ([]byte, error)

func (*Team) SetCustomIdpId

func (o *Team) SetCustomIdpId(v *string) *Team

func (*Team) SetName

func (o *Team) SetName(v *string) *Team

type TeamUser

type TeamUser struct {
	TeamId    *string `json:"teamId,omitempty"`
	UserEmail *string `json:"userEmail,omitempty"`
	// contains filtered or unexported fields
}

func (TeamUser) MarshalJSON

func (o TeamUser) MarshalJSON() ([]byte, error)

func (*TeamUser) SetTeamId

func (o *TeamUser) SetTeamId(v *string) *TeamUser

func (*TeamUser) SetUserEmail

func (o *TeamUser) SetUserEmail(v *string) *TeamUser

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL