Skip to content

Commit

Permalink
Add comment to Disconnect
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Zunker <[email protected]>
  • Loading branch information
czunker committed Sep 5, 2023
1 parent 0b5fa89 commit be15df3
Show file tree
Hide file tree
Showing 21 changed files with 64 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"errors"
"strconv"

"google.golang.org/protobuf/types/known/emptypb"
"google.golang.org/protobuf/types/known/emptypb"
"go.mondoo.com/cnquery/llx"
"go.mondoo.com/cnquery/providers-sdk/v1/inventory"
"go.mondoo.com/cnquery/providers-sdk/v1/plugin"
Expand Down Expand Up @@ -70,6 +70,9 @@ func (s *Service) Connect(req *plugin.ConnectReq, callback plugin.ProviderCallba
}, nil
}

// Disconnect is automatically called when the shell closes.
// It is not necessary to implement this method.
// If you want to do some cleanup, you can do it here.
func (s *Service) Disconnect(req *emptypb.Empty) error {
return nil
}
Expand Down
3 changes: 3 additions & 0 deletions providers/arista/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ func (s *Service) Connect(req *plugin.ConnectReq, callback plugin.ProviderCallba
}, nil
}

// Disconnect is automatically called when the shell closes.
// It is not necessary to implement this method.
// If you want to do some cleanup, you can do it here.
func (s *Service) Disconnect(req *emptypb.Empty) error {
return nil
}
Expand Down
3 changes: 3 additions & 0 deletions providers/azure/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ func (s *Service) Connect(req *plugin.ConnectReq, callback plugin.ProviderCallba
}, nil
}

// Disconnect is automatically called when the shell closes.
// It is not necessary to implement this method.
// If you want to do some cleanup, you can do it here.
func (s *Service) Disconnect(req *emptypb.Empty) error {
return nil
}
Expand Down
3 changes: 3 additions & 0 deletions providers/core/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ func (s *Service) Connect(req *plugin.ConnectReq, callback plugin.ProviderCallba
}, nil
}

// Disconnect is automatically called when the shell closes.
// It is not necessary to implement this method.
// If you want to do some cleanup, you can do it here.
func (s *Service) Disconnect(req *emptypb.Empty) error {
return nil
}
Expand Down
3 changes: 3 additions & 0 deletions providers/equinix/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ func (s *Service) Connect(req *plugin.ConnectReq, callback plugin.ProviderCallba
}, nil
}

// Disconnect is automatically called when the shell closes.
// It is not necessary to implement this method.
// If you want to do some cleanup, you can do it here.
func (s *Service) Disconnect(req *emptypb.Empty) error {
return nil
}
Expand Down
3 changes: 3 additions & 0 deletions providers/gcp/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@ func (s *Service) Connect(req *plugin.ConnectReq, callback plugin.ProviderCallba
}, nil
}

// Disconnect is automatically called when the shell closes.
// It is not necessary to implement this method.
// If you want to do some cleanup, you can do it here.
func (s *Service) Disconnect(req *emptypb.Empty) error {
return nil
}
Expand Down
3 changes: 3 additions & 0 deletions providers/github/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ func (s *Service) Connect(req *plugin.ConnectReq, callback plugin.ProviderCallba
}, nil
}

// Disconnect is automatically called when the shell closes.
// It is not necessary to implement this method.
// If you want to do some cleanup, you can do it here.
func (s *Service) Disconnect(req *emptypb.Empty) error {
return nil
}
Expand Down
3 changes: 3 additions & 0 deletions providers/gitlab/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ func (s *Service) Connect(req *plugin.ConnectReq, callback plugin.ProviderCallba
}, nil
}

// Disconnect is automatically called when the shell closes.
// It is not necessary to implement this method.
// If you want to do some cleanup, you can do it here.
func (s *Service) Disconnect(req *emptypb.Empty) error {
return nil
}
Expand Down
3 changes: 3 additions & 0 deletions providers/google-workspace/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,9 @@ func (s *Service) Connect(req *plugin.ConnectReq, callback plugin.ProviderCallba
}, nil
}

// Disconnect is automatically called when the shell closes.
// It is not necessary to implement this method.
// If you want to do some cleanup, you can do it here.
func (s *Service) Disconnect(req *emptypb.Empty) error {
return nil
}
Expand Down
3 changes: 3 additions & 0 deletions providers/ipmi/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ func (s *Service) Connect(req *plugin.ConnectReq, callback plugin.ProviderCallba
}, nil
}

