infra_proxy

package
v0.0.0-...-be2ef80 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package infra_proxy is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var File_external_infra_proxy_infra_proxy_proto protoreflect.FileDescriptor

Functions

func RegisterInfraProxyHandler

func RegisterInfraProxyHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterInfraProxyHandler registers the http handlers for service InfraProxy to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterInfraProxyHandlerClient

func RegisterInfraProxyHandlerClient(ctx context.Context, mux *runtime.ServeMux, client InfraProxyClient) error

RegisterInfraProxyHandlerClient registers the http handlers for service InfraProxy to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "InfraProxyClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "InfraProxyClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "InfraProxyClient" to call the correct interceptors.

func RegisterInfraProxyHandlerFromEndpoint

func RegisterInfraProxyHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterInfraProxyHandlerFromEndpoint is same as RegisterInfraProxyHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterInfraProxyHandlerServer

func RegisterInfraProxyHandlerServer(ctx context.Context, mux *runtime.ServeMux, server InfraProxyServer) error

RegisterInfraProxyHandlerServer registers the http handlers for service InfraProxy to "mux". UnaryRPC :call InfraProxyServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterInfraProxyServer

func RegisterInfraProxyServer(s *grpc.Server, srv InfraProxyServer)

Types

type InfraProxyClient

