Documentation ¶
Index ¶
- Constants
- func NewKargoServiceHandler(svc KargoServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
- type KargoServiceClient
- type KargoServiceHandler
- type UnimplementedKargoServiceHandler
- func (UnimplementedKargoServiceHandler) AdminLogin(context.Context, *connect_go.Request[v1alpha1.AdminLoginRequest]) (*connect_go.Response[v1alpha1.AdminLoginResponse], error)
- func (UnimplementedKargoServiceHandler) CreateProject(context.Context, *connect_go.Request[v1alpha1.CreateProjectRequest]) (*connect_go.Response[v1alpha1.CreateProjectResponse], error)
- func (UnimplementedKargoServiceHandler) CreatePromotionPolicy(context.Context, *connect_go.Request[v1alpha1.CreatePromotionPolicyRequest]) (*connect_go.Response[v1alpha1.CreatePromotionPolicyResponse], error)
- func (UnimplementedKargoServiceHandler) CreateStage(context.Context, *connect_go.Request[v1alpha1.CreateStageRequest]) (*connect_go.Response[v1alpha1.CreateStageResponse], error)
- func (UnimplementedKargoServiceHandler) DeleteProject(context.Context, *connect_go.Request[v1alpha1.DeleteProjectRequest]) (*connect_go.Response[v1alpha1.DeleteProjectResponse], error)
- func (UnimplementedKargoServiceHandler) DeletePromotionPolicy(context.Context, *connect_go.Request[v1alpha1.DeletePromotionPolicyRequest]) (*connect_go.Response[v1alpha1.DeletePromotionPolicyResponse], error)
- func (UnimplementedKargoServiceHandler) DeleteStage(context.Context, *connect_go.Request[v1alpha1.DeleteStageRequest]) (*connect_go.Response[v1alpha1.DeleteStageResponse], error)
- func (UnimplementedKargoServiceHandler) GetPromotionPolicy(context.Context, *connect_go.Request[v1alpha1.GetPromotionPolicyRequest]) (*connect_go.Response[v1alpha1.GetPromotionPolicyResponse], error)
- func (UnimplementedKargoServiceHandler) GetPublicConfig(context.Context, *connect_go.Request[v1alpha1.GetPublicConfigRequest]) (*connect_go.Response[v1alpha1.GetPublicConfigResponse], error)
- func (UnimplementedKargoServiceHandler) GetStage(context.Context, *connect_go.Request[v1alpha1.GetStageRequest]) (*connect_go.Response[v1alpha1.GetStageResponse], error)
- func (UnimplementedKargoServiceHandler) ListProjects(context.Context, *connect_go.Request[v1alpha1.ListProjectsRequest]) (*connect_go.Response[v1alpha1.ListProjectsResponse], error)
- func (UnimplementedKargoServiceHandler) ListPromotionPolicies(context.Context, *connect_go.Request[v1alpha1.ListPromotionPoliciesRequest]) (*connect_go.Response[v1alpha1.ListPromotionPoliciesResponse], error)
- func (UnimplementedKargoServiceHandler) ListStages(context.Context, *connect_go.Request[v1alpha1.ListStagesRequest]) (*connect_go.Response[v1alpha1.ListStagesResponse], error)
- func (UnimplementedKargoServiceHandler) PromoteStage(context.Context, *connect_go.Request[v1alpha1.PromoteStageRequest]) (*connect_go.Response[v1alpha1.PromoteStageResponse], error)
- func (UnimplementedKargoServiceHandler) SetAutoPromotionForStage(context.Context, *connect_go.Request[v1alpha1.SetAutoPromotionForStageRequest]) (*connect_go.Response[v1alpha1.SetAutoPromotionForStageResponse], error)
- func (UnimplementedKargoServiceHandler) UpdatePromotionPolicy(context.Context, *connect_go.Request[v1alpha1.UpdatePromotionPolicyRequest]) (*connect_go.Response[v1alpha1.UpdatePromotionPolicyResponse], error)
- func (UnimplementedKargoServiceHandler) UpdateStage(context.Context, *connect_go.Request[v1alpha1.UpdateStageRequest]) (*connect_go.Response[v1alpha1.UpdateStageResponse], error)
Constants ¶
const ( // KargoServiceGetPublicConfigProcedure is the fully-qualified name of the KargoService's // GetPublicConfig RPC. KargoServiceGetPublicConfigProcedure = "/akuity.io.kargo.service.v1alpha1.KargoService/GetPublicConfig" // KargoServiceAdminLoginProcedure is the fully-qualified name of the KargoService's AdminLogin RPC. KargoServiceAdminLoginProcedure = "/akuity.io.kargo.service.v1alpha1.KargoService/AdminLogin" // KargoServiceCreateStageProcedure is the fully-qualified name of the KargoService's CreateStage // RPC. KargoServiceCreateStageProcedure = "/akuity.io.kargo.service.v1alpha1.KargoService/CreateStage" // KargoServiceListStagesProcedure is the fully-qualified name of the KargoService's ListStages RPC. KargoServiceListStagesProcedure = "/akuity.io.kargo.service.v1alpha1.KargoService/ListStages" // KargoServiceGetStageProcedure is the fully-qualified name of the KargoService's GetStage RPC. KargoServiceGetStageProcedure = "/akuity.io.kargo.service.v1alpha1.KargoService/GetStage" // KargoServiceUpdateStageProcedure is the fully-qualified name of the KargoService's UpdateStage // RPC. KargoServiceUpdateStageProcedure = "/akuity.io.kargo.service.v1alpha1.KargoService/UpdateStage" // KargoServiceDeleteStageProcedure is the fully-qualified name of the KargoService's DeleteStage // RPC. KargoServiceDeleteStageProcedure = "/akuity.io.kargo.service.v1alpha1.KargoService/DeleteStage" // KargoServicePromoteStageProcedure is the fully-qualified name of the KargoService's PromoteStage // RPC. KargoServicePromoteStageProcedure = "/akuity.io.kargo.service.v1alpha1.KargoService/PromoteStage" // KargoServiceSetAutoPromotionForStageProcedure is the fully-qualified name of the KargoService's // SetAutoPromotionForStage RPC. KargoServiceSetAutoPromotionForStageProcedure = "/akuity.io.kargo.service.v1alpha1.KargoService/SetAutoPromotionForStage" // KargoServiceCreatePromotionPolicyProcedure is the fully-qualified name of the KargoService's // CreatePromotionPolicy RPC. KargoServiceCreatePromotionPolicyProcedure = "/akuity.io.kargo.service.v1alpha1.KargoService/CreatePromotionPolicy" // KargoServiceListPromotionPoliciesProcedure is the fully-qualified name of the KargoService's // ListPromotionPolicies RPC. KargoServiceListPromotionPoliciesProcedure = "/akuity.io.kargo.service.v1alpha1.KargoService/ListPromotionPolicies" // KargoServiceGetPromotionPolicyProcedure is the fully-qualified name of the KargoService's // GetPromotionPolicy RPC. KargoServiceGetPromotionPolicyProcedure = "/akuity.io.kargo.service.v1alpha1.KargoService/GetPromotionPolicy" // KargoServiceUpdatePromotionPolicyProcedure is the fully-qualified name of the KargoService's // UpdatePromotionPolicy RPC. KargoServiceUpdatePromotionPolicyProcedure = "/akuity.io.kargo.service.v1alpha1.KargoService/UpdatePromotionPolicy" // KargoServiceDeletePromotionPolicyProcedure is the fully-qualified name of the KargoService's // DeletePromotionPolicy RPC. KargoServiceDeletePromotionPolicyProcedure = "/akuity.io.kargo.service.v1alpha1.KargoService/DeletePromotionPolicy" // KargoServiceCreateProjectProcedure is the fully-qualified name of the KargoService's // CreateProject RPC. KargoServiceCreateProjectProcedure = "/akuity.io.kargo.service.v1alpha1.KargoService/CreateProject" // KargoServiceListProjectsProcedure is the fully-qualified name of the KargoService's ListProjects // RPC. KargoServiceListProjectsProcedure = "/akuity.io.kargo.service.v1alpha1.KargoService/ListProjects" // KargoServiceDeleteProjectProcedure is the fully-qualified name of the KargoService's // DeleteProject RPC. KargoServiceDeleteProjectProcedure = "/akuity.io.kargo.service.v1alpha1.KargoService/DeleteProject" )
These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.
const (
// KargoServiceName is the fully-qualified name of the KargoService service.
KargoServiceName = "akuity.io.kargo.service.v1alpha1.KargoService"
)
Variables ¶
This section is empty.
Functions ¶
func NewKargoServiceHandler ¶
func NewKargoServiceHandler(svc KargoServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
NewKargoServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.
By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.
Types ¶
type KargoServiceClient ¶
type KargoServiceClient interface { GetPublicConfig(context.Context, *connect_go.Request[v1alpha1.GetPublicConfigRequest]) (*connect_go.Response[v1alpha1.GetPublicConfigResponse], error) AdminLogin(context.Context, *connect_go.Request[v1alpha1.AdminLoginRequest]) (*connect_go.Response[v1alpha1.AdminLoginResponse], error) CreateStage(context.Context, *connect_go.Request[v1alpha1.CreateStageRequest]) (*connect_go.Response[v1alpha1.CreateStageResponse], error) ListStages(context.Context, *connect_go.Request[v1alpha1.ListStagesRequest]) (*connect_go.Response[v1alpha1.ListStagesResponse], error) GetStage(context.Context, *connect_go.Request[v1alpha1.GetStageRequest]) (*connect_go.Response[v1alpha1.GetStageResponse], error) UpdateStage(context.Context, *connect_go.Request[v1alpha1.UpdateStageRequest]) (*connect_go.Response[v1alpha1.UpdateStageResponse], error) DeleteStage(context.Context, *connect_go.Request[v1alpha1.DeleteStageRequest]) (*connect_go.Response[v1alpha1.DeleteStageResponse], error) PromoteStage(context.Context, *connect_go.Request[v1alpha1.PromoteStageRequest]) (*connect_go.Response[v1alpha1.PromoteStageResponse], error) SetAutoPromotionForStage(context.Context, *connect_go.Request[v1alpha1.SetAutoPromotionForStageRequest]) (*connect_go.Response[v1alpha1.SetAutoPromotionForStageResponse], error) CreatePromotionPolicy(context.Context, *connect_go.Request[v1alpha1.CreatePromotionPolicyRequest]) (*connect_go.Response[v1alpha1.CreatePromotionPolicyResponse], error) ListPromotionPolicies(context.Context, *connect_go.Request[v1alpha1.ListPromotionPoliciesRequest]) (*connect_go.Response[v1alpha1.ListPromotionPoliciesResponse], error) GetPromotionPolicy(context.Context, *connect_go.Request[v1alpha1.GetPromotionPolicyRequest]) (*connect_go.Response[v1alpha1.GetPromotionPolicyResponse], error) UpdatePromotionPolicy(context.Context, *connect_go.Request[v1alpha1.UpdatePromotionPolicyRequest]) (*connect_go.Response[v1alpha1.UpdatePromotionPolicyResponse], error) DeletePromotionPolicy(context.Context, *connect_go.Request[v1alpha1.DeletePromotionPolicyRequest]) (*connect_go.Response[v1alpha1.DeletePromotionPolicyResponse], error) CreateProject(context.Context, *connect_go.Request[v1alpha1.CreateProjectRequest]) (*connect_go.Response[v1alpha1.CreateProjectResponse], error) ListProjects(context.Context, *connect_go.Request[v1alpha1.ListProjectsRequest]) (*connect_go.Response[v1alpha1.ListProjectsResponse], error) DeleteProject(context.Context, *connect_go.Request[v1alpha1.DeleteProjectRequest]) (*connect_go.Response[v1alpha1.DeleteProjectResponse], error) }
KargoServiceClient is a client for the akuity.io.kargo.service.v1alpha1.KargoService service.
func NewKargoServiceClient ¶
func NewKargoServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) KargoServiceClient
NewKargoServiceClient constructs a client for the akuity.io.kargo.service.v1alpha1.KargoService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.
The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).
type KargoServiceHandler ¶
type KargoServiceHandler interface { GetPublicConfig(context.Context, *connect_go.Request[v1alpha1.GetPublicConfigRequest]) (*connect_go.Response[v1alpha1.GetPublicConfigResponse], error) AdminLogin(context.Context, *connect_go.Request[v1alpha1.AdminLoginRequest]) (*connect_go.Response[v1alpha1.AdminLoginResponse], error) CreateStage(context.Context, *connect_go.Request[v1alpha1.CreateStageRequest]) (*connect_go.Response[v1alpha1.CreateStageResponse], error) ListStages(context.Context, *connect_go.Request[v1alpha1.ListStagesRequest]) (*connect_go.Response[v1alpha1.ListStagesResponse], error) GetStage(context.Context, *connect_go.Request[v1alpha1.GetStageRequest]) (*connect_go.Response[v1alpha1.GetStageResponse], error) UpdateStage(context.Context, *connect_go.Request[v1alpha1.UpdateStageRequest]) (*connect_go.Response[v1alpha1.UpdateStageResponse], error) DeleteStage(context.Context, *connect_go.Request[v1alpha1.DeleteStageRequest]) (*connect_go.Response[v1alpha1.DeleteStageResponse], error) PromoteStage(context.Context, *connect_go.Request[v1alpha1.PromoteStageRequest]) (*connect_go.Response[v1alpha1.PromoteStageResponse], error) SetAutoPromotionForStage(context.Context, *connect_go.Request[v1alpha1.SetAutoPromotionForStageRequest]) (*connect_go.Response[v1alpha1.SetAutoPromotionForStageResponse], error) CreatePromotionPolicy(context.Context, *connect_go.Request[v1alpha1.CreatePromotionPolicyRequest]) (*connect_go.Response[v1alpha1.CreatePromotionPolicyResponse], error) ListPromotionPolicies(context.Context, *connect_go.Request[v1alpha1.ListPromotionPoliciesRequest]) (*connect_go.Response[v1alpha1.ListPromotionPoliciesResponse], error) GetPromotionPolicy(context.Context, *connect_go.Request[v1alpha1.GetPromotionPolicyRequest]) (*connect_go.Response[v1alpha1.GetPromotionPolicyResponse], error) UpdatePromotionPolicy(context.Context, *connect_go.Request[v1alpha1.UpdatePromotionPolicyRequest]) (*connect_go.Response[v1alpha1.UpdatePromotionPolicyResponse], error) DeletePromotionPolicy(context.Context, *connect_go.Request[v1alpha1.DeletePromotionPolicyRequest]) (*connect_go.Response[v1alpha1.DeletePromotionPolicyResponse], error) CreateProject(context.Context, *connect_go.Request[v1alpha1.CreateProjectRequest]) (*connect_go.Response[v1alpha1.CreateProjectResponse], error) ListProjects(context.Context, *connect_go.Request[v1alpha1.ListProjectsRequest]) (*connect_go.Response[v1alpha1.ListProjectsResponse], error) DeleteProject(context.Context, *connect_go.Request[v1alpha1.DeleteProjectRequest]) (*connect_go.Response[v1alpha1.DeleteProjectResponse], error) }
KargoServiceHandler is an implementation of the akuity.io.kargo.service.v1alpha1.KargoService service.
type UnimplementedKargoServiceHandler ¶
type UnimplementedKargoServiceHandler struct{}
UnimplementedKargoServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedKargoServiceHandler) AdminLogin ¶
func (UnimplementedKargoServiceHandler) AdminLogin(context.Context, *connect_go.Request[v1alpha1.AdminLoginRequest]) (*connect_go.Response[v1alpha1.AdminLoginResponse], error)
func (UnimplementedKargoServiceHandler) CreateProject ¶
func (UnimplementedKargoServiceHandler) CreateProject(context.Context, *connect_go.Request[v1alpha1.CreateProjectRequest]) (*connect_go.Response[v1alpha1.CreateProjectResponse], error)
func (UnimplementedKargoServiceHandler) CreatePromotionPolicy ¶
func (UnimplementedKargoServiceHandler) CreatePromotionPolicy(context.Context, *connect_go.Request[v1alpha1.CreatePromotionPolicyRequest]) (*connect_go.Response[v1alpha1.CreatePromotionPolicyResponse], error)
func (UnimplementedKargoServiceHandler) CreateStage ¶
func (UnimplementedKargoServiceHandler) CreateStage(context.Context, *connect_go.Request[v1alpha1.CreateStageRequest]) (*connect_go.Response[v1alpha1.CreateStageResponse], error)
func (UnimplementedKargoServiceHandler) DeleteProject ¶
func (UnimplementedKargoServiceHandler) DeleteProject(context.Context, *connect_go.Request[v1alpha1.DeleteProjectRequest]) (*connect_go.Response[v1alpha1.DeleteProjectResponse], error)
func (UnimplementedKargoServiceHandler) DeletePromotionPolicy ¶
func (UnimplementedKargoServiceHandler) DeletePromotionPolicy(context.Context, *connect_go.Request[v1alpha1.DeletePromotionPolicyRequest]) (*connect_go.Response[v1alpha1.DeletePromotionPolicyResponse], error)
func (UnimplementedKargoServiceHandler) DeleteStage ¶
func (UnimplementedKargoServiceHandler) DeleteStage(context.Context, *connect_go.Request[v1alpha1.DeleteStageRequest]) (*connect_go.Response[v1alpha1.DeleteStageResponse], error)
func (UnimplementedKargoServiceHandler) GetPromotionPolicy ¶
func (UnimplementedKargoServiceHandler) GetPromotionPolicy(context.Context, *connect_go.Request[v1alpha1.GetPromotionPolicyRequest]) (*connect_go.Response[v1alpha1.GetPromotionPolicyResponse], error)
func (UnimplementedKargoServiceHandler) GetPublicConfig ¶
func (UnimplementedKargoServiceHandler) GetPublicConfig(context.Context, *connect_go.Request[v1alpha1.GetPublicConfigRequest]) (*connect_go.Response[v1alpha1.GetPublicConfigResponse], error)
func (UnimplementedKargoServiceHandler) GetStage ¶
func (UnimplementedKargoServiceHandler) GetStage(context.Context, *connect_go.Request[v1alpha1.GetStageRequest]) (*connect_go.Response[v1alpha1.GetStageResponse], error)
func (UnimplementedKargoServiceHandler) ListProjects ¶
func (UnimplementedKargoServiceHandler) ListProjects(context.Context, *connect_go.Request[v1alpha1.ListProjectsRequest]) (*connect_go.Response[v1alpha1.ListProjectsResponse], error)
func (UnimplementedKargoServiceHandler) ListPromotionPolicies ¶
func (UnimplementedKargoServiceHandler) ListPromotionPolicies(context.Context, *connect_go.Request[v1alpha1.ListPromotionPoliciesRequest]) (*connect_go.Response[v1alpha1.ListPromotionPoliciesResponse], error)
func (UnimplementedKargoServiceHandler) ListStages ¶
func (UnimplementedKargoServiceHandler) ListStages(context.Context, *connect_go.Request[v1alpha1.ListStagesRequest]) (*connect_go.Response[v1alpha1.ListStagesResponse], error)
func (UnimplementedKargoServiceHandler) PromoteStage ¶
func (UnimplementedKargoServiceHandler) PromoteStage(context.Context, *connect_go.Request[v1alpha1.PromoteStageRequest]) (*connect_go.Response[v1alpha1.PromoteStageResponse], error)
func (UnimplementedKargoServiceHandler) SetAutoPromotionForStage ¶
func (UnimplementedKargoServiceHandler) SetAutoPromotionForStage(context.Context, *connect_go.Request[v1alpha1.SetAutoPromotionForStageRequest]) (*connect_go.Response[v1alpha1.SetAutoPromotionForStageResponse], error)
func (UnimplementedKargoServiceHandler) UpdatePromotionPolicy ¶
func (UnimplementedKargoServiceHandler) UpdatePromotionPolicy(context.Context, *connect_go.Request[v1alpha1.UpdatePromotionPolicyRequest]) (*connect_go.Response[v1alpha1.UpdatePromotionPolicyResponse], error)
func (UnimplementedKargoServiceHandler) UpdateStage ¶
func (UnimplementedKargoServiceHandler) UpdateStage(context.Context, *connect_go.Request[v1alpha1.UpdateStageRequest]) (*connect_go.Response[v1alpha1.UpdateStageResponse], error)