Documentation
¶
Index ¶
- type AgentResponse
- type Details
- type Flag
- type FlagNameChangeRequest
- type Response
- type SecretMenu
- type SecretMenuStyle
- type System
- func (s *System) CreateFlagInDB(flag flagCreate) error
- func (s *System) CreateFlags(w http.ResponseWriter, r *http.Request)
- func (s *System) DeleteAllFlagsForEnv(envId string) error
- func (s *System) DeleteFlagFromDB(flag Flag) error
- func (s *System) DeleteFlags(w http.ResponseWriter, r *http.Request)
- func (s *System) EditFlag(w http.ResponseWriter, r *http.Request)
- func (s *System) EditFlagInDB(cr FlagNameChangeRequest) error
- func (s *System) GetAgentFlags(w http.ResponseWriter, r *http.Request)
- func (s *System) GetAgentFlagsFromDB(projectId, agentId, environmentId string) (*AgentResponse, error)
- func (s *System) GetClientFlags(w http.ResponseWriter, r *http.Request)
- func (s *System) GetClientFlagsFromDB(environmentId string) ([]Flag, error)
- func (s *System) GetDefaultEnvironment(projectId, agentId string) (string, error)
- func (s *System) SetContext(ctx context.Context) *System
- func (s *System) UpdateFlagInDB(flag Flag) error
- func (s *System) UpdateFlags(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentResponse ¶
type AgentResponse struct {
IntervalAllowed int `json:"intervalAllowed,omitempty"`
SecretMenu SecretMenu `json:"secretMenu,omitempty"`
Flags []Flag `json:"flags,omitempty"`
}
type FlagNameChangeRequest ¶
type SecretMenu ¶
type SecretMenu struct {
Sequence []string `json:"sequence,omitempty"`
Styles []SecretMenuStyle `json:"styles,omitempty"`
}
type SecretMenuStyle ¶
type System ¶
type System struct {
Config *ConfigBuilder.Config
Context context.Context
}
func NewSystem ¶
func NewSystem(cfg *ConfigBuilder.Config) *System
func (*System) CreateFlagInDB ¶
func (*System) CreateFlags ¶
func (s *System) CreateFlags(w http.ResponseWriter, r *http.Request)
func (*System) DeleteAllFlagsForEnv ¶
func (*System) DeleteFlagFromDB ¶
func (*System) DeleteFlags ¶
func (s *System) DeleteFlags(w http.ResponseWriter, r *http.Request)
func (*System) EditFlagInDB ¶
func (s *System) EditFlagInDB(cr FlagNameChangeRequest) error
func (*System) GetAgentFlags ¶
func (s *System) GetAgentFlags(w http.ResponseWriter, r *http.Request)
func (*System) GetAgentFlagsFromDB ¶
func (s *System) GetAgentFlagsFromDB(projectId, agentId, environmentId string) (*AgentResponse, error)
func (*System) GetClientFlags ¶
func (s *System) GetClientFlags(w http.ResponseWriter, r *http.Request)
func (*System) GetClientFlagsFromDB ¶
func (*System) GetDefaultEnvironment ¶
func (*System) UpdateFlagInDB ¶
func (*System) UpdateFlags ¶
func (s *System) UpdateFlags(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.