dbplugin

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2019 License: MPL-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrPluginShutdown = errors.New("plugin shutdown")
)

Functions

func RegisterDatabaseServer added in v0.9.1

func RegisterDatabaseServer(s *grpc.Server, srv DatabaseServer)

func Serve

func Serve(db Database, tlsProvider func() (*tls.Config, error))

Serve is called from within a plugin and wraps the provided Database implementation in a databasePluginRPCServer object and starts a RPC server.

func ServeConfig added in v0.9.1

func ServeConfig(db Database, tlsProvider func() (*tls.Config, error)) *plugin.ServeConfig

Types

type CreateUserRequest

type CreateUserRequest struct {
	Statements           *Statements          `protobuf:"bytes,1,opt,name=statements,proto3" json:"statements,omitempty"`
	UsernameConfig       *UsernameConfig      `protobuf:"bytes,2,opt,name=username_config,json=usernameConfig,proto3" json:"username_config,omitempty"`
	Expiration           *timestamp.Timestamp `protobuf:"bytes,3,opt,name=expiration,proto3" json:"expiration,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*CreateUserRequest) Descriptor added in v0.9.1

func (*CreateUserRequest) Descriptor() ([]byte, []int)

func (*CreateUserRequest) GetExpiration added in v0.9.1

func (m *CreateUserRequest) GetExpiration() *timestamp.Timestamp

func (*CreateUserRequest) GetStatements added in v0.9.1

func (m *CreateUserRequest) GetStatements() *Statements

func (*CreateUserRequest) GetUsernameConfig added in v0.9.1

func (m *CreateUserRequest) GetUsernameConfig() *UsernameConfig

func (*CreateUserRequest) ProtoMessage added in v0.9.1

func (*CreateUserRequest) ProtoMessage()

func (*CreateUserRequest) Reset added in v0.9.1

func (m *CreateUserRequest) Reset()

func (*CreateUserRequest) String added in v0.9.1

func (m *CreateUserRequest) String() string

func (*CreateUserRequest) XXX_DiscardUnknown added in v0.10.2

func (m *CreateUserRequest) XXX_DiscardUnknown()

func (*CreateUserRequest) XXX_Marshal added in v0.10.2

func (m *CreateUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateUserRequest) XXX_Merge added in v0.10.2

func (m *CreateUserRequest) XXX_Merge(src proto.Message)

func (*CreateUserRequest) XXX_Size added in v0.10.2

func (m *CreateUserRequest) XXX_Size() int

func (*CreateUserRequest) XXX_Unmarshal added in v0.10.2

func (m *CreateUserRequest) XXX_Unmarshal(b []byte) error

type CreateUserResponse

type CreateUserResponse struct {
	Username             string   `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Password             string   `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CreateUserResponse) Descriptor added in v0.9.1

func (*CreateUserResponse) Descriptor() ([]byte, []int)

func (*CreateUserResponse) GetPassword added in v0.9.1

func (m *CreateUserResponse) GetPassword() string

func (*CreateUserResponse) GetUsername added in v0.9.1

func (m *CreateUserResponse) GetUsername() string

func (*CreateUserResponse) ProtoMessage added in v0.9.1

func (*CreateUserResponse) ProtoMessage()

func (*CreateUserResponse) Reset added in v0.9.1

func (m *CreateUserResponse) Reset()

func (*CreateUserResponse) String added in v0.9.1

func (m *CreateUserResponse) String() string

func (*CreateUserResponse) XXX_DiscardUnknown added in v0.10.2

func (m *CreateUserResponse) XXX_DiscardUnknown()

func (*CreateUserResponse) XXX_Marshal added in v0.10.2

func (m *CreateUserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateUserResponse) XXX_Merge added in v0.10.2

func (m *CreateUserResponse) XXX_Merge(src proto.Message)

func (*CreateUserResponse) XXX_Size added in v0.10.2

func (m *CreateUserResponse) XXX_Size() int

func (*CreateUserResponse) XXX_Unmarshal added in v0.10.2

func (m *CreateUserResponse) XXX_Unmarshal(b []byte) error

type Database

type Database interface {
	Type() (string, error)
	CreateUser(ctx context.Context, statements Statements, usernameConfig UsernameConfig, expiration time.Time) (username string, password string, err error)
	RenewUser(ctx context.Context, statements Statements, username string, expiration time.Time) error
	RevokeUser(ctx context.Context, statements Statements, username string) error

	RotateRootCredentials(ctx context.Context, statements []string) (config map[string]interface{}, err error)

	Init(ctx context.Context, config map[string]interface{}, verifyConnection bool) (saveConfig map[string]interface{}, err error)
	Close() error

	// DEPRECATED, will be removed in 0.13
	Initialize(ctx context.Context, config map[string]interface{}, verifyConnection bool) (err error)
}

Database is the interface that all database objects must implement.

func NewPluginClient added in v1.0.0

func NewPluginClient(ctx context.Context, sys pluginutil.RunnerUtil, pluginRunner *pluginutil.PluginRunner, logger log.Logger, isMetadataMode bool) (Database, error)

NewPluginClient returns a databaseRPCClient with a connection to a running plugin. The client is wrapped in a DatabasePluginClient object to ensure the plugin is killed on call of Close().

func PluginFactory

func PluginFactory(ctx context.Context, pluginName string, sys pluginutil.LookRunnerUtil, logger log.Logger) (Database, error)

PluginFactory is used to build plugin database types. It wraps the database object in a logging and metrics middleware.

type DatabaseClient added in v0.9.1

type DatabaseClient interface {
	Type(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*TypeResponse, error)
	CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*CreateUserResponse, error)
	RenewUser(ctx context.Context, in *RenewUserRequest, opts ...grpc.CallOption) (*Empty, error)
	RevokeUser(ctx context.Context, in *RevokeUserRequest, opts ...grpc.CallOption) (*Empty, error)
	RotateRootCredentials(ctx context.Context, in *RotateRootCredentialsRequest, opts ...grpc.CallOption) (*RotateRootCredentialsResponse, error)
	Init(ctx context.Context, in *InitRequest, opts ...grpc.CallOption) (*InitResponse, error)
	Close(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
	Initialize(ctx context.Context, in *InitializeRequest, opts ...grpc.CallOption) (*Empty, error)
}

DatabaseClient is the client API for Database service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewDatabaseClient added in v0.9.1

func NewDatabaseClient(cc *grpc.ClientConn) DatabaseClient

type DatabaseErrorSanitizerMiddleware added in v0.10.0

type DatabaseErrorSanitizerMiddleware struct {
	// contains filtered or unexported fields
}

DatabaseErrorSanitizerMiddleware wraps an implementation of Databases and sanitizes returned error messages

func NewDatabaseErrorSanitizerMiddleware added in v0.10.0

func NewDatabaseErrorSanitizerMiddleware(next Database, secretsFn func() map[string]interface{}) *DatabaseErrorSanitizerMiddleware

func (*DatabaseErrorSanitizerMiddleware) Close added in v0.10.0

func (mw *DatabaseErrorSanitizerMiddleware) Close() (err error)

func (*DatabaseErrorSanitizerMiddleware) CreateUser added in v0.10.0

func (mw *DatabaseErrorSanitizerMiddleware) CreateUser(ctx context.Context, statements Statements, usernameConfig UsernameConfig, expiration time.Time) (username string, password string, err error)

func (*DatabaseErrorSanitizerMiddleware) Init added in v0.10.0

func (mw *DatabaseErrorSanitizerMiddleware) Init(ctx context.Context, conf map[string]interface{}, verifyConnection bool) (saveConf map[string]interface{}, err error)

func (*DatabaseErrorSanitizerMiddleware) Initialize added in v0.10.0

func (mw *DatabaseErrorSanitizerMiddleware) Initialize(ctx context.Context, conf map[string]interface{}, verifyConnection bool) error

func (*DatabaseErrorSanitizerMiddleware) RenewUser added in v0.10.0

func (mw *DatabaseErrorSanitizerMiddleware) RenewUser(ctx context.Context, statements Statements, username string, expiration time.Time) (err error)

func (*DatabaseErrorSanitizerMiddleware) RevokeUser added in v0.10.0

func (mw *DatabaseErrorSanitizerMiddleware) RevokeUser(ctx context.Context, statements Statements, username string) (err error)

func (*DatabaseErrorSanitizerMiddleware) RotateRootCredentials added in v0.10.0

func (mw *DatabaseErrorSanitizerMiddleware) RotateRootCredentials(ctx context.Context, statements []string) (conf map[string]interface{}, err error)

func (*DatabaseErrorSanitizerMiddleware) Type added in v0.10.0

type DatabasePluginClient

type DatabasePluginClient struct {
	sync.Mutex

	Database
	// contains filtered or unexported fields
}

DatabasePluginClient embeds a databasePluginRPCClient and wraps it's Close method to also call Kill() on the plugin.Client.

func (*DatabasePluginClient) Close

func (dc *DatabasePluginClient) Close() error

This wraps the Close call and ensures we both close the database connection and kill the plugin.

type DatabaseServer added in v0.9.1

DatabaseServer is the server API for Database service.

type Empty added in v0.9.1

type Empty struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Empty) Descriptor added in v0.9.1

func (*Empty) Descriptor() ([]byte, []int)

func (*Empty) ProtoMessage added in v0.9.1

func (*Empty) ProtoMessage()

func (*Empty) Reset added in v0.9.1

func (m *Empty) Reset()

func (*Empty) String added in v0.9.1

func (m *Empty) String() string

func (*Empty) XXX_DiscardUnknown added in v0.10.2

func (m *Empty) XXX_DiscardUnknown()

func (*Empty) XXX_Marshal added in v0.10.2

func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Empty) XXX_Merge added in v0.10.2

func (m *Empty) XXX_Merge(src proto.Message)

func (*Empty) XXX_Size added in v0.10.2

func (m *Empty) XXX_Size() int

func (*Empty) XXX_Unmarshal added in v0.10.2

func (m *Empty) XXX_Unmarshal(b []byte) error

type GRPCDatabasePlugin added in v0.11.4

type GRPCDatabasePlugin struct {
	Impl Database

	// Embeding this will disable the netRPC protocol
	plugin.NetRPCUnsupportedPlugin
}

GRPCDatabasePlugin is the plugin.Plugin implementation that only supports GRPC transport

func (GRPCDatabasePlugin) GRPCClient added in v0.11.4

func (GRPCDatabasePlugin) GRPCClient(doneCtx context.Context, _ *plugin.GRPCBroker, c *grpc.ClientConn) (interface{}, error)

func (GRPCDatabasePlugin) GRPCServer added in v0.11.4

func (d GRPCDatabasePlugin) GRPCServer(_ *plugin.GRPCBroker, s *grpc.Server) error

type InitRequest added in v0.10.0

type InitRequest struct {
	Config               []byte   `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
	VerifyConnection     bool     `protobuf:"varint,2,opt,name=verify_connection,json=verifyConnection,proto3" json:"verify_connection,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*InitRequest) Descriptor added in v0.10.0

func (*InitRequest) Descriptor() ([]byte, []int)

func (*InitRequest) GetConfig added in v0.10.0

func (m *InitRequest) GetConfig() []byte

func (*InitRequest) GetVerifyConnection added in v0.10.0

func (m *InitRequest) GetVerifyConnection() bool

func (*InitRequest) ProtoMessage added in v0.10.0

func (*InitRequest) ProtoMessage()

func (*InitRequest) Reset added in v0.10.0

func (m *InitRequest) Reset()

func (*InitRequest) String added in v0.10.0

func (m *InitRequest) String() string

func (*InitRequest) XXX_DiscardUnknown added in v0.10.2

func (m *InitRequest) XXX_DiscardUnknown()

func (*InitRequest) XXX_Marshal added in v0.10.2

func (m *InitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InitRequest) XXX_Merge added in v0.10.2

func (m *InitRequest) XXX_Merge(src proto.Message)

func (*InitRequest) XXX_Size added in v0.10.2

func (m *InitRequest) XXX_Size() int

func (*InitRequest) XXX_Unmarshal added in v0.10.2

func (m *InitRequest) XXX_Unmarshal(b []byte) error

type InitResponse added in v0.10.0

type InitResponse struct {
	Config               []byte   `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*InitResponse) Descriptor added in v0.10.0