type InfraProxyClient interface {
	GetServers(ctx context.Context, in *request.GetServers, opts ...grpc.CallOption) (*response.GetServers, error)
	GetServerStatus(ctx context.Context, in *request.GetServerStatus, opts ...grpc.CallOption) (*response.GetServerStatus, error)
	GetServer(ctx context.Context, in *request.GetServer, opts ...grpc.CallOption) (*response.GetServer, error)
	CreateServer(ctx context.Context, in *request.CreateServer, opts ...grpc.CallOption) (*response.CreateServer, error)
	UpdateServer(ctx context.Context, in *request.UpdateServer, opts ...grpc.CallOption) (*response.UpdateServer, error)
	DeleteServer(ctx context.Context, in *request.DeleteServer, opts ...grpc.CallOption) (*response.DeleteServer, error)
	GetOrgs(ctx context.Context, in *request.GetOrgs, opts ...grpc.CallOption) (*response.GetOrgs, error)
	GetOrg(ctx context.Context, in *request.GetOrg, opts ...grpc.CallOption) (*response.GetOrg, error)
	CreateOrg(ctx context.Context, in *request.CreateOrg, opts ...grpc.CallOption) (*response.CreateOrg, error)
	UpdateOrg(ctx context.Context, in *request.UpdateOrg, opts ...grpc.CallOption) (*response.UpdateOrg, error)
	DeleteOrg(ctx context.Context, in *request.DeleteOrg, opts ...grpc.CallOption) (*response.DeleteOrg, error)
	ResetOrgAdminKey(ctx context.Context, in *request.ResetOrgAdminKey, opts ...grpc.CallOption) (*response.ResetOrgAdminKey, error)
	GetCookbooks(ctx context.Context, in *request.Cookbooks, opts ...grpc.CallOption) (*response.Cookbooks, error)
	GetCookbookVersions(ctx context.Context, in *request.CookbookVersions, opts ...grpc.CallOption) (*response.CookbookVersions, error)
	GetCookbook(ctx context.Context, in *request.Cookbook, opts ...grpc.CallOption) (*response.Cookbook, error)
	GetCookbookFileContent(ctx context.Context, in *request.CookbookFileContent, opts ...grpc.CallOption) (*response.CookbookFileContent, error)
	GetRoles(ctx context.Context, in *request.Roles, opts ...grpc.CallOption) (*response.Roles, error)
	GetRole(ctx context.Context, in *request.Role, opts ...grpc.CallOption) (*response.Role, error)
	GetRoleExpandedRunList(ctx context.Context, in *request.ExpandedRunList, opts ...grpc.CallOption) (*response.ExpandedRunList, error)
	GetRoleEnvironments(ctx context.Context, in *request.Role, opts ...grpc.CallOption) (*response.RoleEnvironments, error)
	CreateRole(ctx context.Context, in *request.CreateRole, opts ...grpc.CallOption) (*response.Role, error)
	DeleteRole(ctx context.Context, in *request.Role, opts ...grpc.CallOption) (*response.Role, error)
	UpdateRole(ctx context.Context, in *request.UpdateRole, opts ...grpc.CallOption) (*response.Role, error)
	GetClients(ctx context.Context, in *request.Clients, opts ...grpc.CallOption) (*response.Clients, error)
	GetClient(ctx context.Context, in *request.Client, opts ...grpc.CallOption) (*response.Client, error)
	CreateClient(ctx context.Context, in *request.CreateClient, opts ...grpc.CallOption) (*response.CreateClient, error)
	DeleteClient(ctx context.Context, in *request.Client, opts ...grpc.CallOption) (*response.Client, error)
	ResetClientKey(ctx context.Context, in *request.ClientKey, opts ...grpc.CallOption) (*response.ResetClient, error)
	GetDataBags(ctx context.Context, in *request.DataBags, opts ...grpc.CallOption) (*response.DataBags, error)
	GetDataBagItems(ctx context.Context, in *request.DataBagItems, opts ...grpc.CallOption) (*response.DataBagItems, error)
	GetDataBagItem(ctx context.Context, in *request.DataBagItem, opts ...grpc.CallOption) (*response.DataBagItem, error)
	CreateDataBag(ctx context.Context, in *request.CreateDataBag, opts ...grpc.CallOption) (*response.CreateDataBag, error)
	CreateDataBagItem(ctx context.Context, in *request.CreateDataBagItem, opts ...grpc.CallOption) (*response.CreateDataBagItem, error)
	DeleteDataBag(ctx context.Context, in *request.DataBag, opts ...grpc.CallOption) (*response.DataBag, error)
	DeleteDataBagItem(ctx context.Context, in *request.DataBagItem, opts ...grpc.CallOption) (*response.DataBagItem, error)
	UpdateDataBagItem(ctx context.Context, in *request.UpdateDataBagItem, opts ...grpc.CallOption) (*response.UpdateDataBagItem, error)
	GetEnvironments(ctx context.Context, in *request.Environments, opts ...grpc.CallOption) (*response.Environments, error)
	GetEnvironment(ctx context.Context, in *request.Environment, opts ...grpc.CallOption) (*response.Environment, error)
	CreateEnvironment(ctx context.Context, in *request.CreateEnvironment, opts ...grpc.CallOption) (*response.Environment, error)
	DeleteEnvironment(ctx context.Context, in *request.Environment, opts ...grpc.CallOption) (*response.Environment, error)
	UpdateEnvironment(ctx context.Context, in *request.UpdateEnvironment, opts ...grpc.CallOption) (*response.Environment, error)
	GetEnvironmentRecipes(ctx context.Context, in *request.Environment, opts ...grpc.CallOption) (*response.EnvironmentRecipesList, error)
	GetNodes(ctx context.Context, in *request.Nodes, opts ...grpc.CallOption) (*response.Nodes, error)
	DeleteNode(ctx context.Context, in *request.Node, opts ...grpc.CallOption) (*response.DeleteNode, error)
	UpdateNode(ctx context.Context, in *request.NodeDetails, opts ...grpc.CallOption) (*response.Node, error)
	UpdateNodeAttributes(ctx context.Context, in *request.UpdateNodeAttributes, opts ...grpc.CallOption) (*response.UpdateNodeAttributes, error)
	GetNode(ctx context.Context, in *request.Node, opts ...grpc.CallOption) (*response.Node, error)
	GetNodeExpandedRunList(ctx context.Context, in *request.NodeExpandedRunList, opts ...grpc.CallOption) (*response.NodeExpandedRunList, error)
	UpdateNodeTags(ctx context.Context, in *request.UpdateNodeTags, opts ...grpc.CallOption) (*response.UpdateNodeTags, error)
	UpdateNodeEnvironment(ctx context.Context, in *request.UpdateNodeEnvironment, opts ...grpc.CallOption) (*response.UpdateNodeEnvironment, error)
	GetPolicyfiles(ctx context.Context, in *request.Policyfiles, opts ...grpc.CallOption) (*response.Policyfiles, error)
	GetPolicyfile(ctx context.Context, in *request.Policyfile, opts ...grpc.CallOption) (*response.Policyfile, error)
	DeletePolicyfile(ctx context.Context, in *request.DeletePolicyfile, opts ...grpc.CallOption) (*response.DeletePolicyfile, error)
	GetPolicyfileRevisions(ctx context.Context, in *request.PolicyfileRevisions, opts ...grpc.CallOption) (*response.PolicyfileRevisions, error)
	GetPolicygroup(ctx context.Context, in *request.Policygroup, opts ...grpc.CallOption) (*response.Policygroup, error)
	GetOrgUsersList(ctx context.Context, in *request.OrgUsers, opts ...grpc.CallOption) (*response.OrgUsers, error)
	GetServerUsersList(ctx context.Context, in *request.ServerUsers, opts ...grpc.CallOption) (*response.ServerUsers, error)
}

InfraProxyClient is the client API for InfraProxy service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewInfraProxyClient

func NewInfraProxyClient(cc grpc.ClientConnInterface) InfraProxyClient

type InfraProxyServer

