Documentation ¶
Index ¶
- Variables
- func Serve(conf config.Compliance, grpcBinding string) error
- type NodeManagerMock
- func (nm *NodeManagerMock) ChangeNodeState(ctx context.Context, in *manager.NodeState, opts ...grpc.CallOption) (*manager.ChangeNodeStateResponse, error)
- func (nm *NodeManagerMock) Connect(ctx context.Context, in *manager.NodeManager, opts ...grpc.CallOption) (*empty.Empty, error)
- func (nm *NodeManagerMock) ConnectManager(ctx context.Context, in *manager.Id, opts ...grpc.CallOption) (*empty.Empty, error)
- func (nm *NodeManagerMock) Create(ctx context.Context, in *manager.NodeManager, opts ...grpc.CallOption) (*manager.Ids, error)
- func (nm *NodeManagerMock) Delete(ctx context.Context, in *manager.Id, opts ...grpc.CallOption) (*empty.Empty, error)
- func (nm *NodeManagerMock) DeleteWithNodeStateStopped(ctx context.Context, in *manager.Id, opts ...grpc.CallOption) (*empty.Empty, error)
- func (nm *NodeManagerMock) DeleteWithNodeStateTerminated(ctx context.Context, in *manager.Id, opts ...grpc.CallOption) (*empty.Empty, error)
- func (nm *NodeManagerMock) DeleteWithNodes(ctx context.Context, in *manager.Id, opts ...grpc.CallOption) (*manager.Ids, error)
- func (nm *NodeManagerMock) GetNodeWithSecrets(ctx context.Context, in *manager.Id, opts ...grpc.CallOption) (*nodes.Node, error)
- func (nm *NodeManagerMock) List(ctx context.Context, in *manager.Query, opts ...grpc.CallOption) (*manager.NodeManagers, error)
- func (nm *NodeManagerMock) ProcessNode(ctx context.Context, in *manager.NodeMetadata, opts ...grpc.CallOption) (*manager.ProcessNodeResponse, error)
- func (nm *NodeManagerMock) Read(ctx context.Context, in *manager.Id, opts ...grpc.CallOption) (*manager.NodeManager, error)
- func (nm *NodeManagerMock) SearchManagerNodes(ctx context.Context, in *manager.NodeQuery, opts ...grpc.CallOption) (*manager.ManagerNodes, error)
- func (nm *NodeManagerMock) SearchNodeFields(ctx context.Context, in *manager.FieldQuery, opts ...grpc.CallOption) (*manager.Fields, error)
- func (nm *NodeManagerMock) SearchNodes(ctx context.Context, in *manager.NodeQuery, opts ...grpc.CallOption) (*manager.Nodes, error)
- func (nm *NodeManagerMock) Update(ctx context.Context, in *manager.NodeManager, opts ...grpc.CallOption) (*empty.Empty, error)
- type NotifierMock
- type ServiceInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var SERVICE_STATE serviceState
Functions ¶
Types ¶
type NodeManagerMock ¶
type NodeManagerMock struct { }
func (*NodeManagerMock) ChangeNodeState ¶
func (nm *NodeManagerMock) ChangeNodeState(ctx context.Context, in *manager.NodeState, opts ...grpc.CallOption) (*manager.ChangeNodeStateResponse, error)
func (*NodeManagerMock) Connect ¶
func (nm *NodeManagerMock) Connect(ctx context.Context, in *manager.NodeManager, opts ...grpc.CallOption) (*empty.Empty, error)
func (*NodeManagerMock) ConnectManager ¶
func (nm *NodeManagerMock) ConnectManager(ctx context.Context, in *manager.Id, opts ...grpc.CallOption) (*empty.Empty, error)
func (*NodeManagerMock) Create ¶
func (nm *NodeManagerMock) Create(ctx context.Context, in *manager.NodeManager, opts ...grpc.CallOption) (*manager.Ids, error)
func (*NodeManagerMock) Delete ¶
func (nm *NodeManagerMock) Delete(ctx context.Context, in *manager.Id, opts ...grpc.CallOption) (*empty.Empty, error)
func (*NodeManagerMock) DeleteWithNodeStateStopped ¶
func (nm *NodeManagerMock) DeleteWithNodeStateStopped(ctx context.Context, in *manager.Id, opts ...grpc.CallOption) (*empty.Empty, error)
func (*NodeManagerMock) DeleteWithNodeStateTerminated ¶
func (nm *NodeManagerMock) DeleteWithNodeStateTerminated(ctx context.Context, in *manager.Id, opts ...grpc.CallOption) (*empty.Empty, error)
func (*NodeManagerMock) DeleteWithNodes ¶
func (nm *NodeManagerMock) DeleteWithNodes(ctx context.Context, in *manager.Id, opts ...grpc.CallOption) (*manager.Ids, error)
func (*NodeManagerMock) GetNodeWithSecrets ¶
func (nm *NodeManagerMock) GetNodeWithSecrets(ctx context.Context, in *manager.Id, opts ...grpc.CallOption) (*nodes.Node, error)
func (*NodeManagerMock) List ¶
func (nm *NodeManagerMock) List(ctx context.Context, in *manager.Query, opts ...grpc.CallOption) (*manager.NodeManagers, error)
func (*NodeManagerMock) ProcessNode ¶
func (nm *NodeManagerMock) ProcessNode(ctx context.Context, in *manager.NodeMetadata, opts ...grpc.CallOption) (*manager.ProcessNodeResponse, error)
func (*NodeManagerMock) Read ¶
func (nm *NodeManagerMock) Read(ctx context.Context, in *manager.Id, opts ...grpc.CallOption) (*manager.NodeManager, error)
func (*NodeManagerMock) SearchManagerNodes ¶
func (nm *NodeManagerMock) SearchManagerNodes(ctx context.Context, in *manager.NodeQuery, opts ...grpc.CallOption) (*manager.ManagerNodes, error)
func (*NodeManagerMock) SearchNodeFields ¶
func (nm *NodeManagerMock) SearchNodeFields(ctx context.Context, in *manager.FieldQuery, opts ...grpc.CallOption) (*manager.Fields, error)
func (*NodeManagerMock) SearchNodes ¶
func (nm *NodeManagerMock) SearchNodes(ctx context.Context, in *manager.NodeQuery, opts ...grpc.CallOption) (*manager.Nodes, error)
func (*NodeManagerMock) Update ¶
func (nm *NodeManagerMock) Update(ctx context.Context, in *manager.NodeManager, opts ...grpc.CallOption) (*empty.Empty, error)
type NotifierMock ¶
type NotifierMock struct { }
func (*NotifierMock) QueueSize ¶
func (n *NotifierMock) QueueSize() int
func (*NotifierMock) Send ¶
func (n *NotifierMock) Send(context.Context, *notifications.Event)
type ServiceInfo ¶
type ServiceInfo struct { HostBind string Port int ServerBind string // contains filtered or unexported fields }
ServiceInfo holds service listen info
func NewServiceConfig ¶
func NewServiceConfig(cfg *config.Compliance, connFactory *secureconn.Factory) *ServiceInfo
NewServiceConfig returns a ServiceInfo instance
func (*ServiceInfo) ProfileTarHandler ¶
func (conf *ServiceInfo) ProfileTarHandler(w http.ResponseWriter, r *http.Request)
ProfileTarHandler is the http handler for profile tarballs, used by the inspec-agent for executing scans
Directories ¶
Path | Synopsis |
---|---|
api
|
|
automate-feed/server
Author:: Gina Peers <gpeers@chef.io>, Salim Afiune <afiune@chef.io> Copyright:: Copyright 2018, Chef Software Inc.
|
Author:: Gina Peers <gpeers@chef.io>, Salim Afiune <afiune@chef.io> Copyright:: Copyright 2018, Chef Software Inc. |
cmd
|
|
dao
|
|
examples
|
|
Package ingest is a reverse proxy.
|
Package ingest is a reverse proxy. |
inspec-agent
|
|
profiles
|
|
Click to show internal directories.
Click to hide internal directories.