func (*InitResponse) Descriptor() ([]byte, []int)

func (*InitResponse) GetConfig added in v0.10.0

func (m *InitResponse) GetConfig() []byte

func (*InitResponse) ProtoMessage added in v0.10.0

func (*InitResponse) ProtoMessage()

func (*InitResponse) Reset added in v0.10.0

func (m *InitResponse) Reset()

func (*InitResponse) String added in v0.10.0

func (m *InitResponse) String() string

func (*InitResponse) XXX_DiscardUnknown added in v0.10.2

func (m *InitResponse) XXX_DiscardUnknown()

func (*InitResponse) XXX_Marshal added in v0.10.2

func (m *InitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InitResponse) XXX_Merge added in v0.10.2

func (m *InitResponse) XXX_Merge(src proto.Message)

func (*InitResponse) XXX_Size added in v0.10.2

func (m *InitResponse) XXX_Size() int

func (*InitResponse) XXX_Unmarshal added in v0.10.2

func (m *InitResponse) XXX_Unmarshal(b []byte) error

type InitializeRequest deprecated

type InitializeRequest struct {
	Config               []byte   `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
	VerifyConnection     bool     `protobuf:"varint,2,opt,name=verify_connection,json=verifyConnection,proto3" json:"verify_connection,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Deprecated: Do not use.

func (*InitializeRequest) Descriptor added in v0.9.1

func (*InitializeRequest) Descriptor() ([]byte, []int)

func (*InitializeRequest) GetConfig added in v0.9.1

func (m *InitializeRequest) GetConfig() []byte

func (*InitializeRequest) GetVerifyConnection added in v0.9.1

func (m *InitializeRequest) GetVerifyConnection() bool

func (*InitializeRequest) ProtoMessage added in v0.9.1

func (*InitializeRequest) ProtoMessage()

func (*InitializeRequest) Reset added in v0.9.1

func (m *InitializeRequest) Reset()

func (*InitializeRequest) String added in v0.9.1

func (m *InitializeRequest) String() string

func (*InitializeRequest) XXX_DiscardUnknown added in v0.10.2

func (m *InitializeRequest) XXX_DiscardUnknown()

func (*InitializeRequest) XXX_Marshal added in v0.10.2

func (m *InitializeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InitializeRequest) XXX_Merge added in v0.10.2

func (m *InitializeRequest) XXX_Merge(src proto.Message)

func (*InitializeRequest) XXX_Size added in v0.10.2

func (m *InitializeRequest) XXX_Size() int

func (*InitializeRequest) XXX_Unmarshal added in v0.10.2

func (m *InitializeRequest) XXX_Unmarshal(b []byte) error

type RenewUserRequest

type RenewUserRequest struct {
	Statements           *Statements          `protobuf:"bytes,1,opt,name=statements,proto3" json:"statements,omitempty"`
	Username             string               `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	Expiration           *timestamp.Timestamp `protobuf:"bytes,3,opt,name=expiration,proto3" json:"expiration,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*RenewUserRequest) Descriptor added in v0.9.1

func (*RenewUserRequest) Descriptor() ([]byte, []int)

func (*RenewUserRequest) GetExpiration added in v0.9.1

func (m *RenewUserRequest) GetExpiration() *timestamp.Timestamp

func (*RenewUserRequest) GetStatements added in v0.9.1

func (m *RenewUserRequest) GetStatements() *Statements

func (*RenewUserRequest) GetUsername added in v0.9.1

func (m *RenewUserRequest) GetUsername() string

func (*RenewUserRequest) ProtoMessage added in v0.9.1

func (*RenewUserRequest) ProtoMessage()

func (*RenewUserRequest) Reset added in v0.9.1

func (m *RenewUserRequest) Reset()

func (*RenewUserRequest) String added in v0.9.1

func (m *RenewUserRequest) String() string

func (*RenewUserRequest) XXX_DiscardUnknown added in v0.10.2

func (m *RenewUserRequest) XXX_DiscardUnknown()

func (*RenewUserRequest) XXX_Marshal added in v0.10.2

func (m *RenewUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RenewUserRequest) XXX_Merge added in v0.10.2

func (m *RenewUserRequest) XXX_Merge(src proto.Message)

func (*RenewUserRequest) XXX_Size added in v0.10.2

func (m *RenewUserRequest) XXX_Size() int

func (*RenewUserRequest) XXX_Unmarshal added in v0.10.2

func (m *RenewUserRequest) XXX_Unmarshal(b []byte) error

type RevokeUserRequest

type RevokeUserRequest struct {
	Statements           *Statements `protobuf:"bytes,1,opt,name=statements,proto3" json:"statements,omitempty"`
	Username             string      `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*RevokeUserRequest) Descriptor added in v0.9.1

func (*RevokeUserRequest) Descriptor() ([]byte, []int)

func (*RevokeUserRequest) GetStatements added in v0.9.1

func (m *RevokeUserRequest) GetStatements() *Statements

func (*RevokeUserRequest) GetUsername added in v0.9.1

func (m *RevokeUserRequest) GetUsername() string

func (*RevokeUserRequest) ProtoMessage added in v0.9.1

func (*RevokeUserRequest) ProtoMessage()

func (*RevokeUserRequest) Reset added in v0.9.1

func (m *RevokeUserRequest) Reset()

func (*RevokeUserRequest) String added in v0.9.1

func (m *RevokeUserRequest) String() string

func (*RevokeUserRequest) XXX_DiscardUnknown added in v0.10.2

func (m *RevokeUserRequest) XXX_DiscardUnknown()

func (*RevokeUserRequest) XXX_Marshal added in v0.10.2

func (m *RevokeUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RevokeUserRequest) XXX_Merge added in v0.10.2

func (m *RevokeUserRequest) XXX_Merge(src proto.Message)

func (*RevokeUserRequest) XXX_Size added in v0.10.2

func (m *RevokeUserRequest) XXX_Size() int

func (*RevokeUserRequest) XXX_Unmarshal added in v0.10.2

func (m *RevokeUserRequest) XXX_Unmarshal(b []byte) error

type RotateRootCredentialsRequest added in v0.10.0

type RotateRootCredentialsRequest struct {
	Statements           []string `protobuf:"bytes,1,rep,name=statements,proto3" json:"statements,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RotateRootCredentialsRequest) Descriptor added in v0.10.0

func (*RotateRootCredentialsRequest) Descriptor() ([]byte, []int)

func (*RotateRootCredentialsRequest) GetStatements added in v0.10.0

func (m *RotateRootCredentialsRequest) GetStatements() []string

func (*RotateRootCredentialsRequest) ProtoMessage added in v0.10.0

func (*RotateRootCredentialsRequest) ProtoMessage()

func (*RotateRootCredentialsRequest) Reset added in v0.10.0

func (m *RotateRootCredentialsRequest) Reset()

func (*RotateRootCredentialsRequest) String added in v0.10.0

func (*RotateRootCredentialsRequest) XXX_DiscardUnknown added in v0.10.2

func (m *RotateRootCredentialsRequest) XXX_DiscardUnknown()

func (*RotateRootCredentialsRequest) XXX_Marshal added in v0.10.2

func (m *RotateRootCredentialsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RotateRootCredentialsRequest) XXX_Merge added in v0.10.2

func (m *RotateRootCredentialsRequest) XXX_Merge(src proto.Message)

func (*RotateRootCredentialsRequest) XXX_Size added in v0.10.2

func (m *RotateRootCredentialsRequest) XXX_Size() int

func (*RotateRootCredentialsRequest) XXX_Unmarshal added in v0.10.2

func (m *RotateRootCredentialsRequest) XXX_Unmarshal(b []byte) error

type RotateRootCredentialsResponse added in v0.10.0

type RotateRootCredentialsResponse struct {
	Config               []byte   `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RotateRootCredentialsResponse) Descriptor added in v0.10.0

func (*RotateRootCredentialsResponse) Descriptor() ([]byte, []int)

func (*RotateRootCredentialsResponse) GetConfig added in v0.10.0

func (m *RotateRootCredentialsResponse) GetConfig() []byte

func (*RotateRootCredentialsResponse) ProtoMessage added in v0.10.0

func (*RotateRootCredentialsResponse) ProtoMessage()

func (*RotateRootCredentialsResponse) Reset added in v0.10.0

func (m *RotateRootCredentialsResponse) Reset()

func (*RotateRootCredentialsResponse) String added in v0.10.0

func (*RotateRootCredentialsResponse) XXX_DiscardUnknown added in v0.10.2

func (m *RotateRootCredentialsResponse) XXX_DiscardUnknown()

func (*RotateRootCredentialsResponse) XXX_Marshal added in v0.10.2

func (m *RotateRootCredentialsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RotateRootCredentialsResponse) XXX_Merge added in v0.10.2

func (m *RotateRootCredentialsResponse) XXX_Merge(src proto.Message)

func (*RotateRootCredentialsResponse) XXX_Size added in v0.10.2

func (m *RotateRootCredentialsResponse) XXX_Size() int

func (*RotateRootCredentialsResponse) XXX_Unmarshal added in v0.10.2

func (m *RotateRootCredentialsResponse) XXX_Unmarshal(b []byte) error

type Statements

type Statements struct {
	// DEPRECATED, will be removed in 0.12
	CreationStatements string `protobuf:"bytes,1,opt,name=creation_statements,json=creationStatements,proto3" json:"creation_statements,omitempty"` // Deprecated: Do not use.
	// DEPRECATED, will be removed in 0.12
	RevocationStatements string `protobuf:"bytes,2,opt,name=revocation_statements,json=revocationStatements,proto3" json:"revocation_statements,omitempty"` // Deprecated: Do not use.
	// DEPRECATED, will be removed in 0.12
	RollbackStatements string `protobuf:"bytes,3,opt,name=rollback_statements,json=rollbackStatements,proto3" json:"rollback_statements,omitempty"` // Deprecated: Do not use.
	// DEPRECATED, will be removed in 0.12
	RenewStatements      string   `protobuf:"bytes,4,opt,name=renew_statements,json=renewStatements,proto3" json:"renew_statements,omitempty"` // Deprecated: Do not use.
	Creation             []string `protobuf:"bytes,5,rep,name=creation,proto3" json:"creation,omitempty"`
	Revocation           []string `protobuf:"bytes,6,rep,name=revocation,proto3" json:"revocation,omitempty"`
	Rollback             []string `protobuf:"bytes,7,rep,name=rollback,proto3" json:"rollback,omitempty"`
	Renewal              []string `protobuf:"bytes,8,rep,name=renewal,proto3" json:"renewal,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Statements) Descriptor added in v0.9.1

func (*Statements) Descriptor() ([]byte, []int)

func (*Statements) GetCreation added in v0.10.0

func (m *Statements) GetCreation() []string

func (*Statements) GetCreationStatements deprecated added in v0.9.1

func (m *Statements) GetCreationStatements() string

Deprecated: Do not use.

func (*Statements) GetRenewStatements deprecated added in v0.9.1

func (m *Statements) GetRenewStatements() string

Deprecated: Do not use.

func (*Statements) GetRenewal added in v0.10.0

func (m *Statements) GetRenewal() []string

func (*Statements) GetRevocation added in v0.10.0

func (m *Statements) GetRevocation() []string

func (*Statements) GetRevocationStatements deprecated added in v0.9.1

func (m *Statements) GetRevocationStatements() string

Deprecated: Do not use.

func (*Statements) GetRollback added in v0.10.0

func (m *Statements) GetRollback() []string

func (*Statements) GetRollbackStatements deprecated added in v0.9.1

func (m *Statements) GetRollbackStatements() string

Deprecated: Do not use.

func (*Statements) ProtoMessage added in v0.9.1

func (*Statements) ProtoMessage()

func (*Statements) Reset added in v0.9.1

func (m *Statements) Reset()

func (*Statements) String added in v0.9.1

func (m *Statements) String() string

func (*Statements) XXX_DiscardUnknown added in v0.10.2

func (m *Statements) XXX_DiscardUnknown()

func (*Statements) XXX_Marshal added in v0.10.2

func (m *Statements) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Statements) XXX_Merge added in v0.10.2

func (m *Statements) XXX_Merge(src proto.Message)

func (*Statements) XXX_Size added in v0.10.2

func (m *Statements) XXX_Size() int

func (*Statements) XXX_Unmarshal added in v0.10.2

func (m *Statements) XXX_Unmarshal(b []byte) error

type TypeResponse added in v0.9.1

type TypeResponse struct {
	Type                 string   `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TypeResponse) Descriptor added in v0.9.1

func (*TypeResponse) Descriptor() ([]byte, []int)

func (*TypeResponse) GetType added in v0.9.1

func (m *TypeResponse) GetType() string

func (*TypeResponse) ProtoMessage added in v0.9.1

func (*TypeResponse) ProtoMessage()

func (*TypeResponse) Reset added in v0.9.1

func (m *TypeResponse) Reset()

func (*TypeResponse) String added in v0.9.1

func (m *TypeResponse) String() string

func (*TypeResponse) XXX_DiscardUnknown added in v0.10.2

func (m *TypeResponse) XXX_DiscardUnknown()

func (*TypeResponse) XXX_Marshal added in v0.10.2

func (m *TypeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TypeResponse) XXX_Merge added in v0.10.2

func (m *TypeResponse) XXX_Merge(src proto.Message)

func (*TypeResponse) XXX_Size added in v0.10.2

func (m *TypeResponse) XXX_Size() int

func (*TypeResponse) XXX_Unmarshal added in v0.10.2

func (m *TypeResponse) XXX_Unmarshal(b []byte) error

type UsernameConfig added in v0.7.3

type UsernameConfig struct {
	DisplayName          string   `protobuf:"bytes,1,opt,name=DisplayName,proto3" json:"DisplayName,omitempty"`
	RoleName             string   `protobuf:"bytes,2,opt,name=RoleName,proto3" json:"RoleName,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UsernameConfig) Descriptor added in v0.9.1

func (*UsernameConfig) Descriptor() ([]byte, []int)

func (*UsernameConfig) GetDisplayName added in v0.9.1

func (m *UsernameConfig) GetDisplayName() string

func (*UsernameConfig) GetRoleName added in v0.9.1

func (m *UsernameConfig) GetRoleName() string

func (*UsernameConfig) ProtoMessage added in v0.9.1

func (*UsernameConfig) ProtoMessage()

func (*UsernameConfig) Reset added in v0.9.1

func (m *UsernameConfig) Reset()

func (*UsernameConfig) String added in v0.9.1

func (m *UsernameConfig) String() string

func (*UsernameConfig) XXX_DiscardUnknown added in v0.10.2

func (m *UsernameConfig) XXX_DiscardUnknown()

func (*UsernameConfig) XXX_Marshal added in v0.10.2

func (m *UsernameConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UsernameConfig) XXX_Merge added in v0.10.2

func (m *UsernameConfig) XXX_Merge(src proto.Message)

func (*UsernameConfig) XXX_Size added in v0.10.2

func (m *UsernameConfig) XXX_Size() int

func (*UsernameConfig) XXX_Unmarshal added in v0.10.2

func (m *UsernameConfig) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL