github.com/aporeto-inc/trireme-lib@v10.358.0+incompatible/controller/internal/enforcer/secretsproxy/secretsproxy_windows.go (about)

     1  // +build windows
     2  
     3  package secretsproxy
     4  
     5  import (
     6  	"context"
     7  
     8  	"go.aporeto.io/trireme-lib/controller/pkg/fqconfig"
     9  	"go.aporeto.io/trireme-lib/controller/pkg/secrets"
    10  	"go.aporeto.io/trireme-lib/policy"
    11  )
    12  
    13  // SecretsProxy holds all state information for applying policy
    14  // in the secrets socket API.
    15  type SecretsProxy struct {
    16  }
    17  
    18  // NewSecretsProxy creates a new secrets proxy.
    19  func NewSecretsProxy() *SecretsProxy {
    20  	return &SecretsProxy{}
    21  }
    22  
    23  // Run implements the run method of the CtrlInterface. It starts the proxy
    24  // server and initializes the data structures.
    25  func (s *SecretsProxy) Run(ctx context.Context) error {
    26  	return nil
    27  }
    28  
    29  // Enforce implements the corresponding interface of enforcers.
    30  func (s *SecretsProxy) Enforce(puInfo *policy.PUInfo) error {
    31  	return nil
    32  }
    33  
    34  // Unenforce implements the corresponding interface of the enforcers.
    35  func (s *SecretsProxy) Unenforce(contextID string) error {
    36  	return nil
    37  }
    38  
    39  // GetFilterQueue is a stub for TCP proxy
    40  func (s *SecretsProxy) GetFilterQueue() *fqconfig.FilterQueue {
    41  	return nil
    42  }
    43  
    44  // UpdateSecrets updates the secrets of running enforcers managed by trireme. Remote enforcers will
    45  // get the secret updates with the next policy push.
    46  func (s *SecretsProxy) UpdateSecrets(secret secrets.Secrets) error {
    47  	return nil
    48  }