Documentation ¶
Index ¶
- Constants
- func NewIAMMemberHeaderResolver() iammember.Resolver
- func SQLSchema() string
- func WithOutgoingMembers(ctx context.Context, members ...string) context.Context
- type Authorization
- func (a *Authorization) BatchGetShipments(ctx context.Context, request *iamexamplev1.BatchGetShipmentsRequest) (*iamexamplev1.BatchGetShipmentsResponse, error)
- func (a *Authorization) BatchGetSites(ctx context.Context, request *iamexamplev1.BatchGetSitesRequest) (*iamexamplev1.BatchGetSitesResponse, error)
- func (a *Authorization) CreateShipment(ctx context.Context, request *iamexamplev1.CreateShipmentRequest) (*iamexamplev1.Shipment, error)
- func (a *Authorization) CreateShipper(ctx context.Context, request *iamexamplev1.CreateShipperRequest) (*iamexamplev1.Shipper, error)
- func (a *Authorization) CreateSite(ctx context.Context, request *iamexamplev1.CreateSiteRequest) (*iamexamplev1.Site, error)
- func (a *Authorization) DeleteShipment(ctx context.Context, request *iamexamplev1.DeleteShipmentRequest) (*iamexamplev1.Shipment, error)
- func (a *Authorization) DeleteShipper(ctx context.Context, request *iamexamplev1.DeleteShipperRequest) (*iamexamplev1.Shipper, error)
- func (a *Authorization) DeleteSite(ctx context.Context, request *iamexamplev1.DeleteSiteRequest) (*iamexamplev1.Site, error)
- func (a *Authorization) GetIamPolicy(ctx context.Context, request *iam.GetIamPolicyRequest) (*iam.Policy, error)
- func (a *Authorization) GetShipment(ctx context.Context, request *iamexamplev1.GetShipmentRequest) (*iamexamplev1.Shipment, error)
- func (a *Authorization) GetShipper(ctx context.Context, request *iamexamplev1.GetShipperRequest) (*iamexamplev1.Shipper, error)
- func (a *Authorization) GetSite(ctx context.Context, request *iamexamplev1.GetSiteRequest) (*iamexamplev1.Site, error)
- func (a *Authorization) ListShipments(ctx context.Context, request *iamexamplev1.ListShipmentsRequest) (*iamexamplev1.ListShipmentsResponse, error)
- func (a *Authorization) ListShippers(ctx context.Context, request *iamexamplev1.ListShippersRequest) (*iamexamplev1.ListShippersResponse, error)
- func (a *Authorization) ListSites(ctx context.Context, request *iamexamplev1.ListSitesRequest) (*iamexamplev1.ListSitesResponse, error)
- func (a *Authorization) SearchSites(ctx context.Context, request *iamexamplev1.SearchSitesRequest) (*iamexamplev1.SearchSitesResponse, error)
- func (a *Authorization) SetIamPolicy(ctx context.Context, request *iam.SetIamPolicyRequest) (*iam.Policy, error)
- func (a *Authorization) TestIamPermissions(ctx context.Context, request *iam.TestIamPermissionsRequest) (*iam.TestIamPermissionsResponse, error)
- func (a *Authorization) UpdateShipment(ctx context.Context, request *iamexamplev1.UpdateShipmentRequest) (*iamexamplev1.Shipment, error)
- func (a *Authorization) UpdateShipper(ctx context.Context, request *iamexamplev1.UpdateShipperRequest) (*iamexamplev1.Shipper, error)
- func (a *Authorization) UpdateSite(ctx context.Context, request *iamexamplev1.UpdateSiteRequest) (*iamexamplev1.Site, error)
- type Config
- type Server
- func (s *Server) BatchGetShipments(ctx context.Context, request *iamexamplev1.BatchGetShipmentsRequest) (*iamexamplev1.BatchGetShipmentsResponse, error)
- func (s *Server) BatchGetSites(ctx context.Context, request *iamexamplev1.BatchGetSitesRequest) (*iamexamplev1.BatchGetSitesResponse, error)
- func (s *Server) CreateShipment(ctx context.Context, request *iamexamplev1.CreateShipmentRequest) (*iamexamplev1.Shipment, error)
- func (s *Server) CreateShipper(ctx context.Context, request *iamexamplev1.CreateShipperRequest) (*iamexamplev1.Shipper, error)
- func (s *Server) CreateSite(ctx context.Context, request *iamexamplev1.CreateSiteRequest) (*iamexamplev1.Site, error)
- func (s *Server) DeleteShipment(ctx context.Context, request *iamexamplev1.DeleteShipmentRequest) (*iamexamplev1.Shipment, error)
- func (s *Server) DeleteShipper(ctx context.Context, request *iamexamplev1.DeleteShipperRequest) (*iamexamplev1.Shipper, error)
- func (s *Server) DeleteSite(ctx context.Context, request *iamexamplev1.DeleteSiteRequest) (*iamexamplev1.Site, error)
- func (s *Server) GetIamPolicy(ctx context.Context, request *iam.GetIamPolicyRequest) (*iam.Policy, error)
- func (s *Server) GetShipment(ctx context.Context, request *iamexamplev1.GetShipmentRequest) (*iamexamplev1.Shipment, error)
- func (s *Server) GetShipper(ctx context.Context, request *iamexamplev1.GetShipperRequest) (*iamexamplev1.Shipper, error)
- func (s *Server) GetSite(ctx context.Context, request *iamexamplev1.GetSiteRequest) (*iamexamplev1.Site, error)
- func (s *Server) ListShipments(ctx context.Context, request *iamexamplev1.ListShipmentsRequest) (*iamexamplev1.ListShipmentsResponse, error)
- func (s *Server) ListShippers(ctx context.Context, request *iamexamplev1.ListShippersRequest) (*iamexamplev1.ListShippersResponse, error)
- func (s *Server) ListSites(ctx context.Context, request *iamexamplev1.ListSitesRequest) (*iamexamplev1.ListSitesResponse, error)
- func (s *Server) SearchSites(ctx context.Context, request *iamexamplev1.SearchSitesRequest) (*iamexamplev1.SearchSitesResponse, error)
- func (s *Server) SetIamPolicy(ctx context.Context, request *iam.SetIamPolicyRequest) (*iam.Policy, error)
- func (s *Server) TestIamPermissions(ctx context.Context, request *iam.TestIamPermissionsRequest) (*iam.TestIamPermissionsResponse, error)
- func (s *Server) UpdateShipment(ctx context.Context, request *iamexamplev1.UpdateShipmentRequest) (*iamexamplev1.Shipment, error)
- func (s *Server) UpdateShipper(ctx context.Context, request *iamexamplev1.UpdateShipperRequest) (*iamexamplev1.Shipper, error)
- func (s *Server) UpdateSite(ctx context.Context, request *iamexamplev1.UpdateSiteRequest) (*iamexamplev1.Site, error)
Constants ¶
const MemberHeader = "x-iam-example-members"
MemberHeader is the gRPC header used by the example server to determine IAM members of the caller.
Variables ¶
This section is empty.
Functions ¶
func NewIAMMemberHeaderResolver ¶ added in v0.3.0
NewIAMMemberHeaderResolver returns an iammember.Resolver that resolves members from MemberHeader.
Types ¶
type Authorization ¶
type Authorization struct { iam.UnimplementedIAMPolicyServer admin.UnimplementedIAMServer Next iamexamplev1.FreightServiceServer IAM *iamspanner.Server }
func (*Authorization) BatchGetShipments ¶
func (a *Authorization) BatchGetShipments( ctx context.Context, request *iamexamplev1.BatchGetShipmentsRequest, ) (*iamexamplev1.BatchGetShipmentsResponse, error)
func (*Authorization) BatchGetSites ¶
func (a *Authorization) BatchGetSites( ctx context.Context, request *iamexamplev1.BatchGetSitesRequest, ) (*iamexamplev1.BatchGetSitesResponse, error)
func (*Authorization) CreateShipment ¶
func (a *Authorization) CreateShipment( ctx context.Context, request *iamexamplev1.CreateShipmentRequest, ) (*iamexamplev1.Shipment, error)
func (*Authorization) CreateShipper ¶
func (a *Authorization) CreateShipper( ctx context.Context, request *iamexamplev1.CreateShipperRequest, ) (*iamexamplev1.Shipper, error)
func (*Authorization) CreateSite ¶
func (a *Authorization) CreateSite( ctx context.Context, request *iamexamplev1.CreateSiteRequest, ) (*iamexamplev1.Site, error)
func (*Authorization) DeleteShipment ¶
func (a *Authorization) DeleteShipment( ctx context.Context, request *iamexamplev1.DeleteShipmentRequest, ) (*iamexamplev1.Shipment, error)
func (*Authorization) DeleteShipper ¶
func (a *Authorization) DeleteShipper( ctx context.Context, request *iamexamplev1.DeleteShipperRequest, ) (*iamexamplev1.Shipper, error)
func (*Authorization) DeleteSite ¶
func (a *Authorization) DeleteSite( ctx context.Context, request *iamexamplev1.DeleteSiteRequest, ) (*iamexamplev1.Site, error)
func (*Authorization) GetIamPolicy ¶
func (a *Authorization) GetIamPolicy( ctx context.Context, request *iam.GetIamPolicyRequest, ) (*iam.Policy, error)
func (*Authorization) GetShipment ¶
func (a *Authorization) GetShipment( ctx context.Context, request *iamexamplev1.GetShipmentRequest, ) (*iamexamplev1.Shipment, error)
func (*Authorization) GetShipper ¶
func (a *Authorization) GetShipper( ctx context.Context, request *iamexamplev1.GetShipperRequest, ) (*iamexamplev1.Shipper, error)
func (*Authorization) GetSite ¶
func (a *Authorization) GetSite( ctx context.Context, request *iamexamplev1.GetSiteRequest, ) (*iamexamplev1.Site, error)
func (*Authorization) ListShipments ¶
func (a *Authorization) ListShipments( ctx context.Context, request *iamexamplev1.ListShipmentsRequest, ) (*iamexamplev1.ListShipmentsResponse, error)
func (*Authorization) ListShippers ¶
func (a *Authorization) ListShippers( ctx context.Context, request *iamexamplev1.ListShippersRequest, ) (*iamexamplev1.ListShippersResponse, error)
func (*Authorization) ListSites ¶
func (a *Authorization) ListSites( ctx context.Context, request *iamexamplev1.ListSitesRequest, ) (*iamexamplev1.ListSitesResponse, error)
func (*Authorization) SearchSites ¶
func (a *Authorization) SearchSites( ctx context.Context, request *iamexamplev1.SearchSitesRequest, ) (*iamexamplev1.SearchSitesResponse, error)
func (*Authorization) SetIamPolicy ¶
func (a *Authorization) SetIamPolicy( ctx context.Context, request *iam.SetIamPolicyRequest, ) (*iam.Policy, error)
func (*Authorization) TestIamPermissions ¶
func (a *Authorization) TestIamPermissions( ctx context.Context, request *iam.TestIamPermissionsRequest, ) (*iam.TestIamPermissionsResponse, error)
func (*Authorization) UpdateShipment ¶
func (a *Authorization) UpdateShipment( ctx context.Context, request *iamexamplev1.UpdateShipmentRequest, ) (*iamexamplev1.Shipment, error)
func (*Authorization) UpdateShipper ¶
func (a *Authorization) UpdateShipper( ctx context.Context, request *iamexamplev1.UpdateShipperRequest, ) (*iamexamplev1.Shipper, error)
func (*Authorization) UpdateSite ¶
func (a *Authorization) UpdateSite( ctx context.Context, request *iamexamplev1.UpdateSiteRequest, ) (*iamexamplev1.Site, error)
type Server ¶
type Server struct { IAM *iamspanner.Server Spanner *spanner.Client Config Config }
Server implements iamexamplev1.FreightServiceServer.
func (*Server) BatchGetShipments ¶
func (s *Server) BatchGetShipments( ctx context.Context, request *iamexamplev1.BatchGetShipmentsRequest, ) (*iamexamplev1.BatchGetShipmentsResponse, error)
BatchGetShipments implements iamexamplev1.FreightServiceServer.
func (*Server) BatchGetSites ¶
func (s *Server) BatchGetSites( ctx context.Context, request *iamexamplev1.BatchGetSitesRequest, ) (*iamexamplev1.BatchGetSitesResponse, error)
BatchGetSites implements iamexamplev1.FreightServiceServer.
func (*Server) CreateShipment ¶
func (s *Server) CreateShipment( ctx context.Context, request *iamexamplev1.CreateShipmentRequest, ) (*iamexamplev1.Shipment, error)
func (*Server) CreateShipper ¶
func (s *Server) CreateShipper( ctx context.Context, request *iamexamplev1.CreateShipperRequest, ) (*iamexamplev1.Shipper, error)
CreateShipper implements iamexamplev1.FreightServiceServer.
func (*Server) CreateSite ¶
func (s *Server) CreateSite( ctx context.Context, request *iamexamplev1.CreateSiteRequest, ) (*iamexamplev1.Site, error)
CreateSite implements iamexamplev1.FreightServiceServer.
func (*Server) DeleteShipment ¶
func (s *Server) DeleteShipment( ctx context.Context, request *iamexamplev1.DeleteShipmentRequest, ) (*iamexamplev1.Shipment, error)
DeleteShipment implements iamexamplev1.FreightServiceServer.
func (*Server) DeleteShipper ¶
func (s *Server) DeleteShipper( ctx context.Context, request *iamexamplev1.DeleteShipperRequest, ) (*iamexamplev1.Shipper, error)
DeleteShipper implements iamexamplev1.FreightServiceServer.
func (*Server) DeleteSite ¶
func (s *Server) DeleteSite( ctx context.Context, request *iamexamplev1.DeleteSiteRequest, ) (*iamexamplev1.Site, error)
DeleteSite implements iamexamplev1.FreightServiceServer.
func (*Server) GetIamPolicy ¶
func (s *Server) GetIamPolicy( ctx context.Context, request *iam.GetIamPolicyRequest, ) (*iam.Policy, error)
GetIamPolicy implements iam.IAMPolicyServer.
func (*Server) GetShipment ¶
func (s *Server) GetShipment( ctx context.Context, request *iamexamplev1.GetShipmentRequest, ) (*iamexamplev1.Shipment, error)
GetShipment implements iamexamplev1.FreightServiceServer.
func (*Server) GetShipper ¶
func (s *Server) GetShipper( ctx context.Context, request *iamexamplev1.GetShipperRequest, ) (*iamexamplev1.Shipper, error)
GetShipper implements iamexamplev1.FreightServiceServer.
func (*Server) GetSite ¶
func (s *Server) GetSite( ctx context.Context, request *iamexamplev1.GetSiteRequest, ) (*iamexamplev1.Site, error)
GetSite implements iamexamplev1.FreightServiceServer.
func (*Server) ListShipments ¶
func (s *Server) ListShipments( ctx context.Context, request *iamexamplev1.ListShipmentsRequest, ) (*iamexamplev1.ListShipmentsResponse, error)
ListShipments implements iamexamplev1.FreightServiceServer.
func (*Server) ListShippers ¶
func (s *Server) ListShippers( ctx context.Context, request *iamexamplev1.ListShippersRequest, ) (*iamexamplev1.ListShippersResponse, error)
ListShippers implements iamexamplev1.FreightServiceServer.
func (*Server) ListSites ¶
func (s *Server) ListSites( ctx context.Context, request *iamexamplev1.ListSitesRequest, ) (*iamexamplev1.ListSitesResponse, error)
ListSites implements iamexamplev1.FreightServiceServer.
func (*Server) SearchSites ¶
func (s *Server) SearchSites( ctx context.Context, request *iamexamplev1.SearchSitesRequest, ) (*iamexamplev1.SearchSitesResponse, error)
func (*Server) SetIamPolicy ¶
func (s *Server) SetIamPolicy( ctx context.Context, request *iam.SetIamPolicyRequest, ) (*iam.Policy, error)
SetIamPolicy implements iam.IAMPolicyServer.
func (*Server) TestIamPermissions ¶
func (s *Server) TestIamPermissions( ctx context.Context, request *iam.TestIamPermissionsRequest, ) (*iam.TestIamPermissionsResponse, error)
TestIamPermissions implements iam.IAMPolicyServer.
func (*Server) UpdateShipment ¶
func (s *Server) UpdateShipment( ctx context.Context, request *iamexamplev1.UpdateShipmentRequest, ) (*iamexamplev1.Shipment, error)
UpdateShipment implements iamexamplev1.FreightServiceServer.
func (*Server) UpdateShipper ¶
func (s *Server) UpdateShipper( ctx context.Context, request *iamexamplev1.UpdateShipperRequest, ) (*iamexamplev1.Shipper, error)
UpdateShipper implements iamexamplev1.FreightServiceServer.
func (*Server) UpdateSite ¶
func (s *Server) UpdateSite( ctx context.Context, request *iamexamplev1.UpdateSiteRequest, ) (*iamexamplev1.Site, error)
UpdateSite implements iamexamplev1.FreightServiceServer.
Source Files ¶
- authorization.go
- convert_shipments.go
- convert_shippers.go
- convert_sites.go
- members.go
- schema.go
- server.go
- server_iam.go
- server_shipments_batchget.go
- server_shipments_create.go
- server_shipments_delete.go
- server_shipments_get.go
- server_shipments_list.go
- server_shipments_update.go
- server_shippers_create.go
- server_shippers_delete.go
- server_shippers_get.go
- server_shippers_list.go
- server_shippers_update.go
- server_sites_batchget.go
- server_sites_create.go
- server_sites_delete.go
- server_sites_get.go
- server_sites_list.go
- server_sites_search.go
- server_sites_update.go
Directories ¶
Path | Synopsis |
---|---|
Package iamexampledata provides predefined example data for the IAM example service.
|
Package iamexampledata provides predefined example data for the IAM example service. |