Documentation
¶
Index ¶
- type CreateVariableOutput
- type DeleteVariableInput
- type DeleteVariableOutput
- type ListVariablesInput
- type ListVariablesOutput
- type ReadVariableInput
- type ReadVariableOutput
- type Service
- type ServiceOp
- func (s *ServiceOp) CreateVariable(ctx context.Context, input *Variable) (*CreateVariableOutput, error)
- func (s *ServiceOp) DeleteVariable(ctx context.Context, input *DeleteVariableInput) (*commons.EmptyResponse, error)
- func (s *ServiceOp) ListVariables(ctx context.Context, input *ListVariablesInput) (*ListVariablesOutput, error)
- func (s *ServiceOp) ReadVariable(ctx context.Context, input *ReadVariableInput) (*ReadVariableOutput, error)
- func (s *ServiceOp) UpdateVariable(ctx context.Context, variableId *string, input *Variable) (*UpdateVariableOutput, error)
- type UpdateVariableOutput
- type Variable
- func (o Variable) MarshalJSON() ([]byte, error)
- func (o *Variable) SetDescription(v *string) *Variable
- func (o *Variable) SetDisplayName(v *string) *Variable
- func (o *Variable) SetIsOverridable(v *bool) *Variable
- func (o *Variable) SetIsRequired(v *bool) *Variable
- func (o *Variable) SetIsSensitive(v *bool) *Variable
- func (o *Variable) SetKey(v *string) *Variable
- func (o *Variable) SetScope(v *string) *Variable
- func (o *Variable) SetScopeId(v *string) *Variable
- func (o *Variable) SetType(v *string) *Variable
- func (o *Variable) SetValue(v *string) *Variable
- func (o *Variable) SetValueConditions(v []*cross_models.Condition) *Variable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateVariableOutput ¶
type CreateVariableOutput struct {
Variable *Variable `json:"variable,omitempty"`
}
type DeleteVariableInput ¶
type DeleteVariableInput struct {
VariableId *string `json:"variableId"`
}
type DeleteVariableOutput ¶
type DeleteVariableOutput struct{}
type ListVariablesInput ¶
type ListVariablesOutput ¶
type ListVariablesOutput struct {
Variables []*Variable `json:"variables,omitempty"`
}
type ReadVariableInput ¶
type ReadVariableInput struct {
VariableId *string `json:"variableId,omitempty"`
}
type ReadVariableOutput ¶
type ReadVariableOutput struct {
Variable *Variable `json:"variable,omitempty"`
}
type Service ¶
type Service interface {
ListVariables(context.Context, *ListVariablesInput) (*ListVariablesOutput, error)
CreateVariable(context.Context, *Variable) (*CreateVariableOutput, error)
ReadVariable(context.Context, *ReadVariableInput) (*ReadVariableOutput, error)
UpdateVariable(context.Context, *string, *Variable) (*UpdateVariableOutput, error)
DeleteVariable(context.Context, *DeleteVariableInput) (*commons.EmptyResponse, error)
}
Service provides the API operation methods for making requests to endpoints of the ControlMonkey API. See this package's package overview docs for details on the service.
type ServiceOp ¶
func (*ServiceOp) CreateVariable ¶
func (*ServiceOp) DeleteVariable ¶
func (s *ServiceOp) DeleteVariable(ctx context.Context, input *DeleteVariableInput) (*commons.EmptyResponse, error)
func (*ServiceOp) ListVariables ¶
func (s *ServiceOp) ListVariables(ctx context.Context, input *ListVariablesInput) (*ListVariablesOutput, error)
func (*ServiceOp) ReadVariable ¶
func (s *ServiceOp) ReadVariable(ctx context.Context, input *ReadVariableInput) (*ReadVariableOutput, error)
func (*ServiceOp) UpdateVariable ¶
type UpdateVariableOutput ¶
type UpdateVariableOutput struct {
Variable *Variable `json:"variable,omitempty"`
}
type Variable ¶
type Variable struct {
ID *string `json:"id,omitempty"` // read-only
Scope *string `json:"scope,omitempty"` //commons.VariableScopeTypes
ScopeId *string `json:"scopeId,omitempty"`
Key *string `json:"key,omitempty"`
Value *string `json:"value,omitempty"`
DisplayName *string `json:"displayName,omitempty"`
Type *string `json:"type,omitempty"` //commons.VariableTypes
IsSensitive *bool `json:"isSensitive,omitempty"`
IsOverridable *bool `json:"isOverridable,omitempty"`
IsRequired *bool `json:"isRequired,omitempty"`
Description *string `json:"description,omitempty"`
ValueConditions []*cross_models.Condition `json:"valueConditions,omitempty"`
// contains filtered or unexported fields
}
func (Variable) MarshalJSON ¶
func (*Variable) SetDescription ¶
func (*Variable) SetDisplayName ¶ added in v1.13.0
func (*Variable) SetIsOverridable ¶
func (*Variable) SetIsRequired ¶
func (*Variable) SetIsSensitive ¶
func (*Variable) SetScopeId ¶
func (*Variable) SetValueConditions ¶ added in v1.3.0
func (o *Variable) SetValueConditions(v []*cross_models.Condition) *Variable
Click to show internal directories.
Click to hide internal directories.