Documentation ¶
Index ¶
- type Applicator
- type GrpcApplicator
- func (c *GrpcApplicator) CacheStatus(ctx context.Context, target string, req *netwdevpb.CacheStatusRequest) (*netwdevpb.CacheStatusReply, error)
- func (c *GrpcApplicator) DeRegister(ctx context.Context, target string, req *netwdevpb.RegistrationRequest) (*netwdevpb.RegistrationReply, error)
- func (c *GrpcApplicator) Register(ctx context.Context, target string, req *netwdevpb.RegistrationRequest) (*netwdevpb.RegistrationReply, error)
- type GrpcApplicatorOption
- func WithInsecure(b bool) GrpcApplicatorOption
- func WithLogger(log logging.Logger) GrpcApplicatorOption
- func WithPassword(password string) GrpcApplicatorOption
- func WithProxy(proxy bool) GrpcApplicatorOption
- func WithSkipVerify(b bool) GrpcApplicatorOption
- func WithTLS(noTLS bool, tlsca, tlscert, tlskey string) GrpcApplicatorOption
- func WithTarget(target string) GrpcApplicatorOption
- func WithUsername(username string) GrpcApplicatorOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Applicator ¶
type Applicator interface { Register(ctx context.Context, target string, req *netwdevpb.RegistrationRequest) (*netwdevpb.RegistrationReply, error) DeRegister(ctx context.Context, target string, req *netwdevpb.RegistrationRequest) (*netwdevpb.RegistrationReply, error) CacheStatus(ctx context.Context, target string, req *netwdevpb.CacheStatusRequest) (*netwdevpb.CacheStatusReply, error) }
An Applicator brings up or down a set of resources in the API server
type GrpcApplicator ¶
type GrpcApplicator struct { Username string Password string Proxy bool NoTLS bool TLSCA string TLSCert string TLSKey string SkipVerify bool Insecure bool Target string MaxMsgSize int // contains filtered or unexported fields }
func NewClientApplicator ¶
func NewClientApplicator(opts ...GrpcApplicatorOption) *GrpcApplicator
NewAPIEstablisher creates a new APIEstablisher.
func (*GrpcApplicator) CacheStatus ¶
func (c *GrpcApplicator) CacheStatus(ctx context.Context, target string, req *netwdevpb.CacheStatusRequest) (*netwdevpb.CacheStatusReply, error)
func (*GrpcApplicator) DeRegister ¶
func (c *GrpcApplicator) DeRegister(ctx context.Context, target string, req *netwdevpb.RegistrationRequest) (*netwdevpb.RegistrationReply, error)
func (*GrpcApplicator) Register ¶
func (c *GrpcApplicator) Register(ctx context.Context, target string, req *netwdevpb.RegistrationRequest) (*netwdevpb.RegistrationReply, error)
type GrpcApplicatorOption ¶
type GrpcApplicatorOption func(*GrpcApplicator)
ClientApplicatorOption is used to configure the ClientApplicator.
func WithInsecure ¶
func WithInsecure(b bool) GrpcApplicatorOption
WithInsecure specifies insecure grpc transport
func WithLogger ¶
func WithLogger(log logging.Logger) GrpcApplicatorOption
WithLogger specifies how the ClientApplicator should log messages.
func WithPassword ¶
func WithPassword(password string) GrpcApplicatorOption
WithPassword specifies the password parameters
func WithProxy ¶
func WithProxy(proxy bool) GrpcApplicatorOption
WithProxy specifies the proxy parameters
func WithSkipVerify ¶
func WithSkipVerify(b bool) GrpcApplicatorOption
WithSkipVerify specifies skip verify grpc transport
func WithTLS ¶
func WithTLS(noTLS bool, tlsca, tlscert, tlskey string) GrpcApplicatorOption
WithTLS specifies the tls parameters
func WithTarget ¶
func WithTarget(target string) GrpcApplicatorOption
WithLogger specifies how the Reconciler should log messages.
func WithUsername ¶
func WithUsername(username string) GrpcApplicatorOption
WithUsername specifies the username parameters
Click to show internal directories.
Click to hide internal directories.