Documentation
¶
Overview ¶
Code generated by baton-sdk. DO NOT EDIT!!!
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( APIKeyField = field.StringField( "api-key", field.WithDescription("The API key for authenticating with Rootly"), field.WithRequired(true), ) //go:generate go run ./gen Config = field.NewConfiguration([]field.SchemaField{ APIKeyField, }) // FieldRelationships defines relationships between the fields listed in // Config that can be automatically validated. For example, a // username and password can be required together, or an access token can be // marked as mutually exclusive from the username password pair. FieldRelationships = []field.SchemaFieldRelationship{} )
Functions ¶
func ValidateConfig ¶
ValidateConfig is run after the configuration is loaded, and should return an error if it isn't valid. Implementing this function is optional, it only needs to perform extra validations that cannot be encoded with configuration parameters.
Types ¶
type Rootly ¶
type Rootly struct {
ApiKey string `mapstructure:"api-key"`
}
func (*Rootly) GetStringSlice ¶
Click to show internal directories.
Click to hide internal directories.