Documentation ¶
Overview ¶
Package v2beta is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package v2beta is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package v2beta is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package v2beta is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- func RegisterPoliciesHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterPoliciesHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PoliciesClient) error
- func RegisterPoliciesHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterPoliciesServer(s *grpc.Server, srv PoliciesServer)
- func RegisterTeamsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterTeamsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TeamsClient) error
- func RegisterTeamsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterTeamsServer(s *grpc.Server, srv TeamsServer)
- func RegisterTokensHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterTokensHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TokensClient) error
- func RegisterTokensHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterTokensServer(s *grpc.Server, srv TokensServer)
- func RegisterUsersHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterUsersHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UsersClient) error
- func RegisterUsersHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterUsersServer(s *grpc.Server, srv UsersServer)
- type PoliciesClient
- type PoliciesServer
- type PoliciesServerMock
- func (m *PoliciesServerMock) AddPolicyMembers(ctx context.Context, req *request.AddPolicyMembersReq) (*response.AddPolicyMembersResp, error)
- func (m *PoliciesServerMock) CreatePolicy(ctx context.Context, req *request.CreatePolicyReq) (*response.CreatePolicyResp, error)
- func (m *PoliciesServerMock) CreateProject(ctx context.Context, req *request.CreateProjectReq) (*response.CreateProjectResp, error)
- func (m *PoliciesServerMock) CreateRole(ctx context.Context, req *request.CreateRoleReq) (*response.CreateRoleResp, error)
- func (m *PoliciesServerMock) DeletePolicy(ctx context.Context, req *request.DeletePolicyReq) (*response.DeletePolicyResp, error)
- func (m *PoliciesServerMock) DeleteProject(ctx context.Context, req *request.DeleteProjectReq) (*response.DeleteProjectResp, error)
- func (m *PoliciesServerMock) DeleteRole(ctx context.Context, req *request.DeleteRoleReq) (*response.DeleteRoleResp, error)
- func (m *PoliciesServerMock) GetPolicy(ctx context.Context, req *request.GetPolicyReq) (*response.GetPolicyResp, error)
- func (m *PoliciesServerMock) GetPolicyVersion(ctx context.Context, req *request.GetPolicyVersionReq) (*response.GetPolicyVersionResp, error)
- func (m *PoliciesServerMock) GetProject(ctx context.Context, req *request.GetProjectReq) (*response.GetProjectResp, error)
- func (m *PoliciesServerMock) GetRole(ctx context.Context, req *request.GetRoleReq) (*response.GetRoleResp, error)
- func (m *PoliciesServerMock) ListPolicies(ctx context.Context, req *request.ListPoliciesReq) (*response.ListPoliciesResp, error)
- func (m *PoliciesServerMock) ListPolicyMembers(ctx context.Context, req *request.ListPolicyMembersReq) (*response.ListPolicyMembersResp, error)
- func (m *PoliciesServerMock) ListProjects(ctx context.Context, req *request.ListProjectsReq) (*response.ListProjectsResp, error)
- func (m *PoliciesServerMock) ListRoles(ctx context.Context, req *request.ListRolesReq) (*response.ListRolesResp, error)
- func (m *PoliciesServerMock) RemovePolicyMembers(ctx context.Context, req *request.RemovePolicyMembersReq) (*response.RemovePolicyMembersResp, error)
- func (m *PoliciesServerMock) ReplacePolicyMembers(ctx context.Context, req *request.ReplacePolicyMembersReq) (*response.ReplacePolicyMembersResp, error)
- func (m *PoliciesServerMock) Reset()
- func (m *PoliciesServerMock) ResetToV1(ctx context.Context, req *request.ResetToV1Req) (*response.ResetToV1Resp, error)
- func (m *PoliciesServerMock) UpdatePolicy(ctx context.Context, req *request.UpdatePolicyReq) (*response.UpdatePolicyResp, error)
- func (m *PoliciesServerMock) UpdateProject(ctx context.Context, req *request.UpdateProjectReq) (*response.UpdateProjectResp, error)
- func (m *PoliciesServerMock) UpdateRole(ctx context.Context, req *request.UpdateRoleReq) (*response.UpdateRoleResp, error)
- func (m *PoliciesServerMock) UpgradeToV2(ctx context.Context, req *request.UpgradeToV2Req) (*response.UpgradeToV2Resp, error)
- type TeamsClient
- type TeamsServer
- type TeamsServerMock
- func (m *TeamsServerMock) AddTeamMembers(ctx context.Context, req *request.AddTeamMembersReq) (*response.AddTeamMembersResp, error)
- func (m *TeamsServerMock) ApplyV2DataMigrations(ctx context.Context, req *request.ApplyV2DataMigrationsReq) (*response.ApplyV2DataMigrationsResp, error)
- func (m *TeamsServerMock) CreateTeam(ctx context.Context, req *request.CreateTeamReq) (*response.CreateTeamResp, error)
- func (m *TeamsServerMock) DeleteTeam(ctx context.Context, req *request.DeleteTeamReq) (*response.DeleteTeamResp, error)
- func (m *TeamsServerMock) GetTeam(ctx context.Context, req *request.GetTeamReq) (*response.GetTeamResp, error)
- func (m *TeamsServerMock) GetTeamMembership(ctx context.Context, req *request.GetTeamMembershipReq) (*response.GetTeamMembershipResp, error)
- func (m *TeamsServerMock) GetTeams(ctx context.Context, req *request.GetTeamsReq) (*response.GetTeamsResp, error)
- func (m *TeamsServerMock) GetTeamsForMember(ctx context.Context, req *request.GetTeamsForMemberReq) (*response.GetTeamsForMemberResp, error)
- func (m *TeamsServerMock) RemoveTeamMembers(ctx context.Context, req *request.RemoveTeamMembersReq) (*response.RemoveTeamMembersResp, error)
- func (m *TeamsServerMock) Reset()
- func (m *TeamsServerMock) UpdateTeam(ctx context.Context, req *request.UpdateTeamReq) (*response.UpdateTeamResp, error)
- type TokensClient
- type TokensServer
- type TokensServerMock
- func (m *TokensServerMock) CreateToken(ctx context.Context, req *request.CreateTokenReq) (*response.CreateTokenResp, error)
- func (m *TokensServerMock) DeleteToken(ctx context.Context, req *request.DeleteTokenReq) (*response.DeleteTokenResp, error)
- func (m *TokensServerMock) GetToken(ctx context.Context, req *request.GetTokenReq) (*response.GetTokenResp, error)
- func (m *TokensServerMock) ListTokens(ctx context.Context, req *request.ListTokensReq) (*response.ListTokensResp, error)
- func (m *TokensServerMock) Reset()
- func (m *TokensServerMock) UpdateToken(ctx context.Context, req *request.UpdateTokenReq) (*response.UpdateTokenResp, error)
- type UsersClient
- type UsersServer
- type UsersServerMock
- func (m *UsersServerMock) CreateUser(ctx context.Context, req *request.CreateUserReq) (*response.CreateUserResp, error)
- func (m *UsersServerMock) DeleteUser(ctx context.Context, req *request.DeleteUserReq) (*response.DeleteUserResp, error)
- func (m *UsersServerMock) GetUser(ctx context.Context, req *request.GetUserReq) (*response.GetUserResp, error)
- func (m *UsersServerMock) GetUsers(ctx context.Context, req *request.GetUsersReq) (*response.GetUsersResp, error)
- func (m *UsersServerMock) Reset()
- func (m *UsersServerMock) UpdateSelf(ctx context.Context, req *request.UpdateSelfReq) (*response.UpdateSelfResp, error)
- func (m *UsersServerMock) UpdateUser(ctx context.Context, req *request.UpdateUserReq) (*response.UpdateUserResp, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterPoliciesHandler ¶
func RegisterPoliciesHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterPoliciesHandler registers the http handlers for service Policies to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterPoliciesHandlerClient ¶
func RegisterPoliciesHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PoliciesClient) error
RegisterPoliciesHandlerClient registers the http handlers for service Policies to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "PoliciesClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "PoliciesClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "PoliciesClient" to call the correct interceptors.
func RegisterPoliciesHandlerFromEndpoint ¶
func RegisterPoliciesHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterPoliciesHandlerFromEndpoint is same as RegisterPoliciesHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterPoliciesServer ¶
func RegisterPoliciesServer(s *grpc.Server, srv PoliciesServer)
func RegisterTeamsHandler ¶
RegisterTeamsHandler registers the http handlers for service Teams to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterTeamsHandlerClient ¶
func RegisterTeamsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TeamsClient) error
RegisterTeamsHandlerClient registers the http handlers for service Teams to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "TeamsClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "TeamsClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "TeamsClient" to call the correct interceptors.
func RegisterTeamsHandlerFromEndpoint ¶
func RegisterTeamsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterTeamsHandlerFromEndpoint is same as RegisterTeamsHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterTeamsServer ¶
func RegisterTeamsServer(s *grpc.Server, srv TeamsServer)
func RegisterTokensHandler ¶
RegisterTokensHandler registers the http handlers for service Tokens to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterTokensHandlerClient ¶
func RegisterTokensHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TokensClient) error
RegisterTokensHandlerClient registers the http handlers for service Tokens to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "TokensClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "TokensClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "TokensClient" to call the correct interceptors.
func RegisterTokensHandlerFromEndpoint ¶
func RegisterTokensHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterTokensHandlerFromEndpoint is same as RegisterTokensHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterTokensServer ¶
func RegisterTokensServer(s *grpc.Server, srv TokensServer)
func RegisterUsersHandler ¶
RegisterUsersHandler registers the http handlers for service Users to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterUsersHandlerClient ¶
func RegisterUsersHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UsersClient) error
RegisterUsersHandlerClient registers the http handlers for service Users to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "UsersClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "UsersClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "UsersClient" to call the correct interceptors.
func RegisterUsersHandlerFromEndpoint ¶
func RegisterUsersHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterUsersHandlerFromEndpoint is same as RegisterUsersHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterUsersServer ¶
func RegisterUsersServer(s *grpc.Server, srv UsersServer)
Types ¶
type PoliciesClient ¶
type PoliciesClient interface { CreatePolicy(ctx context.Context, in *request.CreatePolicyReq, opts ...grpc.CallOption) (*response.CreatePolicyResp, error) GetPolicy(ctx context.Context, in *request.GetPolicyReq, opts ...grpc.CallOption) (*response.GetPolicyResp, error) ListPolicies(ctx context.Context, in *request.ListPoliciesReq, opts ...grpc.CallOption) (*response.ListPoliciesResp, error) DeletePolicy(ctx context.Context, in *request.DeletePolicyReq, opts ...grpc.CallOption) (*response.DeletePolicyResp, error) UpdatePolicy(ctx context.Context, in *request.UpdatePolicyReq, opts ...grpc.CallOption) (*response.UpdatePolicyResp, error) GetPolicyVersion(ctx context.Context, in *request.GetPolicyVersionReq, opts ...grpc.CallOption) (*response.GetPolicyVersionResp, error) ListPolicyMembers(ctx context.Context, in *request.ListPolicyMembersReq, opts ...grpc.CallOption) (*response.ListPolicyMembersResp, error) ReplacePolicyMembers(ctx context.Context, in *request.ReplacePolicyMembersReq, opts ...grpc.CallOption) (*response.ReplacePolicyMembersResp, error) RemovePolicyMembers(ctx context.Context, in *request.RemovePolicyMembersReq, opts ...grpc.CallOption) (*response.RemovePolicyMembersResp, error) AddPolicyMembers(ctx context.Context, in *request.AddPolicyMembersReq, opts ...grpc.CallOption) (*response.AddPolicyMembersResp, error) CreateRole(ctx context.Context, in *request.CreateRoleReq, opts ...grpc.CallOption) (*response.CreateRoleResp, error) ListRoles(ctx context.Context, in *request.ListRolesReq, opts ...grpc.CallOption) (*response.ListRolesResp, error) GetRole(ctx context.Context, in *request.GetRoleReq, opts ...grpc.CallOption) (*response.GetRoleResp, error) DeleteRole(ctx context.Context, in *request.DeleteRoleReq, opts ...grpc.CallOption) (*response.DeleteRoleResp, error) UpdateRole(ctx context.Context, in *request.UpdateRoleReq, opts ...grpc.CallOption) (*response.UpdateRoleResp, error) CreateProject(ctx context.Context, in *request.CreateProjectReq, opts ...grpc.CallOption) (*response.CreateProjectResp, error) UpdateProject(ctx context.Context, in *request.UpdateProjectReq, opts ...grpc.CallOption) (*response.UpdateProjectResp, error) GetProject(ctx context.Context, in *request.GetProjectReq, opts ...grpc.CallOption) (*response.GetProjectResp, error) ListProjects(ctx context.Context, in *request.ListProjectsReq, opts ...grpc.CallOption) (*response.ListProjectsResp, error) DeleteProject(ctx context.Context, in *request.DeleteProjectReq, opts ...grpc.CallOption) (*response.DeleteProjectResp, error) // Expose on GRPC API only so we don't expose this to the enduser. // Just want to be able to trigger this via automate-cli. UpgradeToV2(ctx context.Context, in *request.UpgradeToV2Req, opts ...grpc.CallOption) (*response.UpgradeToV2Resp, error) ResetToV1(ctx context.Context, in *request.ResetToV1Req, opts ...grpc.CallOption) (*response.ResetToV1Resp, error) }
PoliciesClient is the client API for Policies service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewPoliciesClient ¶
func NewPoliciesClient(cc *grpc.ClientConn) PoliciesClient
type PoliciesServer ¶
type PoliciesServer interface { CreatePolicy(context.Context, *request.CreatePolicyReq) (*response.CreatePolicyResp, error) GetPolicy(context.Context, *request.GetPolicyReq) (*response.GetPolicyResp, error) ListPolicies(context.Context, *request.ListPoliciesReq) (*response.ListPoliciesResp, error) DeletePolicy(context.Context, *request.DeletePolicyReq) (*response.DeletePolicyResp, error) UpdatePolicy(context.Context, *request.UpdatePolicyReq) (*response.UpdatePolicyResp, error) GetPolicyVersion(context.Context, *request.GetPolicyVersionReq) (*response.GetPolicyVersionResp, error) ListPolicyMembers(context.Context, *request.ListPolicyMembersReq) (*response.ListPolicyMembersResp, error) ReplacePolicyMembers(context.Context, *request.ReplacePolicyMembersReq) (*response.ReplacePolicyMembersResp, error) RemovePolicyMembers(context.Context, *request.RemovePolicyMembersReq) (*response.RemovePolicyMembersResp, error) AddPolicyMembers(context.Context, *request.AddPolicyMembersReq) (*response.AddPolicyMembersResp, error) CreateRole(context.Context, *request.CreateRoleReq) (*response.CreateRoleResp, error) ListRoles(context.Context, *request.ListRolesReq) (*response.ListRolesResp, error) GetRole(context.Context, *request.GetRoleReq) (*response.GetRoleResp, error) DeleteRole(context.Context, *request.DeleteRoleReq) (*response.DeleteRoleResp, error) UpdateRole(context.Context, *request.UpdateRoleReq) (*response.UpdateRoleResp, error) CreateProject(context.Context, *request.CreateProjectReq) (*response.CreateProjectResp, error) UpdateProject(context.Context, *request.UpdateProjectReq) (*response.UpdateProjectResp, error) GetProject(context.Context, *request.GetProjectReq) (*response.GetProjectResp, error) ListProjects(context.Context, *request.ListProjectsReq) (*response.ListProjectsResp, error) DeleteProject(context.Context, *request.DeleteProjectReq) (*response.DeleteProjectResp, error) // Expose on GRPC API only so we don't expose this to the enduser. // Just want to be able to trigger this via automate-cli. UpgradeToV2(context.Context, *request.UpgradeToV2Req) (*response.UpgradeToV2Resp, error) ResetToV1(context.Context, *request.ResetToV1Req) (*response.ResetToV1Resp, error) }
PoliciesServer is the server API for Policies service.
type PoliciesServerMock ¶
type PoliciesServerMock struct { CreatePolicyFunc func(context.Context, *request.CreatePolicyReq) (*response.CreatePolicyResp, error) GetPolicyFunc func(context.Context, *request.GetPolicyReq) (*response.GetPolicyResp, error) ListPoliciesFunc func(context.Context, *request.ListPoliciesReq) (*response.ListPoliciesResp, error) DeletePolicyFunc func(context.Context, *request.DeletePolicyReq) (*response.DeletePolicyResp, error) UpdatePolicyFunc func(context.Context, *request.UpdatePolicyReq) (*response.UpdatePolicyResp, error) GetPolicyVersionFunc func(context.Context, *request.GetPolicyVersionReq) (*response.GetPolicyVersionResp, error) ListPolicyMembersFunc func(context.Context, *request.ListPolicyMembersReq) (*response.ListPolicyMembersResp, error) ReplacePolicyMembersFunc func(context.Context, *request.ReplacePolicyMembersReq) (*response.ReplacePolicyMembersResp, error) RemovePolicyMembersFunc func(context.Context, *request.RemovePolicyMembersReq) (*response.RemovePolicyMembersResp, error) AddPolicyMembersFunc func(context.Context, *request.AddPolicyMembersReq) (*response.AddPolicyMembersResp, error) CreateRoleFunc func(context.Context, *request.CreateRoleReq) (*response.CreateRoleResp, error) ListRolesFunc func(context.Context, *request.ListRolesReq) (*response.ListRolesResp, error) GetRoleFunc func(context.Context, *request.GetRoleReq) (*response.GetRoleResp, error) DeleteRoleFunc func(context.Context, *request.DeleteRoleReq) (*response.DeleteRoleResp, error) UpdateRoleFunc func(context.Context, *request.UpdateRoleReq) (*response.UpdateRoleResp, error) CreateProjectFunc func(context.Context, *request.CreateProjectReq) (*response.CreateProjectResp, error) UpdateProjectFunc func(context.Context, *request.UpdateProjectReq) (*response.UpdateProjectResp, error) GetProjectFunc func(context.Context, *request.GetProjectReq) (*response.GetProjectResp, error) ListProjectsFunc func(context.Context, *request.ListProjectsReq) (*response.ListProjectsResp, error) DeleteProjectFunc func(context.Context, *request.DeleteProjectReq) (*response.DeleteProjectResp, error) UpgradeToV2Func func(context.Context, *request.UpgradeToV2Req) (*response.UpgradeToV2Resp, error) ResetToV1Func func(context.Context, *request.ResetToV1Req) (*response.ResetToV1Resp, error) // contains filtered or unexported fields }
PoliciesServerMock is the mock-what-you-want struct that stubs all not-overridden methods with "not implemented" returns
func NewPoliciesServerMock ¶
func NewPoliciesServerMock() *PoliciesServerMock
NewPoliciesServerMock gives you a fresh instance of PoliciesServerMock.
func NewPoliciesServerMockWithoutValidation ¶
func NewPoliciesServerMockWithoutValidation() *PoliciesServerMock
NewPoliciesServerMockWithoutValidation gives you a fresh instance of PoliciesServerMock which does not attempt to validate requests before passing them to their respective '*Func'.
func (*PoliciesServerMock) AddPolicyMembers ¶
func (m *PoliciesServerMock) AddPolicyMembers(ctx context.Context, req *request.AddPolicyMembersReq) (*response.AddPolicyMembersResp, error)
func (*PoliciesServerMock) CreatePolicy ¶
func (m *PoliciesServerMock) CreatePolicy(ctx context.Context, req *request.CreatePolicyReq) (*response.CreatePolicyResp, error)
func (*PoliciesServerMock) CreateProject ¶
func (m *PoliciesServerMock) CreateProject(ctx context.Context, req *request.CreateProjectReq) (*response.CreateProjectResp, error)
func (*PoliciesServerMock) CreateRole ¶
func (m *PoliciesServerMock) CreateRole(ctx context.Context, req *request.CreateRoleReq) (*response.CreateRoleResp, error)
func (*PoliciesServerMock) DeletePolicy ¶
func (m *PoliciesServerMock) DeletePolicy(ctx context.Context, req *request.DeletePolicyReq) (*response.DeletePolicyResp, error)
func (*PoliciesServerMock) DeleteProject ¶
func (m *PoliciesServerMock) DeleteProject(ctx context.Context, req *request.DeleteProjectReq) (*response.DeleteProjectResp, error)
func (*PoliciesServerMock) DeleteRole ¶
func (m *PoliciesServerMock) DeleteRole(ctx context.Context, req *request.DeleteRoleReq) (*response.DeleteRoleResp, error)
func (*PoliciesServerMock) GetPolicy ¶
func (m *PoliciesServerMock) GetPolicy(ctx context.Context, req *request.GetPolicyReq) (*response.GetPolicyResp, error)
func (*PoliciesServerMock) GetPolicyVersion ¶
func (m *PoliciesServerMock) GetPolicyVersion(ctx context.Context, req *request.GetPolicyVersionReq) (*response.GetPolicyVersionResp, error)
func (*PoliciesServerMock) GetProject ¶
func (m *PoliciesServerMock) GetProject(ctx context.Context, req *request.GetProjectReq) (*response.GetProjectResp, error)
func (*PoliciesServerMock) GetRole ¶
func (m *PoliciesServerMock) GetRole(ctx context.Context, req *request.GetRoleReq) (*response.GetRoleResp, error)
func (*PoliciesServerMock) ListPolicies ¶
func (m *PoliciesServerMock) ListPolicies(ctx context.Context, req *request.ListPoliciesReq) (*response.ListPoliciesResp, error)
func (*PoliciesServerMock) ListPolicyMembers ¶
func (m *PoliciesServerMock) ListPolicyMembers(ctx context.Context, req *request.ListPolicyMembersReq) (*response.ListPolicyMembersResp, error)
func (*PoliciesServerMock) ListProjects ¶
func (m *PoliciesServerMock) ListProjects(ctx context.Context, req *request.ListProjectsReq) (*response.ListProjectsResp, error)
func (*PoliciesServerMock) ListRoles ¶
func (m *PoliciesServerMock) ListRoles(ctx context.Context, req *request.ListRolesReq) (*response.ListRolesResp, error)
func (*PoliciesServerMock) RemovePolicyMembers ¶
func (m *PoliciesServerMock) RemovePolicyMembers(ctx context.Context, req *request.RemovePolicyMembersReq) (*response.RemovePolicyMembersResp, error)
func (*PoliciesServerMock) ReplacePolicyMembers ¶
func (m *PoliciesServerMock) ReplacePolicyMembers(ctx context.Context, req *request.ReplacePolicyMembersReq) (*response.ReplacePolicyMembersResp, error)
func (*PoliciesServerMock) Reset ¶
func (m *PoliciesServerMock) Reset()
Reset resets all overridden functions
func (*PoliciesServerMock) ResetToV1 ¶
func (m *PoliciesServerMock) ResetToV1(ctx context.Context, req *request.ResetToV1Req) (*response.ResetToV1Resp, error)
func (*PoliciesServerMock) UpdatePolicy ¶
func (m *PoliciesServerMock) UpdatePolicy(ctx context.Context, req *request.UpdatePolicyReq) (*response.UpdatePolicyResp, error)
func (*PoliciesServerMock) UpdateProject ¶
func (m *PoliciesServerMock) UpdateProject(ctx context.Context, req *request.UpdateProjectReq) (*response.UpdateProjectResp, error)
func (*PoliciesServerMock) UpdateRole ¶
func (m *PoliciesServerMock) UpdateRole(ctx context.Context, req *request.UpdateRoleReq) (*response.UpdateRoleResp, error)
func (*PoliciesServerMock) UpgradeToV2 ¶
func (m *PoliciesServerMock) UpgradeToV2(ctx context.Context, req *request.UpgradeToV2Req) (*response.UpgradeToV2Resp, error)
type TeamsClient ¶
type TeamsClient interface { GetTeams(ctx context.Context, in *request.GetTeamsReq, opts ...grpc.CallOption) (*response.GetTeamsResp, error) GetTeam(ctx context.Context, in *request.GetTeamReq, opts ...grpc.CallOption) (*response.GetTeamResp, error) CreateTeam(ctx context.Context, in *request.CreateTeamReq, opts ...grpc.CallOption) (*response.CreateTeamResp, error) UpdateTeam(ctx context.Context, in *request.UpdateTeamReq, opts ...grpc.CallOption) (*response.UpdateTeamResp, error) DeleteTeam(ctx context.Context, in *request.DeleteTeamReq, opts ...grpc.CallOption) (*response.DeleteTeamResp, error) GetTeamMembership(ctx context.Context, in *request.GetTeamMembershipReq, opts ...grpc.CallOption) (*response.GetTeamMembershipResp, error) AddTeamMembers(ctx context.Context, in *request.AddTeamMembersReq, opts ...grpc.CallOption) (*response.AddTeamMembersResp, error) RemoveTeamMembers(ctx context.Context, in *request.RemoveTeamMembersReq, opts ...grpc.CallOption) (*response.RemoveTeamMembersResp, error) GetTeamsForMember(ctx context.Context, in *request.GetTeamsForMemberReq, opts ...grpc.CallOption) (*response.GetTeamsForMemberResp, error) // Expose on GRPC API only so we don't expose this to the enduser. // Just want to be able to trigger this via automate-cli. ApplyV2DataMigrations(ctx context.Context, in *request.ApplyV2DataMigrationsReq, opts ...grpc.CallOption) (*response.ApplyV2DataMigrationsResp, error) }
TeamsClient is the client API for Teams service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewTeamsClient ¶
func NewTeamsClient(cc *grpc.ClientConn) TeamsClient
type TeamsServer ¶
type TeamsServer interface { GetTeams(context.Context, *request.GetTeamsReq) (*response.GetTeamsResp, error) GetTeam(context.Context, *request.GetTeamReq) (*response.GetTeamResp, error) CreateTeam(context.Context, *request.CreateTeamReq) (*response.CreateTeamResp, error) UpdateTeam(context.Context, *request.UpdateTeamReq) (*response.UpdateTeamResp, error) DeleteTeam(context.Context, *request.DeleteTeamReq) (*response.DeleteTeamResp, error) GetTeamMembership(context.Context, *request.GetTeamMembershipReq) (*response.GetTeamMembershipResp, error) AddTeamMembers(context.Context, *request.AddTeamMembersReq) (*response.AddTeamMembersResp, error) RemoveTeamMembers(context.Context, *request.RemoveTeamMembersReq) (*response.RemoveTeamMembersResp, error) GetTeamsForMember(context.Context, *request.GetTeamsForMemberReq) (*response.GetTeamsForMemberResp, error) // Expose on GRPC API only so we don't expose this to the enduser. // Just want to be able to trigger this via automate-cli. ApplyV2DataMigrations(context.Context, *request.ApplyV2DataMigrationsReq) (*response.ApplyV2DataMigrationsResp, error) }
TeamsServer is the server API for Teams service.
type TeamsServerMock ¶
type TeamsServerMock struct { GetTeamsFunc func(context.Context, *request.GetTeamsReq) (*response.GetTeamsResp, error) GetTeamFunc func(context.Context, *request.GetTeamReq) (*response.GetTeamResp, error) CreateTeamFunc func(context.Context, *request.CreateTeamReq) (*response.CreateTeamResp, error) UpdateTeamFunc func(context.Context, *request.UpdateTeamReq) (*response.UpdateTeamResp, error) DeleteTeamFunc func(context.Context, *request.DeleteTeamReq) (*response.DeleteTeamResp, error) GetTeamMembershipFunc func(context.Context, *request.GetTeamMembershipReq) (*response.GetTeamMembershipResp, error) AddTeamMembersFunc func(context.Context, *request.AddTeamMembersReq) (*response.AddTeamMembersResp, error) RemoveTeamMembersFunc func(context.Context, *request.RemoveTeamMembersReq) (*response.RemoveTeamMembersResp, error) GetTeamsForMemberFunc func(context.Context, *request.GetTeamsForMemberReq) (*response.GetTeamsForMemberResp, error) ApplyV2DataMigrationsFunc func(context.Context, *request.ApplyV2DataMigrationsReq) (*response.ApplyV2DataMigrationsResp, error) // contains filtered or unexported fields }
TeamsServerMock is the mock-what-you-want struct that stubs all not-overridden methods with "not implemented" returns
func NewTeamsServerMock ¶
func NewTeamsServerMock() *TeamsServerMock
NewTeamsServerMock gives you a fresh instance of TeamsServerMock.
func NewTeamsServerMockWithoutValidation ¶
func NewTeamsServerMockWithoutValidation() *TeamsServerMock
NewTeamsServerMockWithoutValidation gives you a fresh instance of TeamsServerMock which does not attempt to validate requests before passing them to their respective '*Func'.
func (*TeamsServerMock) AddTeamMembers ¶
func (m *TeamsServerMock) AddTeamMembers(ctx context.Context, req *request.AddTeamMembersReq) (*response.AddTeamMembersResp, error)
func (*TeamsServerMock) ApplyV2DataMigrations ¶
func (m *TeamsServerMock) ApplyV2DataMigrations(ctx context.Context, req *request.ApplyV2DataMigrationsReq) (*response.ApplyV2DataMigrationsResp, error)
func (*TeamsServerMock) CreateTeam ¶
func (m *TeamsServerMock) CreateTeam(ctx context.Context, req *request.CreateTeamReq) (*response.CreateTeamResp, error)
func (*TeamsServerMock) DeleteTeam ¶
func (m *TeamsServerMock) DeleteTeam(ctx context.Context, req *request.DeleteTeamReq) (*response.DeleteTeamResp, error)
func (*TeamsServerMock) GetTeam ¶
func (m *TeamsServerMock) GetTeam(ctx context.Context, req *request.GetTeamReq) (*response.GetTeamResp, error)
func (*TeamsServerMock) GetTeamMembership ¶
func (m *TeamsServerMock) GetTeamMembership(ctx context.Context, req *request.GetTeamMembershipReq) (*response.GetTeamMembershipResp, error)
func (*TeamsServerMock) GetTeams ¶
func (m *TeamsServerMock) GetTeams(ctx context.Context, req *request.GetTeamsReq) (*response.GetTeamsResp, error)
func (*TeamsServerMock) GetTeamsForMember ¶
func (m *TeamsServerMock) GetTeamsForMember(ctx context.Context, req *request.GetTeamsForMemberReq) (*response.GetTeamsForMemberResp, error)
func (*TeamsServerMock) RemoveTeamMembers ¶
func (m *TeamsServerMock) RemoveTeamMembers(ctx context.Context, req *request.RemoveTeamMembersReq) (*response.RemoveTeamMembersResp, error)
func (*TeamsServerMock) Reset ¶
func (m *TeamsServerMock) Reset()
Reset resets all overridden functions
func (*TeamsServerMock) UpdateTeam ¶
func (m *TeamsServerMock) UpdateTeam(ctx context.Context, req *request.UpdateTeamReq) (*response.UpdateTeamResp, error)
type TokensClient ¶
type TokensClient interface { CreateToken(ctx context.Context, in *request.CreateTokenReq, opts ...grpc.CallOption) (*response.CreateTokenResp, error) GetToken(ctx context.Context, in *request.GetTokenReq, opts ...grpc.CallOption) (*response.GetTokenResp, error) UpdateToken(ctx context.Context, in *request.UpdateTokenReq, opts ...grpc.CallOption) (*response.UpdateTokenResp, error) DeleteToken(ctx context.Context, in *request.DeleteTokenReq, opts ...grpc.CallOption) (*response.DeleteTokenResp, error) ListTokens(ctx context.Context, in *request.ListTokensReq, opts ...grpc.CallOption) (*response.ListTokensResp, error) }
TokensClient is the client API for Tokens service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewTokensClient ¶
func NewTokensClient(cc *grpc.ClientConn) TokensClient
type TokensServer ¶
type TokensServer interface { CreateToken(context.Context, *request.CreateTokenReq) (*response.CreateTokenResp, error) GetToken(context.Context, *request.GetTokenReq) (*response.GetTokenResp, error) UpdateToken(context.Context, *request.UpdateTokenReq) (*response.UpdateTokenResp, error) DeleteToken(context.Context, *request.DeleteTokenReq) (*response.DeleteTokenResp, error) ListTokens(context.Context, *request.ListTokensReq) (*response.ListTokensResp, error) }
TokensServer is the server API for Tokens service.
type TokensServerMock ¶
type TokensServerMock struct { CreateTokenFunc func(context.Context, *request.CreateTokenReq) (*response.CreateTokenResp, error) GetTokenFunc func(context.Context, *request.GetTokenReq) (*response.GetTokenResp, error) UpdateTokenFunc func(context.Context, *request.UpdateTokenReq) (*response.UpdateTokenResp, error) DeleteTokenFunc func(context.Context, *request.DeleteTokenReq) (*response.DeleteTokenResp, error) ListTokensFunc func(context.Context, *request.ListTokensReq) (*response.ListTokensResp, error) // contains filtered or unexported fields }
TokensServerMock is the mock-what-you-want struct that stubs all not-overridden methods with "not implemented" returns
func NewTokensServerMock ¶
func NewTokensServerMock() *TokensServerMock
NewTokensServerMock gives you a fresh instance of TokensServerMock.
func NewTokensServerMockWithoutValidation ¶
func NewTokensServerMockWithoutValidation() *TokensServerMock
NewTokensServerMockWithoutValidation gives you a fresh instance of TokensServerMock which does not attempt to validate requests before passing them to their respective '*Func'.
func (*TokensServerMock) CreateToken ¶
func (m *TokensServerMock) CreateToken(ctx context.Context, req *request.CreateTokenReq) (*response.CreateTokenResp, error)
func (*TokensServerMock) DeleteToken ¶
func (m *TokensServerMock) DeleteToken(ctx context.Context, req *request.DeleteTokenReq) (*response.DeleteTokenResp, error)
func (*TokensServerMock) GetToken ¶
func (m *TokensServerMock) GetToken(ctx context.Context, req *request.GetTokenReq) (*response.GetTokenResp, error)
func (*TokensServerMock) ListTokens ¶
func (m *TokensServerMock) ListTokens(ctx context.Context, req *request.ListTokensReq) (*response.ListTokensResp, error)
func (*TokensServerMock) Reset ¶
func (m *TokensServerMock) Reset()
Reset resets all overridden functions
func (*TokensServerMock) UpdateToken ¶
func (m *TokensServerMock) UpdateToken(ctx context.Context, req *request.UpdateTokenReq) (*response.UpdateTokenResp, error)
type UsersClient ¶
type UsersClient interface { CreateUser(ctx context.Context, in *request.CreateUserReq, opts ...grpc.CallOption) (*response.CreateUserResp, error) GetUsers(ctx context.Context, in *request.GetUsersReq, opts ...grpc.CallOption) (*response.GetUsersResp, error) GetUser(ctx context.Context, in *request.GetUserReq, opts ...grpc.CallOption) (*response.GetUserResp, error) DeleteUser(ctx context.Context, in *request.DeleteUserReq, opts ...grpc.CallOption) (*response.DeleteUserResp, error) UpdateUser(ctx context.Context, in *request.UpdateUserReq, opts ...grpc.CallOption) (*response.UpdateUserResp, error) UpdateSelf(ctx context.Context, in *request.UpdateSelfReq, opts ...grpc.CallOption) (*response.UpdateSelfResp, error) }
UsersClient is the client API for Users service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewUsersClient ¶
func NewUsersClient(cc *grpc.ClientConn) UsersClient
type UsersServer ¶
type UsersServer interface { CreateUser(context.Context, *request.CreateUserReq) (*response.CreateUserResp, error) GetUsers(context.Context, *request.GetUsersReq) (*response.GetUsersResp, error) GetUser(context.Context, *request.GetUserReq) (*response.GetUserResp, error) DeleteUser(context.Context, *request.DeleteUserReq) (*response.DeleteUserResp, error) UpdateUser(context.Context, *request.UpdateUserReq) (*response.UpdateUserResp, error) UpdateSelf(context.Context, *request.UpdateSelfReq) (*response.UpdateSelfResp, error) }
UsersServer is the server API for Users service.
type UsersServerMock ¶
type UsersServerMock struct { CreateUserFunc func(context.Context, *request.CreateUserReq) (*response.CreateUserResp, error) GetUsersFunc func(context.Context, *request.GetUsersReq) (*response.GetUsersResp, error) GetUserFunc func(context.Context, *request.GetUserReq) (*response.GetUserResp, error) DeleteUserFunc func(context.Context, *request.DeleteUserReq) (*response.DeleteUserResp, error) UpdateUserFunc func(context.Context, *request.UpdateUserReq) (*response.UpdateUserResp, error) UpdateSelfFunc func(context.Context, *request.UpdateSelfReq) (*response.UpdateSelfResp, error) // contains filtered or unexported fields }
UsersServerMock is the mock-what-you-want struct that stubs all not-overridden methods with "not implemented" returns
func NewUsersServerMock ¶
func NewUsersServerMock() *UsersServerMock
NewUsersServerMock gives you a fresh instance of UsersServerMock.
func NewUsersServerMockWithoutValidation ¶
func NewUsersServerMockWithoutValidation() *UsersServerMock
NewUsersServerMockWithoutValidation gives you a fresh instance of UsersServerMock which does not attempt to validate requests before passing them to their respective '*Func'.
func (*UsersServerMock) CreateUser ¶
func (m *UsersServerMock) CreateUser(ctx context.Context, req *request.CreateUserReq) (*response.CreateUserResp, error)
func (*UsersServerMock) DeleteUser ¶
func (m *UsersServerMock) DeleteUser(ctx context.Context, req *request.DeleteUserReq) (*response.DeleteUserResp, error)
func (*UsersServerMock) GetUser ¶
func (m *UsersServerMock) GetUser(ctx context.Context, req *request.GetUserReq) (*response.GetUserResp, error)
func (*UsersServerMock) GetUsers ¶
func (m *UsersServerMock) GetUsers(ctx context.Context, req *request.GetUsersReq) (*response.GetUsersResp, error)
func (*UsersServerMock) Reset ¶
func (m *UsersServerMock) Reset()
Reset resets all overridden functions
func (*UsersServerMock) UpdateSelf ¶
func (m *UsersServerMock) UpdateSelf(ctx context.Context, req *request.UpdateSelfReq) (*response.UpdateSelfResp, error)
func (*UsersServerMock) UpdateUser ¶
func (m *UsersServerMock) UpdateUser(ctx context.Context, req *request.UpdateUserReq) (*response.UpdateUserResp, error)
Source Files ¶
- policy.pb.go
- policy.pb.gw.go
- policy.pb.mock.go
- policy.pb.policy-v1.go
- policy.pb.policy-v2.go
- teams.pb.go
- teams.pb.gw.go
- teams.pb.mock.go
- teams.pb.policy-v1.go
- teams.pb.policy-v2.go
- tokens.pb.go
- tokens.pb.gw.go
- tokens.pb.mock.go
- tokens.pb.policy-v1.go
- tokens.pb.policy-v2.go
- users.pb.go
- users.pb.gw.go
- users.pb.mock.go
- users.pb.policy-v1.go
- users.pb.policy-v2.go