infra_proxy

package
v0.0.0-...-a8b8e24 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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

CreateClient creates an infra client

func (*InfraProxyServer) CreateDataBag

CreateDataBag creates a data bag

func (*InfraProxyServer) CreateDataBagItem

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

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

DeletePolicyfiles deletes the policy

func (*InfraProxyServer) DeleteRole

func (a *InfraProxyServer) DeleteRole(ctx context.Context, r *gwreq.Role) (*gwres.Role, error)

DeleteRole deletes the role

func (*InfraProxyServer) DeleteServer

DeleteServer deletes a server upstream

func (*InfraProxyServer) GetClient

func (a *InfraProxyServer) GetClient(ctx context.Context, r *gwreq.Client) (*gwres.Client, error)

GetClient fetches an infra client details

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

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) GetNode

func (a *InfraProxyServer) GetNode(ctx context.Context, r *gwreq.Node) (*gwres.Node, error)

GetNode gets the node

func (*InfraProxyServer) GetNodeExpandedRunList

func (*InfraProxyServer) GetNodes

func (a *InfraProxyServer) GetNodes(ctx context.Context, r *gwreq.Nodes) (*gwres.Nodes, error)

GetNodes gets the nodes

func (*InfraProxyServer) GetOrg

func (a *InfraProxyServer) GetOrg(ctx context.Context, r *gwreq.GetOrg) (*gwres.GetOrg, error)

GetOrg fetches a single org by ID

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) GetOrgs

func (a *InfraProxyServer) GetOrgs(ctx context.Context, r *gwreq.GetOrgs) (*gwres.GetOrgs, error)

GetOrgs fetches an array of existing orgs

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

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) GetRole

func (a *InfraProxyServer) GetRole(ctx context.Context, r *gwreq.Role) (*gwres.Role, error)

GetRole fetches an infra role 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) GetRoles

func (a *InfraProxyServer) GetRoles(ctx context.Context, r *gwreq.Roles) (*gwres.Roles, error)

GetRoles fetches an array of existing roles

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

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

ResetOrgAdminKey resets the org admin key

func (*InfraProxyServer) UpdateDataBagItem

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

UpdateNodeAttributes updates the node attributes

func (*InfraProxyServer) UpdateNodeEnvironment

UpdateNodeEnvironment updates the node environment

func (*InfraProxyServer) UpdateNodeTags

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

UpdateServer updates a server upstream

Jump to

Keyboard shortcuts

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