Documentation ¶
Overview ¶
Package rpc contains rpc service implementation.
Index ¶
- type Configs
- func (c Configs) GetConfig(ctx context.Context, req *pb.GetConfigRequest) (*pb.Config, error)
- func (c Configs) GetConfigSet(ctx context.Context, req *pb.GetConfigSetRequest) (*pb.ConfigSet, error)
- func (c Configs) GetProjectConfigs(ctx context.Context, req *pb.GetProjectConfigsRequest) (*pb.GetProjectConfigsResponse, error)
- func (c Configs) ListConfigSets(ctx context.Context, req *pb.ListConfigSetsRequest) (*pb.ListConfigSetsResponse, error)
- func (c Configs) ValidateConfigs(ctx context.Context, req *configpb.ValidateConfigsRequest) (*cfgcommonpb.ValidationResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configs ¶
type Configs struct { pb.UnimplementedConfigsServer // Validator is used to validate configs. Validator validator // GSValidationBucket is bucket where the configs for validation upload to. GSValidationBucket string }
Configs implements pb.ConfigsServer
func (Configs) GetConfig ¶
GetConfig handles a request to retrieve a config. Implements pb.ConfigsServer.
func (Configs) GetConfigSet ¶
func (c Configs) GetConfigSet(ctx context.Context, req *pb.GetConfigSetRequest) (*pb.ConfigSet, error)
GetConfigSet fetches a single config set. Implements pb.ConfigsServer.
func (Configs) GetProjectConfigs ¶
func (c Configs) GetProjectConfigs(ctx context.Context, req *pb.GetProjectConfigsRequest) (*pb.GetProjectConfigsResponse, error)
GetProjectConfigs gets the specified project configs from all projects. Implement pb.ConfigsServer.
func (Configs) ListConfigSets ¶
func (c Configs) ListConfigSets(ctx context.Context, req *pb.ListConfigSetsRequest) (*pb.ListConfigSetsResponse, error)
ListConfigSets returns a list of config sets. Implements pb.ConfigsServer.
func (Configs) ValidateConfigs ¶
func (c Configs) ValidateConfigs(ctx context.Context, req *configpb.ValidateConfigsRequest) (*cfgcommonpb.ValidationResult, error)
ValidateConfigs validates configs. Implements configpb.ConfigsServer.
Click to show internal directories.
Click to hide internal directories.