import "istio.io/istio/security/pkg/testing/sdsc"
Package sdsc includes a lightweight testing client to interact with SDS.
func ValidateResponse(response *discovery.DiscoveryResponse) error
ValidateResponse validates the SDS response. TODO(incfly): add more check around cert.
type Client struct {
// contains filtered or unexported fields
}
Client is a lightweight client for testing secret discovery service server.
func NewClient(opt ClientOptions) (*Client, error)
NewClient returns a sds client for testing.
Send sends a request to the agent.
Start starts sds client to receive the scecret updates from the server.
Stop stops the sds client.
WaitForUpdate blocks until the error occurs or updates are pushed from the sds server.
type ClientOptions struct { // unix://var/run/sds/, localhost:15000 // https://github.com/grpc/grpc/blob/master/doc/naming.md#name-syntax ServerAddress string }
ClientOptions contains the options for the SDS testing.
Package sdsc imports 15 packages (graph). Updated 2020-11-14. Refresh now. Tools for package owners.