type InfraProxyServer interface {
	GetServers(context.Context, *request.GetServers) (*response.GetServers, error)
	GetServerStatus(context.Context, *request.GetServerStatus) (*response.GetServerStatus, error)
	GetServer(context.Context, *request.GetServer) (*response.GetServer, error)
	CreateServer(context.Context, *request.CreateServer) (*response.CreateServer, error)
	UpdateServer(context.Context, *request.UpdateServer) (*response.UpdateServer, error)
	DeleteServer(context.Context, *request.DeleteServer) (*response.DeleteServer, error)
	GetOrgs(context.Context, *request.GetOrgs) (*response.GetOrgs, error)
	GetOrg(context.Context, *request.GetOrg) (*response.GetOrg, error)
	CreateOrg(context.Context, *request.CreateOrg) (*response.CreateOrg, error)
	UpdateOrg(context.Context, *request.UpdateOrg) (*response.UpdateOrg, error)
	DeleteOrg(context.Context, *request.DeleteOrg) (*response.DeleteOrg, error)
	ResetOrgAdminKey(context.Context, *request.ResetOrgAdminKey) (*response.ResetOrgAdminKey, error)
	GetCookbooks(context.Context, *request.Cookbooks) (*response.Cookbooks, error)
	GetCookbookVersions(context.Context, *request.CookbookVersions) (*response.CookbookVersions, error)
	GetCookbook(context.Context, *request.Cookbook) (*response.Cookbook, error)
	GetCookbookFileContent(context.Context, *request.CookbookFileContent) (*response.CookbookFileContent, error)
	GetRoles(context.Context, *request.Roles) (*response.Roles, error)
	GetRole(context.Context, *request.Role) (*response.Role, error)
	GetRoleExpandedRunList(context.Context, *request.ExpandedRunList) (*response.ExpandedRunList, error)
	GetRoleEnvironments(context.Context, *request.Role) (*response.RoleEnvironments, error)
	CreateRole(context.Context, *request.CreateRole) (*response.Role, error)
	DeleteRole(context.Context, *request.Role) (*response.Role, error)
	UpdateRole(context.Context, *request.UpdateRole) (*response.Role, error)
	GetClients(context.Context, *request.Clients) (*response.Clients, error)
	GetClient(context.Context, *request.Client) (*response.Client, error)
	CreateClient(context.Context, *request.CreateClient) (*response.CreateClient, error)
	DeleteClient(context.Context, *request.Client) (*response.Client, error)
	ResetClientKey(context.Context, *request.ClientKey) (*response.ResetClient, error)
	GetDataBags(context.Context, *request.DataBags) (*response.DataBags, error)
	GetDataBagItems(context.Context, *request.DataBagItems) (*response.DataBagItems, error)
	GetDataBagItem(context.Context, *request.DataBagItem) (*response.DataBagItem, error)
	CreateDataBag(context.Context, *request.CreateDataBag) (*response.CreateDataBag, error)
	CreateDataBagItem(context.Context, *request.CreateDataBagItem) (*response.CreateDataBagItem, error)
	DeleteDataBag(context.Context, *request.DataBag) (*response.DataBag, error)
	DeleteDataBagItem(context.Context, *request.DataBagItem) (*response.DataBagItem, error)
	UpdateDataBagItem(context.Context, *request.UpdateDataBagItem) (*response.UpdateDataBagItem, error)
	GetEnvironments(context.Context, *request.Environments) (*response.Environments, error)
	GetEnvironment(context.Context, *request.Environment) (*response.Environment, error)
	CreateEnvironment(context.Context, *request.CreateEnvironment) (*response.Environment, error)
	DeleteEnvironment(context.Context, *request.Environment) (*response.Environment, error)
	UpdateEnvironment(context.Context, *request.UpdateEnvironment) (*response.Environment, error)
	GetEnvironmentRecipes(context.Context, *request.Environment) (*response.EnvironmentRecipesList, error)
	GetNodes(context.Context, *request.Nodes) (*response.Nodes, error)
	DeleteNode(context.Context, *request.Node) (*response.DeleteNode, error)
	UpdateNode(context.Context, *request.NodeDetails) (*response.Node, error)
	UpdateNodeAttributes(context.Context, *request.UpdateNodeAttributes) (*response.UpdateNodeAttributes, error)
	GetNode(context.Context, *request.Node) (*response.Node, error)
	GetNodeExpandedRunList(context.Context, *request.NodeExpandedRunList) (*response.NodeExpandedRunList, error)
	UpdateNodeTags(context.Context, *request.UpdateNodeTags) (*response.UpdateNodeTags, error)
	UpdateNodeEnvironment(context.Context, *request.UpdateNodeEnvironment) (*response.UpdateNodeEnvironment, error)
	GetPolicyfiles(context.Context, *request.Policyfiles) (*response.Policyfiles, error)
	GetPolicyfile(context.Context, *request.Policyfile) (*response.Policyfile, error)
	DeletePolicyfile(context.Context, *request.DeletePolicyfile) (*response.DeletePolicyfile, error)
	GetPolicyfileRevisions(context.Context, *request.PolicyfileRevisions) (*response.PolicyfileRevisions, error)
	GetPolicygroup(context.Context, *request.Policygroup) (*response.Policygroup, error)
	GetOrgUsersList(context.Context, *request.OrgUsers) (*response.OrgUsers, error)
	GetServerUsersList(context.Context, *request.ServerUsers) (*response.ServerUsers, error)
}

