Skip to content

Commit

Permalink
Merge pull request #32 from Archirk/minor_update
Browse files Browse the repository at this point in the history
Update client
  • Loading branch information
Archirk authored Apr 23, 2024
2 parents 5d317a9 + 99c36b8 commit 7f4f523
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
5 changes: 4 additions & 1 deletion pkg/v2/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@ const (
)

type (
DNSClient[Z any, S any] interface {
DNSManager[Z any, S any] interface {
ZoneManager[Z]
RRSetManager[S]
}
DNSClient[Z any, S any] interface {
DNSManager[Z, S]
WithHeaders(headers http.Header) DNSClient[Z, S]
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/v2/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type (
BaseURL string
}
ReturnTypes interface {
Zone | List[Zone] | RRSet | List[RRSet] | rrsetManagedByForm
Zone | List[Zone] | RRSet | List[RRSet]
}
)

Expand Down
4 changes: 0 additions & 4 deletions pkg/v2/rrsetManager.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,6 @@ type (
Comment string `json:"comment,omitempty"`
ManagedBy string `json:"managed_by,omitempty"`
}

rrsetManagedByForm struct {
ManagedBy string `json:"managed_by"`
}
)

func (s *RRSet) CreationForm() (io.Reader, error) {
Expand Down

0 comments on commit 7f4f523

Please sign in to comment.