...

Source file src/github.com/prometheus/alertmanager/api/v2/models/label_set.go

Documentation: github.com/prometheus/alertmanager/api/v2/models

     1  // Code generated by go-swagger; DO NOT EDIT.
     2  
     3  // Copyright Prometheus Team
     4  // Licensed under the Apache License, Version 2.0 (the "License");
     5  // you may not use this file except in compliance with the License.
     6  // You may obtain a copy of the License at
     7  //
     8  // http://www.apache.org/licenses/LICENSE-2.0
     9  //
    10  // Unless required by applicable law or agreed to in writing, software
    11  // distributed under the License is distributed on an "AS IS" BASIS,
    12  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  // See the License for the specific language governing permissions and
    14  // limitations under the License.
    15  //
    16  
    17  package models
    18  
    19  // This file was generated by the swagger tool.
    20  // Editing this file might prove futile when you re-run the swagger generate command
    21  
    22  import (
    23  	"context"
    24  
    25  	"github.com/go-openapi/strfmt"
    26  )
    27  
    28  // LabelSet label set
    29  //
    30  // swagger:model labelSet
    31  type LabelSet map[string]string
    32  
    33  // Validate validates this label set
    34  func (m LabelSet) Validate(formats strfmt.Registry) error {
    35  	return nil
    36  }
    37  
    38  // ContextValidate validates this label set based on context it is used
    39  func (m LabelSet) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
    40  	return nil
    41  }
    42  

View as plain text