github.com/ddev/ddev@v1.23.2-0.20240519125000-d824ffe36ff3/pkg/config/remoteconfig/internal/messages.go (about)

     1  package internal
     2  
     3  type Message struct {
     4  	Message    string   `json:"message"`
     5  	Title      string   `json:"title,omitempty"`
     6  	Conditions []string `json:"conditions,omitempty"`
     7  	Versions   string   `json:"versions,omitempty"`
     8  }
     9  
    10  type Notifications struct {
    11  	Interval int       `json:"interval"`
    12  	Infos    []Message `json:"infos"`
    13  	Warnings []Message `json:"warnings"`
    14  }
    15  
    16  type Ticker struct {
    17  	Interval int       `json:"interval"`
    18  	Messages []Message `json:"messages"`
    19  }
    20  
    21  type Messages struct {
    22  	Notifications Notifications `json:"notifications"`
    23  	Ticker        Ticker        `json:"ticker"`
    24  }