// Disconnect is automatically called when the shell closes.
// It is not necessary to implement this method.
// If you want to do some cleanup, you can do it here.
func (s *Service) Disconnect(req *emptypb.Empty) error {
return nil
}
Expand Down
3 changes: 3 additions & 0 deletions providers/k8s/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ func (s *Service) Connect(req *plugin.ConnectReq, callback plugin.ProviderCallba
}, nil
}

// Disconnect is automatically called when the shell closes.
// It is not necessary to implement this method.
// If you want to do some cleanup, you can do it here.
func (s *Service) Disconnect(req *emptypb.Empty) error {
return nil
}
Expand Down
3 changes: 3 additions & 0 deletions providers/ms365/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ func (s *Service) Connect(req *plugin.ConnectReq, callback plugin.ProviderCallba
}, nil
}

// Disconnect is automatically called when the shell closes.
// It is not necessary to implement this method.
// If you want to do some cleanup, you can do it here.
func (s *Service) Disconnect(req *emptypb.Empty) error {
return nil
}
Expand Down
3 changes: 3 additions & 0 deletions providers/network/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ func (s *Service) Connect(req *plugin.ConnectReq, callback plugin.ProviderCallba
}, nil
}

// Disconnect is automatically called when the shell closes.
// It is not necessary to implement this method.
// If you want to do some cleanup, you can do it here.
func (s *Service) Disconnect(req *emptypb.Empty) error {
return nil
}
Expand Down
3 changes: 3 additions & 0 deletions providers/oci/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ func (s *Service) Connect(req *plugin.ConnectReq, callback plugin.ProviderCallba
}, nil
}

// Disconnect is automatically called when the shell closes.
// It is not necessary to implement this method.
// If you want to do some cleanup, you can do it here.
func (s *Service) Disconnect(req *emptypb.Empty) error {
return nil
}
Expand Down
3 changes: 3 additions & 0 deletions providers/okta/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ func (s *Service) Connect(req *plugin.ConnectReq, callback plugin.ProviderCallba
}, nil
}

// Disconnect is automatically called when the shell closes.
// It is not necessary to implement this method.
// If you want to do some cleanup, you can do it here.
func (s *Service) Disconnect(req *emptypb.Empty) error {
return nil
}
Expand Down
3 changes: 3 additions & 0 deletions providers/opcua/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ func (s *Service) Connect(req *plugin.ConnectReq, callback plugin.ProviderCallba
}, nil
}

// Disconnect is automatically called when the shell closes.
// It is not necessary to implement this method.
// If you want to do some cleanup, you can do it here.
func (s *Service) Disconnect(req *emptypb.Empty) error {
return nil
}
Expand Down
3 changes: 3 additions & 0 deletions providers/os/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,9 @@ func (s *Service) Connect(req *plugin.ConnectReq, callback plugin.ProviderCallba
}, nil
}

// Disconnect is automatically called when the shell closes.
// It is not necessary to implement this method.
// If you want to do some cleanup, you can do it here.
func (s *Service) Disconnect(req *emptypb.Empty) error {
return nil
}
Expand Down
3 changes: 3 additions & 0 deletions providers/slack/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ func (s *Service) Connect(req *plugin.ConnectReq, callback plugin.ProviderCallba
}, nil
}

// Disconnect is automatically called when the shell closes.
// It is not necessary to implement this method.
// If you want to do some cleanup, you can do it here.
func (s *Service) Disconnect(req *emptypb.Empty) error {
return nil
}
Expand Down
3 changes: 3 additions & 0 deletions providers/terraform/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ func (s *Service) Connect(req *plugin.ConnectReq, callback plugin.ProviderCallba
}, nil
}

// Disconnect is automatically called when the shell closes.
// It is not necessary to implement this method.
// If you want to do some cleanup, you can do it here.
func (s *Service) Disconnect(req *emptypb.Empty) error {
return nil
}
Expand Down
3 changes: 3 additions & 0 deletions providers/vcd/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ func (s *Service) Connect(req *plugin.ConnectReq, callback plugin.ProviderCallba
}, nil
}

// Disconnect is automatically called when the shell closes.
// It is not necessary to implement this method.
// If you want to do some cleanup, you can do it here.
func (s *Service) Disconnect(req *emptypb.Empty) error {
return nil
}
Expand Down
3 changes: 3 additions & 0 deletions providers/vsphere/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ func (s *Service) Connect(req *plugin.ConnectReq, callback plugin.ProviderCallba
}, nil
}

// Disconnect is automatically called when the shell closes.
// It is not necessary to implement this method.
// If you want to do some cleanup, you can do it here.
func (s *Service) Disconnect(req *emptypb.Empty) error {
return nil
}
Expand Down

0 comments on commit be15df3

Please sign in to comment.