Documentation ¶
Index ¶
- Constants
- type Client
- type ResourceContentResponse
- type ResourceContentResponseData
- type ResourceContentVariables
- type ResourceService
- type ResourcesByClusterResponse
- type ResourcesByClusterResponseData
- type ResourcesByClusterVariables
- type ResourcesResponse
- type ResourcesResponseData
- type ResourcesVariables
Constants ¶
const ( QueryResourceContent = "resourceContent" ResourceContentVarTemplate = `` /* 127-byte string literal not displayed */ )
const ( QueryResources = "resources" ResourcesVarTemplate = `{{define "vars"}}"orgId":{{json .OrgID}}{{end}}` )
const ( QueryResourcesByCluster = "resourcesByCluster" ResourcesByClusterVarTemplate = `` /* 130-byte string literal not displayed */ )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
web.SatConClient
}
Client is an implementation of a satcon client.
func (*Client) ResourceContent ¶
func (c *Client) ResourceContent(orgID, clusterID, resourceSelfLink string) (*types.ResourceContentObj, error)
ResourceContent retrieves resource content
func (*Client) Resources ¶
func (c *Client) Resources(orgID string) (*types.ResourceList, error)
Resources queries specified cluster for list of resources, i.e. Pod, Deployment, Service, etc.
func (*Client) ResourcesByCluster ¶
func (c *Client) ResourcesByCluster(orgID, clusterID, filter string, limit int) (*types.ResourceList, error)
ResourcesByCluster queries specified cluster for list of resources, i.e. Pod, Deployment, Service, etc.
type ResourceContentResponse ¶
type ResourceContentResponse struct {
Data *ResourceContentResponseData `json:"data,omitempty"`
}
type ResourceContentResponseData ¶
type ResourceContentResponseData struct {
ResourceContent *types.ResourceContentObj `json:"resourceContent,omitempty"`
}
type ResourceContentVariables ¶
type ResourceContentVariables struct { actions.GraphQLQuery OrgID string ClusterID string ResourceSelfLink string }
ResourceContentVariables variable to query resources for specified cluster
func NewResourceContentVariables ¶
func NewResourceContentVariables(orgID, clusterID, resourceSelfLink string) ResourceContentVariables
NewResourceContentVariables returns necessary variables for query
type ResourceService ¶
type ResourceService interface { ResourcesByCluster(orgID, clusterID, filter string, limit int) (*types.ResourceList, error) Resources(orgID string) (*types.ResourceList, error) ResourceContent(orgID, clusterID, resourceSelfLink string) (*types.ResourceContentObj, error) }
ResourceService is the interface used to perform all cluster-centric actions in Satellite Config.
func NewClient ¶
func NewClient(endpointURL string, httpClient web.HTTPClient, authClient auth.AuthClient) (ResourceService, error)
NewClient returns a configured instance of ClusterService which can then be used to perform cluster queries against Satellite Config.
type ResourcesByClusterResponse ¶
type ResourcesByClusterResponse struct {
Data *ResourcesByClusterResponseData `json:"data,omitempty"`
}
ResourcesByClusterResponse query data
type ResourcesByClusterResponseData ¶
type ResourcesByClusterResponseData struct {
ResourceList *types.ResourceList `json:"resourcesByCluster,omitempty"`
}
ResourcesByClusterResponseData encapsulates ResourceList response
type ResourcesByClusterVariables ¶
type ResourcesByClusterVariables struct { actions.GraphQLQuery OrgID string ClusterID string Filter string Limit int }
ResourcesByClusterVariables variable to query resources for specified cluster
func NewResourcesByClusterVariables ¶
func NewResourcesByClusterVariables(orgID, clusterID, filter string, limit int) ResourcesByClusterVariables
NewResourcesByClusterVariables returns necessary variables for query
type ResourcesResponse ¶
type ResourcesResponse struct {
Data *ResourcesResponseData `json:"data,omitempty"`
}
ResourcesResponse query data
type ResourcesResponseData ¶
type ResourcesResponseData struct {
ResourceList *types.ResourceList `json:"resources,omitempty"`
}
ResourcesResponseData encapsulates ResourceList response
type ResourcesVariables ¶
type ResourcesVariables struct { actions.GraphQLQuery OrgID string }
ResourcesVariables variable to query resources for specified cluster
func NewResourcesVariables ¶
func NewResourcesVariables(orgID string) ResourcesVariables
NewResourcesVariables returns necessary variables for query