Documentation ¶
Index ¶
- Constants
- type AddGroupResponse
- type AddGroupResponseData
- type AddGroupResponseDataDetails
- type AddGroupVariables
- type Client
- func (c *Client) AddGroup(orgID, name string) (*AddGroupResponseDataDetails, error)
- func (c *Client) GroupByName(orgID string, name string) (*types.Group, error)
- func (c *Client) GroupClusters(orgID, uuid string, clusters []string) (*GroupClustersResponseDataDetails, error)
- func (c *Client) Groups(orgID string) (types.GroupList, error)
- func (c *Client) RemoveGroup(orgID, uuid string) (*RemoveGroupResponseDataDetails, error)
- func (c *Client) RemoveGroupByName(orgID, name string) (*RemoveGroupByNameResponseDataDetails, error)
- type GroupByNameResponse
- type GroupByNameResponseData
- type GroupByNameVariables
- type GroupClustersResponse
- type GroupClustersResponseData
- type GroupClustersResponseDataDetails
- type GroupClustersVariables
- type GroupService
- type GroupsResponse
- type GroupsResponseData
- type GroupsVariables
- type RemoveGroupByNameResponse
- type RemoveGroupByNameResponseData
- type RemoveGroupByNameResponseDataDetails
- type RemoveGroupByNameVariables
- type RemoveGroupResponse
- type RemoveGroupResponseData
- type RemoveGroupResponseDataDetails
- type RemoveGroupVariables
Constants ¶
const ( QueryAddGroup = "addGroup" AddGroupVarTemplate = `{{define "vars"}}"orgId":{{json .OrgID}},"name":{{json .Name}}{{end}}` )
const ( QueryGroupByName = "groupByName" GroupByNameVarTemplate = `{{define "vars"}}"orgId":{{json .OrgID}},"name":{{json .Name}}{{end}}` )
const ( QueryGroupClusters = "groupClusters" GroupClustersVarTemplate = `` /* 151-byte string literal not displayed */ )
const ( QueryGroups = "groups" GroupsVarTemplate = `{{define "vars"}}"orgId":{{json .OrgID}}{{end}}` )
const ( QueryRemoveGroup = "removeGroup" RemoveGroupVarTemplate = `{{define "vars"}}"orgId":{{json .OrgID}},"uuid":{{json .UUID}}{{end}}` )
const ( QueryRemoveGroupByName = "removeGroupByName" RemoveGroupByNameVarTemplate = `{{define "vars"}}"orgId":{{json .OrgID}},"name":{{json .Name}}{{end}}` )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddGroupResponse ¶
type AddGroupResponse struct {
Data *AddGroupResponseData `json:"data,omitempty"`
}
AddGroupResponse is the response body we get upon a successful cluster registration.
type AddGroupResponseData ¶
type AddGroupResponseData struct {
Details *AddGroupResponseDataDetails `json:"addGroup,omitempty"`
}
type AddGroupResponseDataDetails ¶
type AddGroupResponseDataDetails struct {
UUID string `json:"uuid,omitempty"`
}
type AddGroupVariables ¶
type AddGroupVariables struct { actions.GraphQLQuery OrgID string Name string }
AddGroupVariables are the variables specific to adding a group. These include the organization ID and the group name. Rather than instantiating this directly, use NewAddGroupVariables().
func NewAddGroupVariables ¶
func NewAddGroupVariables(orgID, name string) AddGroupVariables
NewAddGroupVariables creates a correctly formed instance of AddGroupVariables.
type Client ¶
type Client struct {
web.SatConClient
}
Client is an implementation of a satcon client.
func (*Client) AddGroup ¶
func (c *Client) AddGroup(orgID, name string) (*AddGroupResponseDataDetails, error)
func (*Client) GroupByName ¶
func (*Client) GroupClusters ¶
func (c *Client) GroupClusters(orgID, uuid string, clusters []string) (*GroupClustersResponseDataDetails, error)
func (*Client) RemoveGroup ¶
func (c *Client) RemoveGroup(orgID, uuid string) (*RemoveGroupResponseDataDetails, error)
func (*Client) RemoveGroupByName ¶
func (c *Client) RemoveGroupByName(orgID, name string) (*RemoveGroupByNameResponseDataDetails, error)
type GroupByNameResponse ¶
type GroupByNameResponse struct {
Data *GroupByNameResponseData `json:"data,omitempty"`
}
type GroupByNameResponseData ¶
type GroupByNameVariables ¶
type GroupByNameVariables struct { actions.GraphQLQuery OrgID string Name string }
func NewGroupByNameVariables ¶
func NewGroupByNameVariables(orgID string, name string) GroupByNameVariables
type GroupClustersResponse ¶
type GroupClustersResponse struct {
Data *GroupClustersResponseData `json:"data,omitempty"`
}
GroupClustersResponse is the response body we get upon a successful cluster registration.
type GroupClustersResponseData ¶
type GroupClustersResponseData struct {
Details *GroupClustersResponseDataDetails `json:"groupClusters,omitempty"`
}
type GroupClustersResponseDataDetails ¶
type GroupClustersResponseDataDetails struct {
Modified int `json:"modified,omitempty"`
}
type GroupClustersVariables ¶
type GroupClustersVariables struct { actions.GraphQLQuery OrgID string UUID string Clusters []string }
GroupClustersVariables are the variables specific to grouping clusters. These include the organization ID, group UUID, and list of cluster IDs. Rather than instantiating this directly, use NewGroupClustersVariables().
func NewGroupClustersVariables ¶
func NewGroupClustersVariables(orgID, uuid string, clusters []string) GroupClustersVariables
NewGroupClustersVariables creates a correctly formed instance of GroupClustersVariables.
type GroupService ¶
type GroupService interface { Groups(orgID string) (types.GroupList, error) GroupByName(orgID string, name string) (*types.Group, error) AddGroup(orgID, name string) (*AddGroupResponseDataDetails, error) RemoveGroup(orgID, uuid string) (*RemoveGroupResponseDataDetails, error) RemoveGroupByName(orgID, name string) (*RemoveGroupByNameResponseDataDetails, error) GroupClusters(orgID, uuid string, clusters []string) (*GroupClustersResponseDataDetails, error) }
ClusterService is the interface used to perform all group-centric actions in Satellite Config.
func NewClient ¶
func NewClient(endpointURL string, httpClient web.HTTPClient, authClient auth.AuthClient) (GroupService, error)
NewClient returns a configured instance of GroupService which can then be used to perform group queries against Satellite Config.
type GroupsResponse ¶
type GroupsResponse struct {
Data *GroupsResponseData `json:"data,omitempty"`
}
type GroupsResponseData ¶
type GroupsVariables ¶
type GroupsVariables struct { actions.GraphQLQuery OrgID string }
func NewGroupsVariables ¶
func NewGroupsVariables(orgID string) GroupsVariables
type RemoveGroupByNameResponse ¶
type RemoveGroupByNameResponse struct {
Data *RemoveGroupByNameResponseData `json:"data,omitempty"`
}
type RemoveGroupByNameResponseData ¶
type RemoveGroupByNameResponseData struct {
Details *RemoveGroupByNameResponseDataDetails `json:"removeGroupByName,omitempty"`
}
type RemoveGroupByNameResponseDataDetails ¶
type RemoveGroupByNameResponseDataDetails struct {
UUID string `json:"uuid,omitempty"`
}
type RemoveGroupByNameVariables ¶
type RemoveGroupByNameVariables struct { actions.GraphQLQuery OrgID string Name string }
RemoveGroupByNameVariables are the variables specific to removing a group by name. These include the organization ID and the group name. Rather than instantiating this directly, use NewRemoveGroupByNameVariables().
func NewRemoveGroupByNameVariables ¶
func NewRemoveGroupByNameVariables(orgID, name string) RemoveGroupByNameVariables
NewRemoveGroupByNameVariables creates a correctly formed instance of RemoveGroupByNameVariables.
type RemoveGroupResponse ¶
type RemoveGroupResponse struct {
Data *RemoveGroupResponseData `json:"data,omitempty"`
}
type RemoveGroupResponseData ¶
type RemoveGroupResponseData struct {
Details *RemoveGroupResponseDataDetails `json:"removeGroup,omitempty"`
}
type RemoveGroupResponseDataDetails ¶
type RemoveGroupResponseDataDetails struct {
UUID string `json:"uuid,omitempty"`
}
type RemoveGroupVariables ¶
type RemoveGroupVariables struct { actions.GraphQLQuery OrgID string UUID string }
RemoveGroupVariables are the variables specific to removing a group by name. These include the organization ID and the group name. Rather than instantiating this directly, use NewRemoveGroupVariables().
func NewRemoveGroupVariables ¶
func NewRemoveGroupVariables(orgID, uuid string) RemoveGroupVariables
NewRemoveGroupVariables creates a correctly formed instance of RemoveGroupVariables.