Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deployment ¶
type Deployment struct {
BotkubeConfig string
}
Deployment returns deployment with Botkube configuration
type EnvProvider ¶
type EnvProvider struct { }
EnvProvider environment config source provider
func NewEnvProvider ¶
func NewEnvProvider() *EnvProvider
NewEnvProvider initializes new environment config source provider
type FileSystemProvider ¶
type FileSystemProvider struct {
Files []string
}
FileSystemProvider allows consumer to pass config files statically
func NewFileSystemProvider ¶
func NewFileSystemProvider(configs []string) *FileSystemProvider
NewFileSystemProvider initializes new static config source provider
type Gql ¶
type Gql struct { Gql *graphql.Client APIURL string }
Gql GraphQL client data structure
func NewGqlClient ¶
NewGqlClient initializes GraphQL client
func (*Gql) GetDeployment ¶
GetDeployment retrieves deployment by id
type GqlClient ¶
type GqlClient interface {
GetDeployment(ctx context.Context, id string) (Deployment, error)
}
GqlClient GraphQL client
type GqlProvider ¶
type GqlProvider struct {
GqlClient GqlClient
}
GqlProvider is GraphQL provider
func NewGqlProvider ¶
func NewGqlProvider(gql GqlClient) *GqlProvider
NewGqlProvider initializes new GraphQL config source provider
type Option ¶
type Option func(*Gql)
Option GraphQL client options
func WithAPIURL ¶
WithAPIURL configures ApiURL for GraphQL endpoint
Click to show internal directories.
Click to hide internal directories.