Documentation ¶
Index ¶
- func DiffPhotos(spec []string, current []string) (addPhotoUrls []string, remove []string)
- func DiffTags(spec []v1alpha1.PetTag, current []Tag) (addTags []Tag, remove []Tag)
- func GeneratePetStatus(pet *Pet) v1alpha1.PetObservation
- func IsPetUptodate(p v1alpha1.PetParameters, cd *Pet) bool
- func IsPhotosUrlUptodate(p v1alpha1.PetParameters, cd *Pet) bool
- func IsTagsUptodate(p v1alpha1.PetParameters, cd *Pet) bool
- type Category
- type Client
- type Pet
- type PetClient
- type PetStatus
- type Tag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiffPhotos ¶
func GeneratePetStatus ¶
func GeneratePetStatus(pet *Pet) v1alpha1.PetObservation
func IsPetUptodate ¶
func IsPetUptodate(p v1alpha1.PetParameters, cd *Pet) bool
func IsPhotosUrlUptodate ¶
func IsPhotosUrlUptodate(p v1alpha1.PetParameters, cd *Pet) bool
func IsTagsUptodate ¶
func IsTagsUptodate(p v1alpha1.PetParameters, cd *Pet) bool
Types ¶
type Client ¶
type Pet ¶
type Pet struct { Category *Category `json:"category,omitempty"` Id *int64 `json:"id,omitempty"` Name string `json:"name"` PhotoUrls []string `json:"photoUrls"` Status PetStatus `json:"status,omitempty"` Tags *[]Tag `json:"tags,omitempty"` }
func GeneratePet ¶
func GeneratePet(p v1alpha1.PetParameters) *Pet
type PetClient ¶
func (*PetClient) DeletePetById ¶
Click to show internal directories.
Click to hide internal directories.