Documentation ¶
Overview ¶
Package manager is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterNodeManagerServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterNodeManagerServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client NodeManagerServiceClient) error
- func RegisterNodeManagerServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterNodeManagerServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server NodeManagerServiceServer) error
- func RegisterNodeManagerServiceServer(s *grpc.Server, srv NodeManagerServiceServer)
- type ConnectResponse
- type CredentialsByTags
- func (*CredentialsByTags) Descriptor() ([]byte, []int)deprecated
- func (x *CredentialsByTags) GetCredentialIds() []string
- func (x *CredentialsByTags) GetTagKey() string
- func (x *CredentialsByTags) GetTagValue() string
- func (*CredentialsByTags) ProtoMessage()
- func (x *CredentialsByTags) ProtoReflect() protoreflect.Message
- func (x *CredentialsByTags) Reset()
- func (x *CredentialsByTags) String() string
- type FieldQuery
- func (*FieldQuery) Descriptor() ([]byte, []int)deprecated
- func (x *FieldQuery) GetField() string
- func (x *FieldQuery) GetNodeManagerId() string
- func (x *FieldQuery) GetQuery() *Query
- func (*FieldQuery) ProtoMessage()
- func (x *FieldQuery) ProtoReflect() protoreflect.Message
- func (x *FieldQuery) Reset()
- func (x *FieldQuery) String() string
- type Fields
- type Id
- type Ids
- type NodeManager
- func (*NodeManager) Descriptor() ([]byte, []int)deprecated
- func (x *NodeManager) GetAccountId() string
- func (x *NodeManager) GetCredentialData() []*query.Kv
- func (x *NodeManager) GetCredentialId() string
- func (x *NodeManager) GetDateAdded() *timestamppb.Timestamp
- func (x *NodeManager) GetId() string
- func (x *NodeManager) GetInstanceCredentials() []*CredentialsByTags
- func (x *NodeManager) GetName() string
- func (x *NodeManager) GetStatus() string
- func (x *NodeManager) GetType() string
- func (*NodeManager) ProtoMessage()
- func (x *NodeManager) ProtoReflect() protoreflect.Message
- func (x *NodeManager) Reset()
- func (x *NodeManager) String() string
- type NodeManagerServiceClient
- type NodeManagerServiceServer
- type NodeManagers
- func (*NodeManagers) Descriptor() ([]byte, []int)deprecated
- func (x *NodeManagers) GetManagers() []*NodeManager
- func (x *NodeManagers) GetTotal() int32
- func (*NodeManagers) ProtoMessage()
- func (x *NodeManagers) ProtoReflect() protoreflect.Message
- func (x *NodeManagers) Reset()
- func (x *NodeManagers) String() string
- type NodeQuery
- type Nodes
- type Query
- func (*Query) Descriptor() ([]byte, []int)deprecated
- func (x *Query) GetFilterMap() []*query.Filter
- func (x *Query) GetOrder() Query_OrderType
- func (x *Query) GetPage() int32
- func (x *Query) GetPerPage() int32
- func (x *Query) GetSort() string
- func (*Query) ProtoMessage()
- func (x *Query) ProtoReflect() protoreflect.Message
- func (x *Query) Reset()
- func (x *Query) String() string
- type Query_OrderType
- func (Query_OrderType) Descriptor() protoreflect.EnumDescriptor
- func (x Query_OrderType) Enum() *Query_OrderType
- func (Query_OrderType) EnumDescriptor() ([]byte, []int)deprecated
- func (x Query_OrderType) Number() protoreflect.EnumNumber
- func (x Query_OrderType) String() string
- func (Query_OrderType) Type() protoreflect.EnumType
- type UnimplementedNodeManagerServiceServer
- func (*UnimplementedNodeManagerServiceServer) Connect(context.Context, *Id) (*ConnectResponse, error)
- func (*UnimplementedNodeManagerServiceServer) Create(context.Context, *NodeManager) (*Ids, error)
- func (*UnimplementedNodeManagerServiceServer) Delete(context.Context, *Id) (*emptypb.Empty, error)
- func (*UnimplementedNodeManagerServiceServer) DeleteWithNodeStateStopped(context.Context, *Id) (*emptypb.Empty, error)
- func (*UnimplementedNodeManagerServiceServer) DeleteWithNodeStateTerminated(context.Context, *Id) (*emptypb.Empty, error)
- func (*UnimplementedNodeManagerServiceServer) DeleteWithNodes(context.Context, *Id) (*Ids, error)
- func (*UnimplementedNodeManagerServiceServer) List(context.Context, *Query) (*NodeManagers, error)
- func (*UnimplementedNodeManagerServiceServer) Read(context.Context, *Id) (*NodeManager, error)
- func (*UnimplementedNodeManagerServiceServer) SearchNodeFields(context.Context, *FieldQuery) (*Fields, error)
- func (*UnimplementedNodeManagerServiceServer) SearchNodes(context.Context, *NodeQuery) (*Nodes, error)
- func (*UnimplementedNodeManagerServiceServer) Update(context.Context, *NodeManager) (*emptypb.Empty, error)
Constants ¶
This section is empty.
Variables ¶
var ( Query_OrderType_name = map[int32]string{ 0: "ASC", 1: "DESC", } Query_OrderType_value = map[string]int32{ "ASC": 0, "DESC": 1, } )
Enum value maps for Query_OrderType.
var File_external_nodes_manager_manager_proto protoreflect.FileDescriptor
Functions ¶
func RegisterNodeManagerServiceHandler ¶
func RegisterNodeManagerServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterNodeManagerServiceHandler registers the http handlers for service NodeManagerService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterNodeManagerServiceHandlerClient ¶
func RegisterNodeManagerServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client NodeManagerServiceClient) error
RegisterNodeManagerServiceHandlerClient registers the http handlers for service NodeManagerService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "NodeManagerServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "NodeManagerServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "NodeManagerServiceClient" to call the correct interceptors.
func RegisterNodeManagerServiceHandlerFromEndpoint ¶
func RegisterNodeManagerServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterNodeManagerServiceHandlerFromEndpoint is same as RegisterNodeManagerServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterNodeManagerServiceHandlerServer ¶
func RegisterNodeManagerServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server NodeManagerServiceServer) error
RegisterNodeManagerServiceHandlerServer registers the http handlers for service NodeManagerService to "mux". UnaryRPC :call NodeManagerServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
func RegisterNodeManagerServiceServer ¶
func RegisterNodeManagerServiceServer(s *grpc.Server, srv NodeManagerServiceServer)
Types ¶
type ConnectResponse ¶
type ConnectResponse struct {
// contains filtered or unexported fields
}
func (*ConnectResponse) Descriptor
deprecated
func (*ConnectResponse) Descriptor() ([]byte, []int)
Deprecated: Use ConnectResponse.ProtoReflect.Descriptor instead.
func (*ConnectResponse) ProtoMessage ¶
func (*ConnectResponse) ProtoMessage()
func (*ConnectResponse) ProtoReflect ¶
func (x *ConnectResponse) ProtoReflect() protoreflect.Message
func (*ConnectResponse) Reset ¶
func (x *ConnectResponse) Reset()
func (*ConnectResponse) String ¶
func (x *ConnectResponse) String() string
type CredentialsByTags ¶
type CredentialsByTags struct { // Tag key to match on. TagKey string `protobuf:"bytes,20,opt,name=tag_key,json=tagKey,proto3" json:"tag_key,omitempty"` // Tag value to match on. TagValue string `protobuf:"bytes,21,opt,name=tag_value,json=tagValue,proto3" json:"tag_value,omitempty"` // List of credential ids to associate with the key/value pair. CredentialIds []string `protobuf:"bytes,22,rep,name=credential_ids,json=credentialIds,proto3" json:"credential_ids,omitempty"` // contains filtered or unexported fields }
func (*CredentialsByTags) Descriptor
deprecated
func (*CredentialsByTags) Descriptor() ([]byte, []int)
Deprecated: Use CredentialsByTags.ProtoReflect.Descriptor instead.
func (*CredentialsByTags) GetCredentialIds ¶
func (x *CredentialsByTags) GetCredentialIds() []string
func (*CredentialsByTags) GetTagKey ¶
func (x *CredentialsByTags) GetTagKey() string
func (*CredentialsByTags) GetTagValue ¶
func (x *CredentialsByTags) GetTagValue() string
func (*CredentialsByTags) ProtoMessage ¶
func (*CredentialsByTags) ProtoMessage()
func (*CredentialsByTags) ProtoReflect ¶
func (x *CredentialsByTags) ProtoReflect() protoreflect.Message
func (*CredentialsByTags) Reset ¶
func (x *CredentialsByTags) Reset()
func (*CredentialsByTags) String ¶
func (x *CredentialsByTags) String() string
type FieldQuery ¶
type FieldQuery struct { // Query details (filters) to be applied to the results. Query *Query `protobuf:"bytes,20,opt,name=query,proto3" json:"query,omitempty"` // Possible search fields: regions, tags, name, subscription_id. Field string `protobuf:"bytes,21,opt,name=field,proto3" json:"field,omitempty"` // Node manager ID. NodeManagerId string `protobuf:"bytes,22,opt,name=node_manager_id,json=nodeManagerId,proto3" json:"node_manager_id,omitempty"` // contains filtered or unexported fields }
func (*FieldQuery) Descriptor
deprecated
func (*FieldQuery) Descriptor() ([]byte, []int)
Deprecated: Use FieldQuery.ProtoReflect.Descriptor instead.
func (*FieldQuery) GetField ¶
func (x *FieldQuery) GetField() string
func (*FieldQuery) GetNodeManagerId ¶
func (x *FieldQuery) GetNodeManagerId() string
func (*FieldQuery) GetQuery ¶
func (x *FieldQuery) GetQuery() *Query
func (*FieldQuery) ProtoMessage ¶
func (*FieldQuery) ProtoMessage()
func (*FieldQuery) ProtoReflect ¶
func (x *FieldQuery) ProtoReflect() protoreflect.Message
func (*FieldQuery) Reset ¶
func (x *FieldQuery) Reset()
func (*FieldQuery) String ¶
func (x *FieldQuery) String() string
type Fields ¶
type Fields struct { // One or more fields: regions, tags, name, subscription_id. Fields []string `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty"` // contains filtered or unexported fields }
func (*Fields) Descriptor
deprecated
func (*Fields) ProtoMessage ¶
func (*Fields) ProtoMessage()
func (*Fields) ProtoReflect ¶
func (x *Fields) ProtoReflect() protoreflect.Message
type Id ¶
type Id struct { // UUID for the node manager. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*Id) Descriptor
deprecated
func (*Id) ProtoMessage ¶
func (*Id) ProtoMessage()
func (*Id) ProtoReflect ¶
func (x *Id) ProtoReflect() protoreflect.Message
type Ids ¶
type Ids struct { // List of node manager UUIDs. Ids []*Id `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` // contains filtered or unexported fields }
func (*Ids) Descriptor
deprecated
func (*Ids) ProtoMessage ¶
func (*Ids) ProtoMessage()
func (*Ids) ProtoReflect ¶
func (x *Ids) ProtoReflect() protoreflect.Message
type NodeManager ¶
type NodeManager struct { // UUID for the nodemanager. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // User defined name for the node manager. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // Type of nodemanager (aws-ec2, azure-vm, aws-api, azure-api, gcp). Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` // Use either 'credential_id' OR 'credential_data'. // 'credential_data' will overwrite values in 'credential_id'. // The 'credential_id' is the UUID of credential with the information // you need to connect to aws, azure, or gcp. CredentialId string `protobuf:"bytes,20,opt,name=credential_id,json=credentialId,proto3" json:"credential_id,omitempty"` // List of tag and credential UUID associations for making node managers. // These are ssh, winrm, and sudo creds used to access instances. InstanceCredentials []*CredentialsByTags `protobuf:"bytes,21,rep,name=instance_credentials,json=instanceCredentials,proto3" json:"instance_credentials,omitempty"` // Status of the nodemanager (reachable, unreachable). Status string `protobuf:"bytes,22,opt,name=status,proto3" json:"status,omitempty"` // Account id associated with the nodemanager. AccountId string `protobuf:"bytes,24,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` // Date the nodemanager was created. DateAdded *timestamppb.Timestamp `protobuf:"bytes,25,opt,name=date_added,json=dateAdded,proto3" json:"date_added,omitempty"` // Use either 'credential_data' OR 'credential_id'. // 'credential_data' will overwrite values in 'credential_id'. // Use 'credential_data' when you have not yet created node credentials // and provide credential data (such as AWS_ACCESS_KEY) inline. CredentialData []*query.Kv `protobuf:"bytes,26,rep,name=credential_data,json=credentialData,proto3" json:"credential_data,omitempty"` // contains filtered or unexported fields }
func (*NodeManager) Descriptor
deprecated
func (*NodeManager) Descriptor() ([]byte, []int)
Deprecated: Use NodeManager.ProtoReflect.Descriptor instead.
func (*NodeManager) GetAccountId ¶
func (x *NodeManager) GetAccountId() string
func (*NodeManager) GetCredentialData ¶
func (x *NodeManager) GetCredentialData() []*query.Kv
func (*NodeManager) GetCredentialId ¶
func (x *NodeManager) GetCredentialId() string
func (*NodeManager) GetDateAdded ¶
func (x *NodeManager) GetDateAdded() *timestamppb.Timestamp
func (*NodeManager) GetId ¶
func (x *NodeManager) GetId() string
func (*NodeManager) GetInstanceCredentials ¶
func (x *NodeManager) GetInstanceCredentials() []*CredentialsByTags
func (*NodeManager) GetName ¶
func (x *NodeManager) GetName() string
func (*NodeManager) GetStatus ¶
func (x *NodeManager) GetStatus() string
func (*NodeManager) GetType ¶
func (x *NodeManager) GetType() string
func (*NodeManager) ProtoMessage ¶
func (*NodeManager) ProtoMessage()
func (*NodeManager) ProtoReflect ¶
func (x *NodeManager) ProtoReflect() protoreflect.Message
func (*NodeManager) Reset ¶
func (x *NodeManager) Reset()
func (*NodeManager) String ¶
func (x *NodeManager) String() string
type NodeManagerServiceClient ¶
type NodeManagerServiceClient interface { // Create a Node Manager // // Creates a node manager given a name, credential id *or* credential data, and type. // // Authorization Action: // // “` // “` // //infra:nodeManagers:create Create(ctx context.Context, in *NodeManager, opts ...grpc.CallOption) (*Ids, error) // View a Node Manager // // List the details of a node manager. // // Authorization Action: // // “` // “` // //infra:nodeManagers:get Read(ctx context.Context, in *Id, opts ...grpc.CallOption) (*NodeManager, error) // Update a Node Manager // // Update a node manager's metadata, such as its name, associated credential id, or data. // This is a PUT operation and it overwrites ALL of the existing node manager metadata. Include all fields, because a PUT operation overwrites any missing fields to empty (""). // // Authorization Action: // // “` // “` // //infra:nodeManagers:update Update(ctx context.Context, in *NodeManager, opts ...grpc.CallOption) (*emptypb.Empty, error) // Delete a Node Manager // // Delete a single node manager. This deletes the node manager itself and // reassigns its associated nodes to the Automate node manager. // // Authorization Action: // // “` // “` // //infra:nodeManagers:delete Delete(ctx context.Context, in *Id, opts ...grpc.CallOption) (*emptypb.Empty, error) // Delete a Node Manager and Delete Nodes // // Delete a node manager and all of its associated nodes. // // Authorization Action: // // “` // “` // //infra:nodeManagers:delete DeleteWithNodes(ctx context.Context, in *Id, opts ...grpc.CallOption) (*Ids, error) // Delete a Node Manager and Stop Nodes // // Delete a node manager and update its associated nodes to `stopped`. // // Authorization Action: // // “` // “` // //infra:nodeManagers:delete DeleteWithNodeStateStopped(ctx context.Context, in *Id, opts ...grpc.CallOption) (*emptypb.Empty, error) // Delete a Node Manager and Terminate Nodes // // Delete a node manager and update its associated nodes to `terminated`. // // Authorization Action: // // “` // “` // //infra:nodeManagers:delete DeleteWithNodeStateTerminated(ctx context.Context, in *Id, opts ...grpc.CallOption) (*emptypb.Empty, error) // List all Node Managers // // Returns a list of node managers. // Supports filtering, sorting, and pagination. // // Valid filtering fields: manager_type // // Authorization Action: // // “` // “` // //infra:nodeManagers:list List(ctx context.Context, in *Query, opts ...grpc.CallOption) (*NodeManagers, error) // Search Node Fields // // Searches the available values for a given field across all nodes associated with the nodemanager id. // // Authorization Action: // // “` // “` // //infra:nodeManagers:list SearchNodeFields(ctx context.Context, in *FieldQuery, opts ...grpc.CallOption) (*Fields, error) // Search nodes // // Searches the available nodes for a single node manager by id. // // Authorization Action: // // “` // “` // //infra:nodeManagers:list SearchNodes(ctx context.Context, in *NodeQuery, opts ...grpc.CallOption) (*Nodes, error) // Connect // // Attempts to reach the API for the given nodemanager id to validate the // credentials associated with the nodemanager. // // Authorization Action: // // “` // “` // //infra:nodeManagers:rerun Connect(ctx context.Context, in *Id, opts ...grpc.CallOption) (*ConnectResponse, error) }
NodeManagerServiceClient is the client API for NodeManagerService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewNodeManagerServiceClient ¶
func NewNodeManagerServiceClient(cc grpc.ClientConnInterface) NodeManagerServiceClient
type NodeManagerServiceServer ¶
type NodeManagerServiceServer interface { // Create a Node Manager // // Creates a node manager given a name, credential id *or* credential data, and type. // // Authorization Action: // // “` // “` // //infra:nodeManagers:create Create(context.Context, *NodeManager) (*Ids, error) // View a Node Manager // // List the details of a node manager. // // Authorization Action: // // “` // “` // //infra:nodeManagers:get Read(context.Context, *Id) (*NodeManager, error) // Update a Node Manager // // Update a node manager's metadata, such as its name, associated credential id, or data. // This is a PUT operation and it overwrites ALL of the existing node manager metadata. Include all fields, because a PUT operation overwrites any missing fields to empty (""). // // Authorization Action: // // “` // “` // //infra:nodeManagers:update Update(context.Context, *NodeManager) (*emptypb.Empty, error) // Delete a Node Manager // // Delete a single node manager. This deletes the node manager itself and // reassigns its associated nodes to the Automate node manager. // // Authorization Action: // // “` // “` // //infra:nodeManagers:delete Delete(context.Context, *Id) (*emptypb.Empty, error) // Delete a Node Manager and Delete Nodes // // Delete a node manager and all of its associated nodes. // // Authorization Action: // // “` // “` // //infra:nodeManagers:delete DeleteWithNodes(context.Context, *Id) (*Ids, error) // Delete a Node Manager and Stop Nodes // // Delete a node manager and update its associated nodes to `stopped`. // // Authorization Action: // // “` // “` // //infra:nodeManagers:delete DeleteWithNodeStateStopped(context.Context, *Id) (*emptypb.Empty, error) // Delete a Node Manager and Terminate Nodes // // Delete a node manager and update its associated nodes to `terminated`. // // Authorization Action: // // “` // “` // //infra:nodeManagers:delete DeleteWithNodeStateTerminated(context.Context, *Id) (*emptypb.Empty, error) // List all Node Managers // // Returns a list of node managers. // Supports filtering, sorting, and pagination. // // Valid filtering fields: manager_type // // Authorization Action: // // “` // “` // //infra:nodeManagers:list List(context.Context, *Query) (*NodeManagers, error) // Search Node Fields // // Searches the available values for a given field across all nodes associated with the nodemanager id. // // Authorization Action: // // “` // “` // //infra:nodeManagers:list SearchNodeFields(context.Context, *FieldQuery) (*Fields, error) // Search nodes // // Searches the available nodes for a single node manager by id. // // Authorization Action: // // “` // “` // //infra:nodeManagers:list SearchNodes(context.Context, *NodeQuery) (*Nodes, error) // Connect // // Attempts to reach the API for the given nodemanager id to validate the // credentials associated with the nodemanager. // // Authorization Action: // // “` // “` // //infra:nodeManagers:rerun Connect(context.Context, *Id) (*ConnectResponse, error) }
NodeManagerServiceServer is the server API for NodeManagerService service.
type NodeManagers ¶
type NodeManagers struct { // List of nodemanagers. Managers []*NodeManager `protobuf:"bytes,1,rep,name=managers,proto3" json:"managers,omitempty"` // Total count of nodemanagers. Total int32 `protobuf:"varint,20,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*NodeManagers) Descriptor
deprecated
func (*NodeManagers) Descriptor() ([]byte, []int)
Deprecated: Use NodeManagers.ProtoReflect.Descriptor instead.
func (*NodeManagers) GetManagers ¶
func (x *NodeManagers) GetManagers() []*NodeManager
func (*NodeManagers) GetTotal ¶
func (x *NodeManagers) GetTotal() int32
func (*NodeManagers) ProtoMessage ¶
func (*NodeManagers) ProtoMessage()
func (*NodeManagers) ProtoReflect ¶
func (x *NodeManagers) ProtoReflect() protoreflect.Message
func (*NodeManagers) Reset ¶
func (x *NodeManagers) Reset()
func (*NodeManagers) String ¶
func (x *NodeManagers) String() string
type NodeQuery ¶
type NodeQuery struct { // Valid search filters: manager_type. Query *Query `protobuf:"bytes,20,opt,name=query,proto3" json:"query,omitempty"` // Node manager ID. NodeManagerId string `protobuf:"bytes,21,opt,name=node_manager_id,json=nodeManagerId,proto3" json:"node_manager_id,omitempty"` // contains filtered or unexported fields }
func (*NodeQuery) Descriptor
deprecated
func (*NodeQuery) GetNodeManagerId ¶
func (*NodeQuery) ProtoMessage ¶
func (*NodeQuery) ProtoMessage()
func (*NodeQuery) ProtoReflect ¶
func (x *NodeQuery) ProtoReflect() protoreflect.Message
type Nodes ¶
type Nodes struct { // List of node names matching the request. Nodes []string `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"` // Total count of node names matching the request. Total int32 `protobuf:"varint,20,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*Nodes) Descriptor
deprecated
func (*Nodes) ProtoMessage ¶
func (*Nodes) ProtoMessage()
func (*Nodes) ProtoReflect ¶
func (x *Nodes) ProtoReflect() protoreflect.Message
type Query ¶
type Query struct { // Filters for the query: "manager_type". FilterMap []*query.Filter `protobuf:"bytes,25,rep,name=filter_map,json=filterMap,proto3" json:"filter_map,omitempty"` Order Query_OrderType `protobuf:"varint,21,opt,name=order,proto3,enum=chef.automate.api.nodes.manager.v1.Query_OrderType" json:"order,omitempty"` // Field to use for sorting. // Valid fields are: name, type, status, status_message, date_added. Sort string `protobuf:"bytes,22,opt,name=sort,proto3" json:"sort,omitempty"` // Starting page for the list. For example, if your query returns 100 pages, // and you know you're looking for a node manager somewhere in the middle, // you might want to start on page 50. Page int32 `protobuf:"varint,23,opt,name=page,proto3" json:"page,omitempty"` // Number of results on each page. PerPage int32 `protobuf:"varint,24,opt,name=per_page,json=perPage,proto3" json:"per_page,omitempty"` // contains filtered or unexported fields }
func (*Query) Descriptor
deprecated
func (*Query) GetFilterMap ¶
func (*Query) GetOrder ¶
func (x *Query) GetOrder() Query_OrderType
func (*Query) GetPerPage ¶
func (*Query) ProtoMessage ¶
func (*Query) ProtoMessage()
func (*Query) ProtoReflect ¶
func (x *Query) ProtoReflect() protoreflect.Message
type Query_OrderType ¶
type Query_OrderType int32
Sort the results in ascending or descending order.
const ( Query_ASC Query_OrderType = 0 Query_DESC Query_OrderType = 1 )
func (Query_OrderType) Descriptor ¶
func (Query_OrderType) Descriptor() protoreflect.EnumDescriptor
func (Query_OrderType) Enum ¶
func (x Query_OrderType) Enum() *Query_OrderType
func (Query_OrderType) EnumDescriptor
deprecated
func (Query_OrderType) EnumDescriptor() ([]byte, []int)
Deprecated: Use Query_OrderType.Descriptor instead.
func (Query_OrderType) Number ¶
func (x Query_OrderType) Number() protoreflect.EnumNumber
func (Query_OrderType) String ¶
func (x Query_OrderType) String() string
func (Query_OrderType) Type ¶
func (Query_OrderType) Type() protoreflect.EnumType
type UnimplementedNodeManagerServiceServer ¶
type UnimplementedNodeManagerServiceServer struct { }
UnimplementedNodeManagerServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedNodeManagerServiceServer) Connect ¶
func (*UnimplementedNodeManagerServiceServer) Connect(context.Context, *Id) (*ConnectResponse, error)
func (*UnimplementedNodeManagerServiceServer) Create ¶
func (*UnimplementedNodeManagerServiceServer) Create(context.Context, *NodeManager) (*Ids, error)
func (*UnimplementedNodeManagerServiceServer) DeleteWithNodeStateStopped ¶
func (*UnimplementedNodeManagerServiceServer) DeleteWithNodeStateTerminated ¶
func (*UnimplementedNodeManagerServiceServer) DeleteWithNodes ¶
func (*UnimplementedNodeManagerServiceServer) List ¶
func (*UnimplementedNodeManagerServiceServer) List(context.Context, *Query) (*NodeManagers, error)
func (*UnimplementedNodeManagerServiceServer) Read ¶
func (*UnimplementedNodeManagerServiceServer) Read(context.Context, *Id) (*NodeManager, error)
func (*UnimplementedNodeManagerServiceServer) SearchNodeFields ¶
func (*UnimplementedNodeManagerServiceServer) SearchNodeFields(context.Context, *FieldQuery) (*Fields, error)
func (*UnimplementedNodeManagerServiceServer) SearchNodes ¶
func (*UnimplementedNodeManagerServiceServer) Update ¶
func (*UnimplementedNodeManagerServiceServer) Update(context.Context, *NodeManager) (*emptypb.Empty, error)