InfraProxyServer is the server API for InfraProxy service.

type UnimplementedInfraProxyServer

type UnimplementedInfraProxyServer struct {
}

UnimplementedInfraProxyServer can be embedded to have forward compatible implementations.

func (*UnimplementedInfraProxyServer) CreateClient

func (*UnimplementedInfraProxyServer) CreateDataBag

func (*UnimplementedInfraProxyServer) CreateDataBagItem

func (*UnimplementedInfraProxyServer) CreateEnvironment

func (*UnimplementedInfraProxyServer) CreateOrg

func (*UnimplementedInfraProxyServer) CreateRole

func (*UnimplementedInfraProxyServer) CreateServer

func (*UnimplementedInfraProxyServer) DeleteClient

func (*UnimplementedInfraProxyServer) DeleteDataBag

func (*UnimplementedInfraProxyServer) DeleteDataBagItem

func (*UnimplementedInfraProxyServer) DeleteEnvironment

func (*UnimplementedInfraProxyServer) DeleteNode

func (*UnimplementedInfraProxyServer) DeleteOrg

func (*UnimplementedInfraProxyServer) DeletePolicyfile

func (*UnimplementedInfraProxyServer) DeleteRole

func (*UnimplementedInfraProxyServer) DeleteServer

func (*UnimplementedInfraProxyServer) GetClient

func (*UnimplementedInfraProxyServer) GetClients

func (*UnimplementedInfraProxyServer) GetCookbook

func (*UnimplementedInfraProxyServer) GetCookbookFileContent

func (*UnimplementedInfraProxyServer) GetCookbookVersions

func (*UnimplementedInfraProxyServer) GetCookbooks

func (*UnimplementedInfraProxyServer) GetDataBagItem

func (*UnimplementedInfraProxyServer) GetDataBagItems

func (*UnimplementedInfraProxyServer) GetDataBags

func (*UnimplementedInfraProxyServer) GetEnvironment

func (*UnimplementedInfraProxyServer) GetEnvironmentRecipes

func (*UnimplementedInfraProxyServer) GetEnvironments

func (*UnimplementedInfraProxyServer) GetNode

func (*UnimplementedInfraProxyServer) GetNodeExpandedRunList

func (*UnimplementedInfraProxyServer) GetNodes

func (*UnimplementedInfraProxyServer) GetOrg

func (*UnimplementedInfraProxyServer) GetOrgUsersList

func (*UnimplementedInfraProxyServer) GetOrgs

func (*UnimplementedInfraProxyServer) GetPolicyfile

func (*UnimplementedInfraProxyServer) GetPolicyfileRevisions

func (*UnimplementedInfraProxyServer) GetPolicyfiles

func (*UnimplementedInfraProxyServer) GetPolicygroup

func (*UnimplementedInfraProxyServer) GetRole

func (*UnimplementedInfraProxyServer) GetRoleEnvironments

func (*UnimplementedInfraProxyServer) GetRoleExpandedRunList

func (*UnimplementedInfraProxyServer) GetRoles

func (*UnimplementedInfraProxyServer) GetServer

func (*UnimplementedInfraProxyServer) GetServerStatus

func (*UnimplementedInfraProxyServer) GetServerUsersList

func (*UnimplementedInfraProxyServer) GetServers

func (*UnimplementedInfraProxyServer) ResetClientKey

func (*UnimplementedInfraProxyServer) ResetOrgAdminKey

func (*UnimplementedInfraProxyServer) UpdateDataBagItem

func (*UnimplementedInfraProxyServer) UpdateEnvironment

func (*UnimplementedInfraProxyServer) UpdateNode

func (*UnimplementedInfraProxyServer) UpdateNodeAttributes

func (*UnimplementedInfraProxyServer) UpdateNodeEnvironment

func (*UnimplementedInfraProxyServer) UpdateNodeTags

func (*UnimplementedInfraProxyServer) UpdateOrg

func (*UnimplementedInfraProxyServer) UpdateRole

func (*UnimplementedInfraProxyServer) UpdateServer

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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