Documentation ¶
Index ¶
- func FromUpstreamIncludeSolutionDependecies(sp []*infra_res.SolutionDependencies) []*gwres.SolutionDependencies
- type InfraProxyServer
- func (a *InfraProxyServer) CreateClient(ctx context.Context, r *gwreq.CreateClient) (*gwres.CreateClient, error)
- func (a *InfraProxyServer) CreateDataBag(ctx context.Context, r *gwreq.CreateDataBag) (*gwres.CreateDataBag, error)
- func (a *InfraProxyServer) CreateDataBagItem(ctx context.Context, r *gwreq.CreateDataBagItem) (*gwres.CreateDataBagItem, error)
- func (a *InfraProxyServer) CreateEnvironment(ctx context.Context, r *gwreq.CreateEnvironment) (*gwres.Environment, error)
- func (a *InfraProxyServer) CreateOrg(ctx context.Context, r *gwreq.CreateOrg) (*gwres.CreateOrg, error)
- func (a *InfraProxyServer) CreateRole(ctx context.Context, r *gwreq.CreateRole) (*gwres.Role, error)
- func (a *InfraProxyServer) CreateServer(ctx context.Context, r *gwreq.CreateServer) (*gwres.CreateServer, error)
- func (a *InfraProxyServer) DeleteClient(ctx context.Context, r *gwreq.Client) (*gwres.Client, error)
- func (a *InfraProxyServer) DeleteDataBag(ctx context.Context, r *gwreq.DataBag) (*gwres.DataBag, error)
- func (a *InfraProxyServer) DeleteDataBagItem(ctx context.Context, r *gwreq.DataBagItem) (*gwres.DataBagItem, error)
- func (a *InfraProxyServer) DeleteEnvironment(ctx context.Context, r *gwreq.Environment) (*gwres.Environment, error)
- func (a *InfraProxyServer) DeleteNode(ctx context.Context, r *gwreq.Node) (*gwres.DeleteNode, error)
- func (a *InfraProxyServer) DeleteOrg(ctx context.Context, r *gwreq.DeleteOrg) (*gwres.DeleteOrg, error)
- func (a *InfraProxyServer) DeletePolicyfile(ctx context.Context, r *gwreq.DeletePolicyfile) (*gwres.DeletePolicyfile, error)
- func (a *InfraProxyServer) DeleteRole(ctx context.Context, r *gwreq.Role) (*gwres.Role, error)
- func (a *InfraProxyServer) DeleteServer(ctx context.Context, r *gwreq.DeleteServer) (*gwres.DeleteServer, error)
- func (a *InfraProxyServer) GetClient(ctx context.Context, r *gwreq.Client) (*gwres.Client, error)
- func (a *InfraProxyServer) GetClients(ctx context.Context, r *gwreq.Clients) (*gwres.Clients, error)
- func (a *InfraProxyServer) GetCookbook(ctx context.Context, r *gwreq.Cookbook) (*gwres.Cookbook, error)
- func (a *InfraProxyServer) GetCookbookFileContent(ctx context.Context, r *gwreq.CookbookFileContent) (*gwres.CookbookFileContent, error)
- func (a *InfraProxyServer) GetCookbookVersions(ctx context.Context, r *gwreq.CookbookVersions) (*gwres.CookbookVersions, error)
- func (a *InfraProxyServer) GetCookbooks(ctx context.Context, r *gwreq.Cookbooks) (*gwres.Cookbooks, error)
- func (a *InfraProxyServer) GetDataBagItem(ctx context.Context, r *gwreq.DataBagItem) (*gwres.DataBagItem, error)
- func (a *InfraProxyServer) GetDataBagItems(ctx context.Context, r *gwreq.DataBagItems) (*gwres.DataBagItems, error)
- func (a *InfraProxyServer) GetDataBags(ctx context.Context, r *gwreq.DataBags) (*gwres.DataBags, error)
- func (a *InfraProxyServer) GetEnvironment(ctx context.Context, r *gwreq.Environment) (*gwres.Environment, error)
- func (a *InfraProxyServer) GetEnvironmentRecipes(ctx context.Context, r *gwreq.Environment) (*gwres.EnvironmentRecipesList, error)
- func (a *InfraProxyServer) GetEnvironments(ctx context.Context, r *gwreq.Environments) (*gwres.Environments, error)
- func (a *InfraProxyServer) GetNode(ctx context.Context, r *gwreq.Node) (*gwres.Node, error)
- func (a *InfraProxyServer) GetNodeExpandedRunList(ctx context.Context, r *gwreq.NodeExpandedRunList) (*gwres.NodeExpandedRunList, error)
- func (a *InfraProxyServer) GetNodes(ctx context.Context, r *gwreq.Nodes) (*gwres.Nodes, error)
- func (a *InfraProxyServer) GetOrg(ctx context.Context, r *gwreq.GetOrg) (*gwres.GetOrg, error)
- func (c *InfraProxyServer) GetOrgUsersList(ctx context.Context, r *gwreq.OrgUsers) (*gwres.OrgUsers, error)
- func (a *InfraProxyServer) GetOrgs(ctx context.Context, r *gwreq.GetOrgs) (*gwres.GetOrgs, error)
- func (a *InfraProxyServer) GetPolicyfile(ctx context.Context, r *gwreq.Policyfile) (*gwres.Policyfile, error)
- func (a *InfraProxyServer) GetPolicyfileRevisions(ctx context.Context, r *gwreq.PolicyfileRevisions) (*gwres.PolicyfileRevisions, error)
- func (a *InfraProxyServer) GetPolicyfiles(ctx context.Context, r *gwreq.Policyfiles) (*gwres.Policyfiles, error)
- func (a *InfraProxyServer) GetPolicygroup(ctx context.Context, r *gwreq.Policygroup) (*gwres.Policygroup, error)
- func (a *InfraProxyServer) GetRole(ctx context.Context, r *gwreq.Role) (*gwres.Role, error)
- func (a *InfraProxyServer) GetRoleEnvironments(ctx context.Context, r *gwreq.Role) (*gwres.RoleEnvironments, error)
- func (a *InfraProxyServer) GetRoleExpandedRunList(ctx context.Context, r *gwreq.ExpandedRunList) (*gwres.ExpandedRunList, error)
- func (a *InfraProxyServer) GetRoles(ctx context.Context, r *gwreq.Roles) (*gwres.Roles, error)
- func (a *InfraProxyServer) GetServer(ctx context.Context, r *gwreq.GetServer) (*gwres.GetServer, error)
- func (a *InfraProxyServer) GetServerStatus(ctx context.Context, request *gwreq.GetServerStatus) (*gwres.GetServerStatus, error)
- func (c *InfraProxyServer) GetServerUsersList(ctx context.Context, r *gwreq.ServerUsers) (*gwres.ServerUsers, error)
- func (a *InfraProxyServer) GetServers(ctx context.Context, _ *gwreq.GetServers) (*gwres.GetServers, error)
- func (a *InfraProxyServer) ResetClientKey(ctx context.Context, r *gwreq.ClientKey) (*gwres.ResetClient, error)
- func (a *InfraProxyServer) ResetOrgAdminKey(ctx context.Context, r *gwreq.ResetOrgAdminKey) (*gwres.ResetOrgAdminKey, error)
- func (a *InfraProxyServer) UpdateDataBagItem(ctx context.Context, r *gwreq.UpdateDataBagItem) (*gwres.UpdateDataBagItem, error)
- func (a *InfraProxyServer) UpdateEnvironment(ctx context.Context, r *gwreq.UpdateEnvironment) (*gwres.Environment, error)
- func (a *InfraProxyServer) UpdateNode(ctx context.Context, r *gwreq.NodeDetails) (*gwres.Node, error)
- func (a *InfraProxyServer) UpdateNodeAttributes(ctx context.Context, r *gwreq.UpdateNodeAttributes) (*gwres.UpdateNodeAttributes, error)
- func (a *InfraProxyServer) UpdateNodeEnvironment(ctx context.Context, r *gwreq.UpdateNodeEnvironment) (*gwres.UpdateNodeEnvironment, error)
- func (a *InfraProxyServer) UpdateNodeTags(ctx context.Context, r *gwreq.UpdateNodeTags) (*gwres.UpdateNodeTags, error)
- func (a *InfraProxyServer) UpdateOrg(ctx context.Context, r *gwreq.UpdateOrg) (*gwres.UpdateOrg, error)
- func (a *InfraProxyServer) UpdateRole(ctx context.Context, r *gwreq.UpdateRole) (*gwres.Role, error)
- func (a *InfraProxyServer) UpdateServer(ctx context.Context, r *gwreq.UpdateServer) (*gwres.UpdateServer, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromUpstreamIncludeSolutionDependecies ¶
func FromUpstreamIncludeSolutionDependecies(sp []*infra_res.SolutionDependencies) []*gwres.SolutionDependencies
Types ¶
type InfraProxyServer ¶
type InfraProxyServer struct {
// contains filtered or unexported fields
}
InfraProxyServer stores client
func NewInfraProxyHandler ¶
func NewInfraProxyHandler(client infra_proxy.InfraProxyServiceClient) *InfraProxyServer
NewInfraProxyHandler initializes InfraProxyServer with client
func (*InfraProxyServer) CreateClient ¶
func (a *InfraProxyServer) CreateClient(ctx context.Context, r *gwreq.CreateClient) (*gwres.CreateClient, error)
CreateClient creates an infra client
func (*InfraProxyServer) CreateDataBag ¶
func (a *InfraProxyServer) CreateDataBag(ctx context.Context, r *gwreq.CreateDataBag) (*gwres.CreateDataBag, error)
CreateDataBag creates a data bag
func (*InfraProxyServer) CreateDataBagItem ¶
func (a *InfraProxyServer) CreateDataBagItem(ctx context.Context, r *gwreq.CreateDataBagItem) (*gwres.CreateDataBagItem, error)
CreateDataBagItem creates a data bag item
func (*InfraProxyServer) CreateEnvironment ¶
func (a *InfraProxyServer) CreateEnvironment(ctx context.Context, r *gwreq.CreateEnvironment) (*gwres.Environment, error)
CreateEnvironment creates the environment
func (*InfraProxyServer) CreateOrg ¶
func (a *InfraProxyServer) CreateOrg(ctx context.Context, r *gwreq.CreateOrg) (*gwres.CreateOrg, error)
CreateOrg posts an org upstream
func (*InfraProxyServer) CreateRole ¶
func (a *InfraProxyServer) CreateRole(ctx context.Context, r *gwreq.CreateRole) (*gwres.Role, error)
CreateRole fetches an infra role details
func (*InfraProxyServer) CreateServer ¶
func (a *InfraProxyServer) CreateServer(ctx context.Context, r *gwreq.CreateServer) (*gwres.CreateServer, error)
CreateServer posts a server upstream
func (*InfraProxyServer) DeleteClient ¶
func (a *InfraProxyServer) DeleteClient(ctx context.Context, r *gwreq.Client) (*gwres.Client, error)
DeleteClient deletes an infra client
func (*InfraProxyServer) DeleteDataBag ¶
func (a *InfraProxyServer) DeleteDataBag(ctx context.Context, r *gwreq.DataBag) (*gwres.DataBag, error)
DeleteDataBag deletes the data bag
func (*InfraProxyServer) DeleteDataBagItem ¶
func (a *InfraProxyServer) DeleteDataBagItem(ctx context.Context, r *gwreq.DataBagItem) (*gwres.DataBagItem, error)
DeleteDataBagItem deletes the data bag item
func (*InfraProxyServer) DeleteEnvironment ¶
func (a *InfraProxyServer) DeleteEnvironment(ctx context.Context, r *gwreq.Environment) (*gwres.Environment, error)
DeleteEnvironment deletes the environment
func (*InfraProxyServer) DeleteNode ¶
func (a *InfraProxyServer) DeleteNode(ctx context.Context, r *gwreq.Node) (*gwres.DeleteNode, error)
DeleteNode deletes the node by name
func (*InfraProxyServer) DeleteOrg ¶
func (a *InfraProxyServer) DeleteOrg(ctx context.Context, r *gwreq.DeleteOrg) (*gwres.DeleteOrg, error)
DeleteOrg deletes an org upstream
func (*InfraProxyServer) DeletePolicyfile ¶
func (a *InfraProxyServer) DeletePolicyfile(ctx context.Context, r *gwreq.DeletePolicyfile) (*gwres.DeletePolicyfile, error)
DeletePolicyfiles deletes the policy
func (*InfraProxyServer) DeleteRole ¶
DeleteRole deletes the role
func (*InfraProxyServer) DeleteServer ¶
func (a *InfraProxyServer) DeleteServer(ctx context.Context, r *gwreq.DeleteServer) (*gwres.DeleteServer, error)
DeleteServer deletes a server upstream
func (*InfraProxyServer) GetClients ¶
func (a *InfraProxyServer) GetClients(ctx context.Context, r *gwreq.Clients) (*gwres.Clients, error)
GetClients fetches an array of existing clients
func (*InfraProxyServer) GetCookbook ¶
func (a *InfraProxyServer) GetCookbook(ctx context.Context, r *gwreq.Cookbook) (*gwres.Cookbook, error)
GetCookbook fetches the detail of existing cookbook
func (*InfraProxyServer) GetCookbookFileContent ¶
func (a *InfraProxyServer) GetCookbookFileContent(ctx context.Context, r *gwreq.CookbookFileContent) (*gwres.CookbookFileContent, error)
GetCookbookFileContent get the nodes using cookbook
func (*InfraProxyServer) GetCookbookVersions ¶
func (a *InfraProxyServer) GetCookbookVersions(ctx context.Context, r *gwreq.CookbookVersions) (*gwres.CookbookVersions, error)
GetCookbookVersions fetches an array of existing cookbook versions
func (*InfraProxyServer) GetCookbooks ¶
func (a *InfraProxyServer) GetCookbooks(ctx context.Context, r *gwreq.Cookbooks) (*gwres.Cookbooks, error)
GetCookbooks fetches an array of existing cookbooks
func (*InfraProxyServer) GetDataBagItem ¶
func (a *InfraProxyServer) GetDataBagItem(ctx context.Context, r *gwreq.DataBagItem) (*gwres.DataBagItem, error)
GetDataBagItem fetches an infra data bag item details
func (*InfraProxyServer) GetDataBagItems ¶
func (a *InfraProxyServer) GetDataBagItems(ctx context.Context, r *gwreq.DataBagItems) (*gwres.DataBagItems, error)
GetDataBagItems fetches an array of existing data bag items
func (*InfraProxyServer) GetDataBags ¶
func (a *InfraProxyServer) GetDataBags(ctx context.Context, r *gwreq.DataBags) (*gwres.DataBags, error)
GetDataBags fetches an array of existing data bags
func (*InfraProxyServer) GetEnvironment ¶
func (a *InfraProxyServer) GetEnvironment(ctx context.Context, r *gwreq.Environment) (*gwres.Environment, error)
GetEnvironment fetches the environment details
func (*InfraProxyServer) GetEnvironmentRecipes ¶
func (a *InfraProxyServer) GetEnvironmentRecipes(ctx context.Context, r *gwreq.Environment) (*gwres.EnvironmentRecipesList, error)
GetEnvironmentRecipes fetches an array of environment based recipes
func (*InfraProxyServer) GetEnvironments ¶
func (a *InfraProxyServer) GetEnvironments(ctx context.Context, r *gwreq.Environments) (*gwres.Environments, error)
GetEnvironments fetches an array of existing environments
func (*InfraProxyServer) GetNodeExpandedRunList ¶
func (a *InfraProxyServer) GetNodeExpandedRunList(ctx context.Context, r *gwreq.NodeExpandedRunList) (*gwres.NodeExpandedRunList, error)
func (*InfraProxyServer) GetOrgUsersList ¶
func (c *InfraProxyServer) GetOrgUsersList(ctx context.Context, r *gwreq.OrgUsers) (*gwres.OrgUsers, error)
GetUsersList: fetches a list of an existing users in organization
func (*InfraProxyServer) GetPolicyfile ¶
func (a *InfraProxyServer) GetPolicyfile(ctx context.Context, r *gwreq.Policyfile) (*gwres.Policyfile, error)
GetPolicyfile fetches the policy file details
func (*InfraProxyServer) GetPolicyfileRevisions ¶
func (a *InfraProxyServer) GetPolicyfileRevisions(ctx context.Context, r *gwreq.PolicyfileRevisions) (*gwres.PolicyfileRevisions, error)
GetPolicyfileRevisions fetches the policyfile revisions
func (*InfraProxyServer) GetPolicyfiles ¶
func (a *InfraProxyServer) GetPolicyfiles(ctx context.Context, r *gwreq.Policyfiles) (*gwres.Policyfiles, error)
GetPolicyfiles fetches an array of existing policies
func (*InfraProxyServer) GetPolicygroup ¶
func (a *InfraProxyServer) GetPolicygroup(ctx context.Context, r *gwreq.Policygroup) (*gwres.Policygroup, error)
GetPolicygroup fetches the policy group details
func (*InfraProxyServer) GetRoleEnvironments ¶
func (a *InfraProxyServer) GetRoleEnvironments(ctx context.Context, r *gwreq.Role) (*gwres.RoleEnvironments, error)
GetRoleEnvironments gets the role environments
func (*InfraProxyServer) GetRoleExpandedRunList ¶
func (a *InfraProxyServer) GetRoleExpandedRunList(ctx context.Context, r *gwreq.ExpandedRunList) (*gwres.ExpandedRunList, error)
GetRoleExpandedRunList gets the role expanded run-list
func (*InfraProxyServer) GetServer ¶
func (a *InfraProxyServer) GetServer(ctx context.Context, r *gwreq.GetServer) (*gwres.GetServer, error)
GetServer fetches a single server by ID
func (*InfraProxyServer) GetServerStatus ¶
func (a *InfraProxyServer) GetServerStatus(ctx context.Context, request *gwreq.GetServerStatus) (*gwres.GetServerStatus, error)
GetServerStatus get status of server
func (*InfraProxyServer) GetServerUsersList ¶
func (c *InfraProxyServer) GetServerUsersList(ctx context.Context, r *gwreq.ServerUsers) (*gwres.ServerUsers, error)
GetServerUsersList: fetches a list of an existing users in server
func (*InfraProxyServer) GetServers ¶
func (a *InfraProxyServer) GetServers(ctx context.Context, _ *gwreq.GetServers) (*gwres.GetServers, error)
GetServers fetches an array of existing servers
func (*InfraProxyServer) ResetClientKey ¶
func (a *InfraProxyServer) ResetClientKey(ctx context.Context, r *gwreq.ClientKey) (*gwres.ResetClient, error)
ResetClientKey resets an infra client key Deletes the associated key pair and generates new key pair again, and then attaches it to the client.
func (*InfraProxyServer) ResetOrgAdminKey ¶
func (a *InfraProxyServer) ResetOrgAdminKey(ctx context.Context, r *gwreq.ResetOrgAdminKey) (*gwres.ResetOrgAdminKey, error)
ResetOrgAdminKey resets the org admin key
func (*InfraProxyServer) UpdateDataBagItem ¶
func (a *InfraProxyServer) UpdateDataBagItem(ctx context.Context, r *gwreq.UpdateDataBagItem) (*gwres.UpdateDataBagItem, error)
UpdateDataBagItem updates a data bag item
func (*InfraProxyServer) UpdateEnvironment ¶
func (a *InfraProxyServer) UpdateEnvironment(ctx context.Context, r *gwreq.UpdateEnvironment) (*gwres.Environment, error)
UpdateEnvironment updates the environment attributes
func (*InfraProxyServer) UpdateNode ¶
func (a *InfraProxyServer) UpdateNode(ctx context.Context, r *gwreq.NodeDetails) (*gwres.Node, error)
UpdateNode updates the node attributes
func (*InfraProxyServer) UpdateNodeAttributes ¶
func (a *InfraProxyServer) UpdateNodeAttributes(ctx context.Context, r *gwreq.UpdateNodeAttributes) (*gwres.UpdateNodeAttributes, error)
UpdateNodeAttributes updates the node attributes
func (*InfraProxyServer) UpdateNodeEnvironment ¶
func (a *InfraProxyServer) UpdateNodeEnvironment(ctx context.Context, r *gwreq.UpdateNodeEnvironment) (*gwres.UpdateNodeEnvironment, error)
UpdateNodeEnvironment updates the node environment
func (*InfraProxyServer) UpdateNodeTags ¶
func (a *InfraProxyServer) UpdateNodeTags(ctx context.Context, r *gwreq.UpdateNodeTags) (*gwres.UpdateNodeTags, error)
UpdateNodeTags updates the node tags
func (*InfraProxyServer) UpdateOrg ¶
func (a *InfraProxyServer) UpdateOrg(ctx context.Context, r *gwreq.UpdateOrg) (*gwres.UpdateOrg, error)
UpdateOrg updates an org upstream
func (*InfraProxyServer) UpdateRole ¶
func (a *InfraProxyServer) UpdateRole(ctx context.Context, r *gwreq.UpdateRole) (*gwres.Role, error)
UpdateRole updates an infra role
func (*InfraProxyServer) UpdateServer ¶
func (a *InfraProxyServer) UpdateServer(ctx context.Context, r *gwreq.UpdateServer) (*gwres.UpdateServer, error)
UpdateServer updates a server upstream